Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
I just a few days ago installed LC 9 stable and Xcode 9.2.
In Xcode I downloaded iOS simulator 11.1, while according to LiveCode "Mobile Support" and "Test Target" I have even 11.2 available...
So whenever I Test run an application, the simulator fails to load.
Any ideas how I can get this thing going...?
Thanks,
Tom
In Xcode I downloaded iOS simulator 11.1, while according to LiveCode "Mobile Support" and "Test Target" I have even 11.2 available...
So whenever I Test run an application, the simulator fails to load.
Any ideas how I can get this thing going...?
Thanks,
Tom
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Hi Tom,
What happens if you remove Xcode 8.2.1 from the "Mobile Support". Keeping only Xcode 9.2 and deploying to iOS 11.2 should be fine.
Best,
Panos
--
What happens if you remove Xcode 8.2.1 from the "Mobile Support". Keeping only Xcode 9.2 and deploying to iOS 11.2 should be fine.
Best,
Panos
--
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
I tried with only Xcode 9.2 first, without luck. And then I added Xcode 8.2.1.
I’ll try again when I’m back at my laptop.
Thanks,
Tom
I’ll try again when I’m back at my laptop.
Thanks,
Tom
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
One thing I've learned in my experience with Apple environments is that all of the versions of the various components must "match". For example, Xcode 9.2 is NOT able to mount an iOS iPad with iOS 11.3... it requires Xcode 9.3. Ditto for other incompatibilities with Sierra vs High Sierra, etc.
You say you started with Xcode 9.2 and then added 8.2.1 so I don't see how Panos's suggestion is going to make a difference but it is definitely worth a try. Other than the compatibility issues, I don't have any other suggestions.
You say you started with Xcode 9.2 and then added 8.2.1 so I don't see how Panos's suggestion is going to make a difference but it is definitely worth a try. Other than the compatibility issues, I don't have any other suggestions.
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Hi all,
1. The version of the iOS *SDK* that is used to build the iOS standalone. This depends *only* on the Xcode version you are using to build the standalone (as the particular iOS SDK is included in the particular Xcode bundle)
2. The *minimum* version of iOS that *you* choose your app to run. You can set that in the Standalone Settings.
So for example, if you use LiveCode 9.0.0 and you are on MacOS Sierra or High Sierra, then you *must* Xcode 9.2 (--> that includes the iOS 11.2 SDK) to *build* the iOS standalone. In the standalone settings, if you choose e.g. "iOS 8.0 or more", then the standalone will run in any device that runs iOS 8.0 or more, so it will run in devices that run iOS 11.3 as well.
I suggested to remove Xcode 8.2.1 from the "Mobile Support", as when there are more than ones entries there it is possible that the standalone builder will get confused (I had seen that in older LC versions).
If the simulator does not start, try to open it first from Xcode:
- Open Xcode 9.2 and choose Xcode -> Developer Tools -> Simulator
- The simulator (possibly the iPhone 5s one) will open.
- I suggest changing the simulator device to iPhone 6 or above, as the default iPhone 5s I *think* is 32 bit, and LC 9.0.0 does not support 32 bit simulators.
- Once the new device (e.g. iPhone 6) simulator opens, wait for it to fully load, until it shows the home screen.
- Now go back to LC, choose "iPhone 11.2" in the Test target, and click on the Test button.
You should now be able to deploy to the simulator.
Best,
Panos
--
This is not correct. There is a difference between the following two "iOS versions":For example, Xcode 9.2 is NOT able to mount an iOS iPad with iOS 11.3...
1. The version of the iOS *SDK* that is used to build the iOS standalone. This depends *only* on the Xcode version you are using to build the standalone (as the particular iOS SDK is included in the particular Xcode bundle)
2. The *minimum* version of iOS that *you* choose your app to run. You can set that in the Standalone Settings.
So for example, if you use LiveCode 9.0.0 and you are on MacOS Sierra or High Sierra, then you *must* Xcode 9.2 (--> that includes the iOS 11.2 SDK) to *build* the iOS standalone. In the standalone settings, if you choose e.g. "iOS 8.0 or more", then the standalone will run in any device that runs iOS 8.0 or more, so it will run in devices that run iOS 11.3 as well.
I suggested to remove Xcode 8.2.1 from the "Mobile Support", as when there are more than ones entries there it is possible that the standalone builder will get confused (I had seen that in older LC versions).
If the simulator does not start, try to open it first from Xcode:
- Open Xcode 9.2 and choose Xcode -> Developer Tools -> Simulator
- The simulator (possibly the iPhone 5s one) will open.
- I suggest changing the simulator device to iPhone 6 or above, as the default iPhone 5s I *think* is 32 bit, and LC 9.0.0 does not support 32 bit simulators.
- Once the new device (e.g. iPhone 6) simulator opens, wait for it to fully load, until it shows the home screen.
- Now go back to LC, choose "iPhone 11.2" in the Test target, and click on the Test button.
You should now be able to deploy to the simulator.
Best,
Panos
--
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Hi Panos, I have followed your guidelines with no joy. Please find below my configurations and the error I'm getting. What should I do? Help please I have been struggling with this problem for hours...
Thanks
Thanks
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Hi Simon,
Maybe your command line tools are not set to Xcode9.2. Check this:
1. Open Xcode 9.2
2. Select Xcode -> Preferences from Xcode's menubar
3. Click on "Locations" icon
4. In the "Command Line Tools" dropdown, choose "Xcode 9.2"
Did that fix the problem?
Best,
Panos
--
Maybe your command line tools are not set to Xcode9.2. Check this:
1. Open Xcode 9.2
2. Select Xcode -> Preferences from Xcode's menubar
3. Click on "Locations" icon
4. In the "Command Line Tools" dropdown, choose "Xcode 9.2"
Did that fix the problem?
Best,
Panos
--
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Panos many thanks for your prompt reply, the good news:
still no joy, as can be seeing below LC tries to launch the App but the simulator never finishes. The simulator initially loads an iPhone5. I did manually open an iPhone6 but it didn't change anything
- in fact my Xcode Command Line Tools was "empty"
- I'm not getting the error anymore
still no joy, as can be seeing below LC tries to launch the App but the simulator never finishes. The simulator initially loads an iPhone5. I did manually open an iPhone6 but it didn't change anything
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Hi Simon,
I had this problem too. Here is what I did to solve it:
1. Open manually iPhone 6 or more, and close iPhone 5
2. Wait until the new simulator fully loads and shows the home screen.
3. Quit and restart LC
4. Try again to test in the simulator, this time it should work.
Best,
Panos
I had this problem too. Here is what I did to solve it:
1. Open manually iPhone 6 or more, and close iPhone 5
2. Wait until the new simulator fully loads and shows the home screen.
3. Quit and restart LC
4. Try again to test in the simulator, this time it should work.
Best,
Panos
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Panos, I did as you said but even with the iPhone 6 opened when I try to Test LC (or XCode) tries to open an iPhone 5 and then I end up as in the previous post...
Would it make sense to trash the XCode version download and install again?
Would it make sense to trash the XCode version download and install again?
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
I was able to make some progress, not sure exactly why...those are the steps I followed
- Remove XCode 9.2 from LC Mobile Support
- Close LC
- Have an iPhone 6 open on Simulator
- Open LC
- Add XCode 9.2 to LC Mobile Support
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
Re: Simulator fails in LC 9 with 11.2, while 11.1 in Xcode 9.2
Hi Panos,
I had exactly the same issues reported in this thread, and this solution was the KEY for me. So THANK YOU for this post. +1 from me
(Incidentally, I think Livecode should add some more informative messages when C++ errors are thrown during application testing, and be a little more constructive in advising developers on how to proceed. These issues seem to be reasonably common....)
I had exactly the same issues reported in this thread, and this solution was the KEY for me. So THANK YOU for this post. +1 from me
(Incidentally, I think Livecode should add some more informative messages when C++ errors are thrown during application testing, and be a little more constructive in advising developers on how to proceed. These issues seem to be reasonably common....)
LiveCode_Panos wrote: ↑Wed Jun 20, 2018 11:13 pmHi Simon,
I had this problem too. Here is what I did to solve it:
1. Open manually iPhone 6 or more, and close iPhone 5
2. Wait until the new simulator fully loads and shows the home screen.
3. Quit and restart LC
4. Try again to test in the simulator, this time it should work.
Best,
Panos