[TIMOB-24136] iOS: Simulator won't install and launch app using Xcode 8.2 / iOS 10.2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-12-12T07:53:39.000+0000 |
Affected Version/s | Release 6.0.0, Release 6.1.0, Release 5.5.1 |
Fix Version/s | Release 6.0.1 |
Components | iOS, Tooling |
Labels | ios, simulator, xcode |
Reporter | Hans Knöchel |
Assignee | Chris Barber |
Created | 2016-11-10T21:11:52.000+0000 |
Updated | 2017-01-21T19:44:04.000+0000 |
Description
Create a new Titanium app and try to run it with
appc run
or ti build
. The build succeeds, but the app never starts:
[TRACE] ** BUILD SUCCEEDED **
[INFO] Finished building the application in 16s 518ms
[INFO] Launching iOS Simulator
[TRACE] [ioslib] Selected iOS Simulator: iPhone 7 Plus
[TRACE] [ioslib] UDID = B1E64A97-DC1C-482D-BA35-CCC66CFF1479
[TRACE] [ioslib] iOS = 10.2
[TRACE] [ioslib] Autoselected Xcode: 8.2
[TRACE] [ioslib] Tailing iPhone 7 Plus Simulator system log: /Users/hknoechel/Library/Logs/CoreSimulator/B1E64A97-DC1C-482D-BA35-CCC66CFF1479/system.log
[TRACE] [ioslib] Running: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/simctl shutdown B1E64A97-DC1C-482D-BA35-CCC66CFF1479
[TRACE] [ioslib] iPhone 7 Plus Simulator was already shutdown
[TRACE] [ioslib] Running: /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID B1E64A97-DC1C-482D-BA35-CCC66CFF1479
I do have two active Xcode installations running as usual, so I specified -I 10.2
to force running with Xcode 8.2. That does not help. Maybe it's just my environment, but if not, we should have it on our schedule between 6.0.0 and 6.1.0.
*EDIT*: Also tried to delete Xcode 8.1 to not have two Xcode-installs at the same time and additionally tried to rename Xcode-beta
to Xcode
, all the same behavior. I also changed the xcode-select
path everytime to ensure the right one gets selected.
[~emerriman] [~cng] We should think about which release this ticket should be fixed in: 6.0.x or 6.1.0? 6.0.1 is quite near, 6.1.0 quite far away.
Titanium SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8667
To test, try to build an iOS app using iOS SDK 10.2 for a 10.2 iOS Simulator. It should install and launch.
Tested and works. Thanks
Is this really going to wait until 6.1? iOS 10.2 / Xcode 8.2 was released today.
+1 to Chris Bowley's comment above. A lot of people will be hitting this very soon. I'm having to revert to Xcode 8.1 right now. Thanks for fixing it quickly!
I'm with Chris Bowley. Please fix this in 6.0.1 Thanks
Behold the 6_0_X backport https://github.com/appcelerator/titanium_mobile/pull/8680.
Xcode 8.2 has been released public now, glad I came and checked here after getting this issue. Have restored XCode 8.1 but expect some more reports of issues.
Bug fixes: Titanium SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8683 Titanium SDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8684
u rly fucked up with this, its a huge blocker to all devs cuz installing failes for developing on simulator. i searched almost 8 hours for the error now, no logging, no announcing, nothing from ur side, except a *+resolved+* ticket which i found now. bring up this fix fast now!
[~ns] Technically it was Apple's fault. They broke
simctl getenv
in Xcode 8.2 which caused our stuff to break. :) Also, we did post a notification about Xcode 8.2 support, albeit on Slack: https://ti-slack.slack.com/archives/announcements/p1481646381000035. Titanium generally does not officially support beta releases of software (i.e. Xcode). Since Xcode 8.2 was just released after we shipped Titanium SDK 6.0.0, naturally 6.0.0 doesn't support Xcode 8.2. Now that Xcode 8.2 is out, Titanium SDK 6.0.1 DOES support Xcode 8.2. Feel free to grab a CI build from http://builds.appcelerator.com. Be of TIMOB-24227 which I'm going to fix today.Hi Chris is there an official place for these notifications?
[~thomas.neerup@eg.dk] I'm not sure. Appc has a dev blog, a Twitter account, and a Slack channel. I only have access to the Slack channel. I could post stuff on my personal Twitter account.
Support is available in SDK 6.0.1.v20161217061750.
Cpuld this fix be back-ported to 5.5.1 ?
[~dan_tamas] There won't be a 5.5.x patch for this, since other CLI adjustments are necessary as well to work with Xcode 8.2. But feel free to patch your 5.5.x version with the related commits, as all of them are open source.
Ok, where do I find all the changes? Before it used to be a comment with the PR(s) fixing the bug, but in this one... :)
[~hansknoechel] ^^^
TIMOB-24136, TIMOB-24219, TIMOB-24219, TIMOB-24227 and TIMOB-24241 are Xcode 8.2 fixes :-)
[~rborn] Start by updating
ioslib
in thenode_modules
directory. That will solve the 2 major problems withsimctl genenv
and the CoreSimulator service switching.thnx
[~rborn] -- I've started a PR for 5.5.x branch -- basically updating ioslib to latest fixed it for me -- thanks for the help [~cbarber]