{ "id": "165700", "key": "TIMOB-24362", "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": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-02T19:43:13.000+0000", "created": "2017-02-01T00:23:12.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.0.1" ], "versions": [ { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "issuelinks": [ { "id": "54490", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "166011", "key": "TIMOB-24405", "fields": { "summary": "iOS: Unable to run dist-appstore builds when project on external drive using CLI", "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 } } } }, { "id": "54812", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "167348", "key": "TIMOB-24640", "fields": { "summary": "Appcelerator Studio refuse to package ad hoc with Xcode 8.3 and Titanium SDK 6.0.3.GA", "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-05-07T16:41:19.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 using Xcode 8.3 Beta 1 and trying to package for ad hoc, I get the following error:\r\n{code}\r\n[ERROR] Failed to package application\r\n[ERROR] /bin/sh: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication: No such file or directory\r\n[ERROR]\r\n{code}\r\n\r\n*Steps to reproduce issue*\r\n1. Ensure you have installed, launched, and selected Xcode 8.3 Beta\r\n2. Create a new project\r\n3. Package the project for Ad Hoc: {{appc run -p ios -T dist-adhoc}}\r\n\r\n*Expected Results*\r\nThe ipa is successfully created\r\n\r\n*Actual Results*\r\nThe build fails with the above error", "attachment": [], "flagged": false, "summary": "iOS: Unable to package for Ad Hoc with Xcode 8.3 Beta", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.12 (16A323)\r\nTi SDK 6.1.0.GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nAlloy 1.9.6\r\nXcode 8.3 (8W109m)", "closedSprints": [ { "id": 809, "state": "closed", "name": "2017 Sprint 03 Tooling", "startDate": "2017-01-28T16:13:06.911Z", "endDate": "2017-02-11T16:13:00.000Z", "completeDate": "2017-02-12T23:39:03.145Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "406023", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Confirmed. I'll need to research alternatives to {{PackageApplication}}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-01T05:31:20.000+0000", "updated": "2017-02-01T05:31:20.000+0000" }, { "id": "406032", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We should use {{xcodebuild archive}}, similar to [this StackOverflow|http://stackoverflow.com/a/19856005/5537752].", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-01T10:46:36.000+0000", "updated": "2017-02-01T10:49:31.000+0000" }, { "id": "406080", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I updated the iOS build to use {{xcodebuild archive}} and then export the archive to an ipa, but I'm running into problems.\r\n\r\nFirst off, here's the commit with my changes: https://github.com/cb1kenobi/titanium_mobile/commit/4aa90b891d7d5a6b25a79d53205ff06a0336e4dc. You can pull my {{timob-24362}} branch to test.\r\n\r\nWhen I run an adhoc build, I get this:\r\n\r\n{code}\r\n[TRACE] ** ARCHIVE SUCCEEDED **\r\n[INFO] Packaging for Ad Hoc distribution\r\n[DEBUG] Running: /Applications/Xcode-8.3-beta.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath \"/Users/chris/appc/workspace/testapp/build/iphone/testapp.xcarchive\" -exportPath \"/Users/chris/appc/workspace/testapp/dist/testapp.ipa\" -exportOptionsPlist \"/Users/chris/appc/workspace/testapp/build/iphone/export_options.plist\"\r\n[ERROR] Failed to export archive to ipa\r\n[ERROR] 2017-02-01 14:41:28.735 xcodebuild[37353:957450] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/wx/j1v32g355xj28rnt9yb_6hfm0000gn/T/testapp_2017-02-01_14-41-28.734.xcdistributionlogs'.\r\n[ERROR] 1.2.840.113635.100.1.61\r\n[ERROR] 2017-02-01 14:41:28.815 xcodebuild[37353:957450] [MT] IDEDistribution: -[IDEDistributionProvisioning _itemToSigningInfoMap:]: Can't find any applicable signing identities for items: (\r\n[ERROR] \"'>\"\r\n[ERROR] )\r\n[ERROR] Errors={\r\n[ERROR] \"\" = {\r\n[ERROR] \"'>\" = \"Error Domain=IDECodesignResolverErrorDomain Code=10 \\\"No matching provisioning profiles found\\\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'ad-hoc' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=\\n}\";\r\n[ERROR] };\r\n[ERROR] }\r\n[ERROR] 2017-02-01 14:41:28.815 xcodebuild[37353:957450] [MT] IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=3 \"(null)\" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={\r\n[ERROR] \"\" = {\r\n[ERROR] \"'>\" = \"Error Domain=IDECodesignResolverErrorDomain Code=10 \\\"No matching provisioning profiles found\\\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'ad-hoc' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=\\n}\";\r\n[ERROR] };\r\n[ERROR] }}\r\n[ERROR] error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)\r\n[ERROR]\r\n[ERROR] Error Domain=IDEDistributionErrorDomain Code=3 \"(null)\" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={\r\n[ERROR] \"\" = {\r\n[ERROR] \"'>\" = \"Error Domain=IDECodesignResolverErrorDomain Code=10 \\\"No matching provisioning profiles found\\\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'ad-hoc' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=\\n}\";\r\n[ERROR] };\r\n[ERROR] }}\r\n{code}\r\n\r\nObviously, it can't figure out the provisioning profile. There used to be a {{-exportProvisioningProfile}} option to {{xcodebuild}}, but it no longer exists. It appears to be replaced with {{-exportOptionsPlist}} which I have the iOS build generate and looks like:\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n\tmethod\r\n\tad-hoc\r\n\tteam\r\n\t\r\n\r\n\r\n{code}\r\n\r\nNext, I created a vanilla native iOS app and built it using:\r\n\r\n{code}\r\nDEVELOPER_DIR=/Applications/Xcode-8.3-beta.app/Contents/Developer /Applications/Xcode-8.3-beta.app/Contents/Developer/usr/bin/xcodebuild archive -target testapp3 -configuration Release -scheme testapp3 -archivePath /Users/chris/appc/testapp3/testapp3.xcarchive\r\n{code}\r\n\r\nThe build succeeds. Then I run:\r\n\r\n{code}\r\n/Applications/Xcode-8.3-beta.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath /Users/chris/appc/testapp3/testapp3.xcarchive -exportPath /Users/chris/appc/testapp3/testapp.ipa -exportOptionsPlist /Users/chris/appc/testapp3/export_options.plist\r\n{code}\r\n\r\nand it errors with:\r\n\r\n{code}\r\n2017-02-01 17:11:55.878 xcodebuild[39056:1073982] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/wx/j1v32g355xj28rnt9yb_6hfm0000gn/T/testapp3_2017-02-01_17-11-55.876.xcdistributionlogs'.\r\n1.2.840.113635.100.1.61\r\n2017-02-01 17:11:56.005 xcodebuild[39056:1073982] [MT] IDEDistribution: -[IDEDistributionProvisioning _itemToSigningInfoMap:]: Can't find any applicable signing identities for items: (\r\n \"'>\"\r\n)\r\nErrors={\r\n \"\" = {\r\n \"'>\" = \"Error Domain=IDECodesignResolverErrorDomain Code=10 \\\"No matching provisioning profiles found\\\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'ad-hoc' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=\\n}\";\r\n };\r\n}\r\n2017-02-01 17:11:56.005 xcodebuild[39056:1073982] [MT] IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=3 \"(null)\" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={\r\n \"\" = {\r\n \"'>\" = \"Error Domain=IDECodesignResolverErrorDomain Code=10 \\\"No matching provisioning profiles found\\\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'ad-hoc' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=\\n}\";\r\n };\r\n}}\r\nerror: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)\r\n\r\nError Domain=IDEDistributionErrorDomain Code=3 \"(null)\" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={\r\n \"\" = {\r\n \"'>\" = \"Error Domain=IDECodesignResolverErrorDomain Code=10 \\\"No matching provisioning profiles found\\\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'ad-hoc' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=\\n}\";\r\n };\r\n}}\r\n\r\n** EXPORT FAILED **\r\n{code}\r\n\r\nI'm at a loss of what to do. I've followed the information on http://subathrathanabalan.com/2016/01/07/building-ipa-export-archive/ and http://www.matrixprojects.net/p/xcodebuild-export-options-plist/, but I don't see anything that I'm not already doing.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-01T23:35:19.000+0000", "updated": "2017-02-01T23:35:19.000+0000" }, { "id": "406150", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8814\r\nTiSDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8815\r\n\r\nTo test, clean your project, then run a {{dist-adhoc}} build. Ensure that Xcode 8.3 beta is selected by specifying {{-I 10.3}}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-02T15:21:55.000+0000", "updated": "2017-02-02T17:30:39.000+0000" }, { "id": "406194", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\nMacOS 10.12 (16A323)\r\nStudio 4.8.1.201701192045\r\nTi SDK 6.0.2.v20170202114945\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nAlloy 1.9.5\r\nXcode 8.2 (8C38) & Xcode 8.3 (8W109m)\r\n\r\nAble to package for ad-hoc using Xcode 8.3 and Xcode 8.2, without issue.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T00:02:40.000+0000", "updated": "2017-02-03T00:02:40.000+0000" }, { "id": "418076", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm still seeing this issue with 8.3.2(8E2002)\r\n\r\nAppcelerator Command-Line Interface, version 6.2.0\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.12.4\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 4.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.6.0\r\n npm Version = 2.15.9\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.12\r\n node-appc Version = 0.2.41", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-26T04:00:39.000+0000", "updated": "2017-04-26T04:00:39.000+0000" }, { "id": "418077", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jceaser], which SDK do you have selected on your system and which SDK are you using to build your project with?\r\nYou can check these by running {{appc ti sdk list}} and looking for the \"selected\" tag and by looking in your tiapp.xml to see which SDK is present there. ", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-04-26T04:45:48.000+0000", "updated": "2017-04-26T04:45:48.000+0000" }, { "id": "418096", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is the output. The app sdk is 5.5.1\r\n\r\nAppcelerator Command-Line Interface, version 6.2.0\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\nSDK Install Locations:\r\n /Library/Application Support/Titanium\r\n /Users/Shared/Jenkins/Library/Application Support/Titanium [default]\r\n \r\nInstalled SDKs:\r\n 6.0.3.GA [selected] 6.0.3.v20170322115949 /Users/Shared/Jenkins/Library/Application Support/Titanium/mobilesdk/osx/6.0.3.GA\r\n 5.5.1.GA 5.5.1.v20160927053850 /Users/Shared/Jenkins/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA\r\n\r\nThanks.", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-26T13:52:11.000+0000", "updated": "2017-04-26T13:52:11.000+0000" }, { "id": "418099", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jceaser], changing the SDK version in your tiapp.xml to 6.0.2.GA or later should get you working again.\r\nBased on your output, you have 6.0.3.GA installed and selected at the system level, so just change the tiapp.xml SDK (app level) to 6.0.3.GA and you're good to go.\r\nThe fix was in SDK 6.0.2.GA, so you will still see the issue when using SDKs prior to that (in your case, 5.5.1).", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-04-26T14:14:19.000+0000", "updated": "2017-04-26T14:14:19.000+0000" }, { "id": "419252", "author": { "name": "mike@warnes.com", "key": "mike@warnes.com", "displayName": "michael warnes", "active": true, "timeZone": "Europe/London" }, "body": "thanks for updating this guys, was hitting this problem with no clue what was going on until I saw this ticket. Thank you", "updateAuthor": { "name": "mike@warnes.com", "key": "mike@warnes.com", "displayName": "michael warnes", "active": true, "timeZone": "Europe/London" }, "created": "2017-05-07T16:41:19.000+0000", "updated": "2017-05-07T16:41:19.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }