{ "id": "169794", "key": "TIMOB-25292", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-09-21T18:15:30.000+0000", "created": "2017-09-15T14:04:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "icloud", "ios" ], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55982", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "169835", "key": "TIMOB-25319", "fields": { "summary": "iOS: Fails to package app when using CloudKit", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-08-06T17:52:04.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{noformat}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.12.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n\r\nNode.js\r\n Node.js Version = 6.10.3\r\n npm Version = 4.6.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n\r\nTitanium SDK\r\n SDK Version = 6.2.0.GA\r\n SDK Path = /Users/sebastianklaus/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA\r\n Target Platform = iphone\r\n{noformat}\r\n\r\n\r\nI can't compile my project with 6.2.0.GA\r\n\r\nI'm using an extra Entitlements.plist for some iCloud functions.\r\n\r\nWith 6.1.1.GA and 6.1.2.GA compiling works as expected.\r\n\r\n{code:java}\r\n[ERROR] 2017-09-15 15:55:44.004 xcodebuild[58753:29013239] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-12122/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/Capabilities/Xcode3TargetCapabilitiesContext.m:308\r\n[ERROR] Details: Failed to expand identifiers \"{(\r\n[ERROR] \"iCloud.$(CFBundleIdentifier)\"\r\n[ERROR] )}\": Error Domain=IDECapabilitiesErrorDomain Code=1 \"The operation requires a selected developer portal team.\" UserInfo={NSLocalizedDescription=The operation requires a selected developer portal team., NSLocalizedRecoverySuggestion=}\r\n[ERROR] Object: \r\n[ERROR] Method: -_appIDFeatureStateIncludingEntitlements:buildConfiguration:\r\n[ERROR] Thread: {number = 1, name = main}\r\n[ERROR] Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.\r\n[ERROR] 2017-09-15 15:55:44.010 xcodebuild[58753:29013239] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-12122/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/Capabilities/Xcode3TargetCapabilitiesContext.m:308\r\n[ERROR] Details: Failed to expand identifiers \"{(\r\n[ERROR] \"iCloud.$(CFBundleIdentifier)\"\r\n[ERROR] )}\": Error Domain=IDECapabilitiesErrorDomain Code=1 \"The operation requires a selected developer portal team.\" UserInfo={NSLocalizedDescription=The operation requires a selected developer portal team., NSLocalizedRecoverySuggestion=}\r\n[ERROR] Object: \r\n[ERROR] Method: -_appIDFeatureStateIncludingEntitlements:buildConfiguration:\r\n[ERROR] Thread: {number = 1, name = main}\r\n[ERROR] Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] ProcessPCH++ build/Intermediates/PrecompiledHeaders/Fantastic_Library_Prefix-gjhhtrkmcwrhitdombgchdymigcr/Fantastic_Library_Prefix.pch.pch Fantastic_Library_Prefix.pch normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] (1 failure)\r\n{code}\r\n\r\nI compared the _build.js of 6.1.2 und 6.2.0 and there are huge differences working with provisioning files. Maybe there is an bug?\r\n\r\nAny hint what I can do?", "attachment": [], "flagged": false, "summary": "iOS: Failed to expand identifiers when using 6.2.0", "creator": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 949, "state": "closed", "name": "2017 Sprint 19 Tooling", "startDate": "2017-09-10T21:25:25.151Z", "endDate": "2017-09-24T21:25:00.000Z", "completeDate": "2017-09-25T17:50:29.468Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "427945", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! Can you provide a sample project to reproduce? And do you use the latest Ti.iCloud module? Because that one injects the iCloud capabilities automatically. Rather than that, you could also try to setting the entitlements in the section of the tiapp.xml we introduced a few releases. But anyway, we will look into fixing this so you don't need any workaround. Thanks!\r\n\r\nEDIT: There are many discussions like [here|https://forums.developer.apple.com/thread/63625] about it. The error is {{The operation requires a selected developer portal team.}}, did you try to fix that? Also ensure to not use a profile that uses automatic code-signing. We will troubleshoot more once we have the module version and requested infos.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T15:42:31.000+0000", "updated": "2017-09-15T15:47:10.000+0000" }, { "id": "427951", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Unfortunately I can't create an example project. I'm using this [module|https://github.com/sagar15bhavsar/iOSiCloudSyncDemo] \r\n\r\nSetting the entitlements directly in the tiapp.xml section did not help.\r\n\r\nHow to deactivate automatic code-signing? I never saw this option before.", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T17:58:08.000+0000", "updated": "2017-09-15T17:58:08.000+0000" }, { "id": "427964", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok. Automatic code-signing is just used in profiles created in Xcode. So as long as you create them via the developer portal, they would be manual like before. But I don't think that's the issue. It may be something in the code we changed to support Xcode 9, so it will be investigated.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-16T16:06:24.000+0000", "updated": "2017-09-16T16:06:24.000+0000" }, { "id": "428098", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I'm having difficulties reproducing this. [~benutzername] does your {{}} in the tiapp.xml have any special or unicode characters? I can't get the \"Failed to expand identifiers\" error to occur.\r\n\r\nSecondly, while trying to get this to work, I found a bug when exporting the IPA during packaging an app for distribution when the app using iCloud. See TIMOB-25319 for more information.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-19T17:12:48.000+0000", "updated": "2017-09-19T17:12:48.000+0000" }, { "id": "428140", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey Chris, I don't have any special chars in my id.", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-20T06:13:35.000+0000", "updated": "2017-09-20T06:13:35.000+0000" }, { "id": "428160", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is the iCloud module I'm currently using: [com.sagar.iclouddbsync|https://www.dropbox.com/s/81ib2q15jowcedr/com.sagar.iclouddbsync.zip?dl=0]\r\n\r\nMaybe it helps to reproduce the bug", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-20T13:58:27.000+0000", "updated": "2017-09-20T13:58:27.000+0000" }, { "id": "428161", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~benutzername] Did you try the [PR|https://github.com/appcelerator/titanium_mobile/pull/9447/files] already? \r\n\r\nRegarding the build-issues [~cbarber] had, it was an issue in the module where the module.xcconfig linked {{Foundation}} although Titanium does already. This may have worked before, but will now error out as we rewrote the framework-handling to be more smart (sounds weird in this context as it fails). So removing the \"Foundation\" framework from the xcconfig will resolve those issues, the other one could be solved by the above PR.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-20T14:00:17.000+0000", "updated": "2017-09-20T14:09:04.000+0000" }, { "id": "428162", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "What I now did:\r\n\r\nCopied the module and created a version [6.0|https://www.dropbox.com/s/81ib2q15jowcedr/com.sagar.iclouddbsync.zip?dl=0] where I removed the Foundation framework in the xcconfig. I also deleted the platform folder within the module version.\r\n\r\nAfter that I cleaned the build folder and compiled against 6.3.0.v20170919115627 with changes from the [PR|https://github.com/appcelerator/titanium_mobile/pull/9447/files]\r\n\r\nThe result is:\r\n\r\n{noformat}\r\n[INFO] Writing i18n files\r\n[INFO] Processing Titanium symbols\r\n[INFO] Removing files\r\n[INFO] Invoking xcodebuild\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] Ld build/Products/Debug-iphonesimulator/Fantastic\\ Library.app/Fantastic\\ Library normal x86_64\r\n[ERROR] (1 failure)\r\n{noformat}\r\n", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-20T14:32:19.000+0000", "updated": "2017-09-20T14:32:19.000+0000" }, { "id": "428163", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "For whatever reason, the module references a local \"Foundation.framework\" in platform/ as well (thanks to [~jvennemann] for noticing), which is a no-go for any module or framework. You may want to remove that one as well and contact the author about the behavior. After removing it, the build should succeed. If not, please send us over the trace log that will contain the actual xcodebuild error.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-20T15:01:24.000+0000", "updated": "2017-09-20T15:01:39.000+0000" }, { "id": "428175", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "After some time playing it works now. Found some other \"bugs\" in modules like\r\n\r\n{noformat}\r\n[TRACE] : Undefined symbols for architecture x86_64:\r\n[TRACE] : \"_OBJC_CLASS_$_TiUIiOSToolbarProxy\", referenced from:\r\n[TRACE] : l_OBJC_$_CATEGORY_TiUIiOSToolbarProxy_$_Extended in libdk.napp.ui.a(TiUIiOSToolbarProxy+Extended.o)\r\n[TRACE] : ld: symbol(s) not found for architecture x86_64\r\n[TRACE] : clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n{noformat}\r\n\r\nwhich I now try to fix", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-20T17:53:27.000+0000", "updated": "2017-09-20T17:53:27.000+0000" }, { "id": "428266", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is starting to sound like an issue with the module and not with the iOS build. I'm tempted to resolve this as \"invalid\" or \"not our bug\", but if anybody has any strong feelings that there indeed is an issue with the iOS build, then we can keep this ticket open and try to fix it. Thanks!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-21T16:57:24.000+0000", "updated": "2017-09-21T16:57:24.000+0000" }, { "id": "428275", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "It seems so. I followed the advices and everything works fine now. So it is not your bug. ", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-21T18:03:26.000+0000", "updated": "2017-09-21T18:03:26.000+0000" }, { "id": "428277", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Beautiful, thanks! Btw, for the future, we may want to add the functionality of the module inside Ti.iCloud which we recently open-sourced :-).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-21T18:15:30.000+0000", "updated": "2017-09-21T18:15:30.000+0000" }, { "id": "428284", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "That would be awesome ", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-21T21:42:14.000+0000", "updated": "2017-09-21T21:42:14.000+0000" }, { "id": "428467", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~hknoechel] can you say something about a programming start time for Ti.iCloud file managing?", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-26T11:45:13.000+0000", "updated": "2017-09-26T11:45:13.000+0000" }, { "id": "428468", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Not scheduled. The underlaying native library used is https://github.com/drewmccormack/icloudaccess, so feel free to extend it until we come to it!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-26T12:38:51.000+0000", "updated": "2017-09-26T12:38:51.000+0000" }, { "id": "440264", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as \"not our bug\". If you disagree, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:52:04.000+0000", "updated": "2018-08-06T17:52:04.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }