Project: titanium
Issue TIMOB-20565: Hyperloop: CocoaPods assets only found when copied into project
If we use a CocoaPods dependency that uses bundle assets, those are not referenced correctly from the Pods directory. But if we copy them to the project's directory, it works correctly. Example Pod: https://github.com/nakiostudio/NKOColorPickerView (see the {{Assets}} directory) Example usage: {code:javascript} /** * Constructor **/ (function constructor(args) { var NKOColorPickerView = require("NKOColorPickerView/NKOColorPickerView"), UIView = require('UIKit/UIView'), UIColor = require('UIKit/UIColor'), CGRectMake = require('CoreGraphics').CGRectMake; var frame = CGRectMake(0, 50, Ti.Platform.displayCaps.platformWidth, Ti.Platform.displayCaps.platformHeight - 120); var defaultColor = UIColor.redColor(); var colorPickerView = NKOColorPickerView.alloc().initWithFrameColorAndDidChangeColorBlock(frame, defaultColor, function(color) { currentColorView.setBackgroundColor(color); }); var currentColorView = new UIView(); currentColorView.setFrame(CGRectMake(0,0,Ti.Platform.displayCaps.platformWidth,50)); currentColorView.setBackgroundColor(defaultColor); $.container.add(colorPickerView); $.container.add(currentColorView); })(arguments[0] || {}); {code} The background images of the colorPickerView is not referenced correctly. If we copy the images from the Pod's {{Assets}} directory to the alloy project's {{app/assets}}, it works fine.
Story points: 5