[TIMOB-24362] iOS: Unable to package for Ad Hoc with Xcode 8.3 Beta
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-02-02T19:43:13.000+0000 |
Affected Version/s | Release 6.0.1 |
Fix Version/s | Release 6.0.2 |
Components | iOS |
Labels | qe-6.0.1 |
Reporter | Eric Wieber |
Assignee | Chris Barber |
Created | 2017-02-01T00:23:12.000+0000 |
Updated | 2017-05-07T16:41:19.000+0000 |
Description
When using Xcode 8.3 Beta 1 and trying to package for ad hoc, I get the following error:
[ERROR] Failed to package application
[ERROR] /bin/sh: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication: No such file or directory
[ERROR]
*Steps to reproduce issue*
1. Ensure you have installed, launched, and selected Xcode 8.3 Beta
2. Create a new project
3. Package the project for Ad Hoc: appc run -p ios -T dist-adhoc
*Expected Results*
The ipa is successfully created
*Actual Results*
The build fails with the above error
Confirmed. I'll need to research alternatives to
PackageApplication
.We should use
xcodebuild archive
, similar to [this StackOverflow](http://stackoverflow.com/a/19856005/5537752).I updated the iOS build to use
xcodebuild archive
and then export the archive to an ipa, but I'm running into problems. First off, here's the commit with my changes: https://github.com/cb1kenobi/titanium_mobile/commit/4aa90b891d7d5a6b25a79d53205ff06a0336e4dc. You can pull mytimob-24362
branch to test. When I run an adhoc build, I get this:Obviously, it can't figure out the provisioning profile. There used to be a
-exportProvisioningProfile
option toxcodebuild
, but it no longer exists. It appears to be replaced with-exportOptionsPlist
which I have the iOS build generate and looks like:Next, I created a vanilla native iOS app and built it using:
The build succeeds. Then I run:
and it errors with:
I'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.
TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8814 TiSDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8815 To test, clean your project, then run a
dist-adhoc
build. Ensure that Xcode 8.3 beta is selected by specifying-I 10.3
.Verified fixed, using: MacOS 10.12 (16A323) Studio 4.8.1.201701192045 Ti SDK 6.0.2.v20170202114945 Appc NPM 4.2.8 Appc CLI 6.1.0 Alloy 1.9.5 Xcode 8.2 (8C38) & Xcode 8.3 (8W109m) Able to package for ad-hoc using Xcode 8.3 and Xcode 8.2, without issue.
I'm still seeing this issue with 8.3.2(8E2002) Appcelerator Command-Line Interface, version 6.2.0 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. Operating System Name = Mac OS X Version = 10.12.4 Architecture = 64bit # CPUs = 4 Memory = 4.0GB Node.js Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium CLI CLI Version = 5.0.12 node-appc Version = 0.2.41
[~jceaser], which SDK do you have selected on your system and which SDK are you using to build your project with? You 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.Here is the output. The app sdk is 5.5.1 Appcelerator Command-Line Interface, version 6.2.0 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. SDK Install Locations: /Library/Application Support/Titanium /Users/Shared/Jenkins/Library/Application Support/Titanium [default] Installed SDKs: 6.0.3.GA [selected] 6.0.3.v20170322115949 /Users/Shared/Jenkins/Library/Application Support/Titanium/mobilesdk/osx/6.0.3.GA 5.5.1.GA 5.5.1.v20160927053850 /Users/Shared/Jenkins/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA Thanks.
[~jceaser], changing the SDK version in your tiapp.xml to 6.0.2.GA or later should get you working again. Based 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. The 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).
thanks for updating this guys, was hitting this problem with no clue what was going on until I saw this ticket. Thank you