{ "id": "169835", "key": "TIMOB-25319", "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": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-20T22:08:40.000+0000", "created": "2017-09-19T16:50:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "55982", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "169794", "key": "TIMOB-25292", "fields": { "summary": "iOS: Failed to expand identifiers when using 6.2.0", "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": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-09-21T03:33:13.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": "When packaging an app that uses CloudKit, the IPA export fails:\r\n\r\n{code}\r\n[DEBUG] Running: /Applications/Xcode-9-gm-seed.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath \"/Users/chris/appc/workspace/testapp3/build/iphone/testapp3.xcarchive\" -exportPath \"/Users/chris/appc/workspace/testapp3/dist\" -exportOptionsPlist \"/Users/chris/appc/workspace/testapp3/build/iphone/export_options.plist\"\r\n[TRACE] 2017-09-19 11:46:26.873 xcodebuild[38383:2547226] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/wx/j1v32g355xj28rnt9yb_6hfm0000gn/T/testapp3_2017-09-19_11-46-26.872.xcdistributionlogs'.\r\n[TRACE] 2017-09-19 11:46:26.954 xcodebuild[38383:2547226] [MT] IDEDistribution: Step failed: : Error Domain=IDEFoundationErrorDomain Code=1 \"exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided\" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided}\r\n[TRACE] error: exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided\r\n[TRACE]\r\n[TRACE] Error Domain=IDEFoundationErrorDomain Code=1 \"exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided\" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided}\r\n{code}\r\n\r\nWhen packaging, the code needs to open the generated entitlements plist file and check if it is using CloudKit, then set the export option.", "attachment": [], "flagged": false, "summary": "iOS: Fails to package app when using CloudKit", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": "Xcode 9\r\niOS 11\r\nTitanium SDK 7.0.0 (master)", "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": "428096", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/9446\r\nTi SDK 6_3_X PR: https://github.com/appcelerator/titanium_mobile/pull/9447\r\n\r\nTo test, you need to enable CloudKit. I probably did this the hard way, but here goes.\r\n\r\n1. Open the Titanium.xcodeproj in the installed SDK and enabled iCloud under Capabilities\r\n\r\n2. Add the following {{Entitlements.plist}} file to the ROOT of your Titanium project directory:\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n\tcom.apple.developer.icloud-container-identifiers\r\n\t\r\n\t\tiCloud.$(CFBundleIdentifier)\r\n\t\r\n\tcom.apple.developer.icloud-services\r\n\t\r\n\t\tCloudDocuments\r\n\t\r\n\tcom.apple.developer.ubiquity-container-identifiers\r\n\t\r\n\t\tiCloud.$(CFBundleIdentifier)\r\n\t\r\n\tcom.apple.developer.ubiquity-kvstore-identifier\r\n\t$(TeamIdentifierPrefix)$(CFBundleIdentifier)\r\n\r\n\r\n{code}\r\n\r\n3. Add iCloud to your distribution provisioning profile and regenerate/install it\r\n\r\n4. Package your app for ad hoc or the app store\r\n\r\nNote that you need to specify an {{\\-\\-output\\-dir}} when testing an app store build.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-19T17:08:47.000+0000", "updated": "2017-09-20T21:27:31.000+0000" }, { "id": "428191", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, using:\r\nMacOS 10.12.6 (16G29)\r\nTi SDK 6.3.0.v20170919115035\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.4\r\nAlloy 1.9.14\r\nXcode 9.0 (9A235)\r\n\r\nAble to package projects using CloudKit for adhoc and app store without issue.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-20T22:08:41.000+0000", "updated": "2017-09-20T22:08:41.000+0000" }, { "id": "428205", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in SDK builds 6.3.0.v20170920151245 & 7.0.0.v20170920153129", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-21T03:33:13.000+0000", "updated": "2017-09-21T03:33:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }