{ "id": "155727", "key": "TIMOB-20565", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-10-27T13:48:16.000+0000", "created": "2016-03-14T20:24:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "assets", "cocoapods", "hyperloop" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [ { "id": "53180", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "164108", "key": "TIMOB-24057", "fields": { "summary": "Hyperloop: iOS - Adapt native CocoaPods build behavior", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "53276", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "162548", "key": "TIMOB-23780", "fields": { "summary": "Hyperloop: iOS - Build should copy Cocoapods-provided Bundles into the app.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-01-24T00:33:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "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.\r\n\r\nExample Pod: https://github.com/nakiostudio/NKOColorPickerView (see the {{Assets}} directory)\r\n\r\nExample usage:\r\n{code:javascript}\r\n/**\r\n * Constructor\r\n **/\r\n(function constructor(args) {\r\n var NKOColorPickerView = require(\"NKOColorPickerView/NKOColorPickerView\"),\r\n UIView = require('UIKit/UIView'),\r\n UIColor = require('UIKit/UIColor'),\r\n CGRectMake = require('CoreGraphics').CGRectMake;\r\n\r\n var frame = CGRectMake(0, 50, Ti.Platform.displayCaps.platformWidth, Ti.Platform.displayCaps.platformHeight - 120);\r\n var defaultColor = UIColor.redColor();\r\n\r\n var colorPickerView = NKOColorPickerView.alloc().initWithFrameColorAndDidChangeColorBlock(frame, defaultColor, function(color) {\r\n currentColorView.setBackgroundColor(color);\r\n });\r\n\r\n var currentColorView = new UIView();\r\n currentColorView.setFrame(CGRectMake(0,0,Ti.Platform.displayCaps.platformWidth,50));\r\n currentColorView.setBackgroundColor(defaultColor);\r\n\r\n $.container.add(colorPickerView);\r\n $.container.add(currentColorView);\r\n\r\n})(arguments[0] || {});\r\n{code}\r\n\r\nThe 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.", "attachment": [], "flagged": false, "summary": "Hyperloop: iOS - CocoaPods assets only found when copied into project", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "391059", "author": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "body": "Same thing is happening if we use a {{.bundle}} file in the project.\r\n", "updateAuthor": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "created": "2016-07-20T00:04:22.000+0000", "updated": "2016-07-20T00:04:22.000+0000" }, { "id": "399935", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I guess this is a duplicate of TIMOB-23780.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-27T13:48:16.000+0000", "updated": "2016-10-27T13:48:16.000+0000" }, { "id": "405124", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Closing as a duplicate of TIMOB-23780", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2017-01-24T00:32:52.000+0000", "updated": "2017-01-24T00:33:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }