Page 1 of 1
Unable to start the simulator
Posted: Tue Oct 15, 2019 9:55 am
by babas66
When I try to test an iOS app with the simulator, Livecode answer this :
"Unable to start the Simulator : Failed to install the requested app"
Has anyone ever seen this error message ?
I'm using LC 9,0,5 and Xcode 10,1. I don' t find solution to solve this error ... .
Thanks
Seb
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 1:28 pm
by sphere
Run the iOs emulator from within Xcode. Start Xcode---> run emulator
Then hit the test button again.
The it will work.
I had the same error as you, it seems it does not start the emulator from LC
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 2:31 pm
by babas66
thanks you for the reply.
It still not working with the same error. I tried launching the simulator within Xcode with the same result. Before, I opened the simulator directly in the package of Xcode (contents > developer > Applications > Simulator) and the test with LC worked well. I have recently change my Mac and now I have this error "Unable to start the Simulator : Failed to install the requested app".
(sorry for my English)
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 2:40 pm
by bogs
babas66 wrote: ↑Tue Oct 15, 2019 2:31 pm
(sorry for my English)
Don't be, although I don't have an answer to your question, your english appears to be fine.
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 4:25 pm
by sphere
Indeed your english is fine.
Check in lc settings for mobile phone if xcode is found. Then check the version of xcode. The last version of xcode is not yet supported, but will be in the next lc as far as i know.
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 9:50 pm
by babas66
Settings in livecode are ok, I have Xcode 10,1 linked and the icon is green. The release notes of LC 9,0,5 specify the compatibility with Xcode 10,1.
It is possible that the problem is about an error with the internal app ID and Profile (stand-alone settings) ?
Tomorrow I will try to do again this [how-to-create-a-free-ios-development-provisioning-profile/]configuration[/url] with Xcode
Thanks again for your help
Seb
PS off topic : is not possible to add a link in this message ? I tried to add an url (lessons of LC) but I can’t. The same thing if I want to write the number of a version including points (I have to replace them with coma in this message)
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 9:55 pm
by bogs
babas66 wrote: ↑Tue Oct 15, 2019 9:50 pm
PS off topic : is not possible to add a link in this message ? I tried to add an url (lessons of LC) but I can’t. The same thing if I want to write the number of a version including points (I have to replace them with coma in this message)
PS on topic (or at least a popular question), yes it is possible to add a url, however you need a post count of 10 first. You have 7 to go (as of this post)

- 3 down...
- postCount.png (6.86 KiB) Viewed 14728 times
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 10:03 pm
by babas66
bogs wrote: ↑Tue Oct 15, 2019 9:55 pm
PS on topic (or at least a popular question), yes it is possible to add a url, however you need a post count of 10 first. You have 7 to go (as of this post)
Oh! Ok, sorry

. I think it’s very possible that I continue to post in this forum, seem very helpful... and I’m a beginner with LC!

Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 10:16 pm
by sphere
Tomorrow I will try to do again this [how-to-create-a-free-ios-development-provisioning-profile/]configuration[/url] with Xcode
i'm not 100% sure, but it could be the cause indeed that it is not installing due to a wrong provisioning profile.
But if you already had one before, then it might be enough to repair/restore it when opening the project in Xcode(if you had one already made for that app on your previous system as you wrote), else do the lesson to refresh it
Re: Unable to start the simulator
Posted: Tue Oct 15, 2019 10:17 pm
by bogs
We hope you enjoy our little place here
I would add that, without exception, everyone was once a beginner in Lc (although several had a HUGE jumpstart having used Hc and Mc), so your in good company, and no apologies are necessary

Re: Unable to start the simulator
Posted: Wed Oct 16, 2019 1:19 pm
by babas66
Hello,
I tried to reconfigure all the settings of Xcode and I can install an app in a physical device now. The simulator still not working with the same error but at least I can test an app in iOS again !
Thanks for yours replies.
If I find a solution for the simulator (I hope), I will say it here.
Re: Unable to start the simulator
Posted: Wed Dec 04, 2019 8:39 pm
by LiveCode_Panos
Hello babas66,
Did you ever install Xcode 11.x? If yes, then I think I know where the problem is. I had the same problem and spent a lot of time trying to figure out the cause, as the error message from the simulator is not informative at all. So, short description of the problem:
By installing xcode11.x and its additional components, a couple of new subfolders were created in /Library/Developer/* folder. These new files contain the new CoreSimulator framework (of xcode11.x), which includes some changes. One of these is that it no longer allows installing apps to the simulator that do not include a particular key in the plist. Even if you uninstall Xcode 11 and install Xcode 10.1, this file is not replaced by Xcode10.1's equivalent (because the one from Xcode11 is newer, so it does not allow older ones to overwrite it).
Solution:
1. Open Finder, and choose (from Finder's menubar) Go -> Go to Folder and enter /Library/Developer/
2. Delete the /Library/Developer/ folder (or rename it to /Library/XCode11_Developer/)
3. In the terminal, type sudo xcode-select --install and press enter. This will show a dialog asking the user to agree to xcode's terms and conditions and then to install the additional components. Click "I agree" and then "Yes install them"
4. This will create a new folder /Library/Developer/, which will contain the correct additional components (i.e. including the CoreSimulator framework) from Xcode 10.1
5. Now type in the the Terminal sudo xcode-select -s <path_to_xcode10.1.app>
This will hopefully work. Then, make sure you follow the instructions from the previous posts (i.e. to launch the simulator first and then click "Test" in LC)
Kind regards,
Panos
--
Re: Unable to start the simulator
Posted: Thu Dec 05, 2019 3:18 pm
by babas66
Hello Panos,
thanks you very much for your reply and the description of the problem.
It's work well now !
Effectively, i'have install Xcode 11.x and Xcode 10.1. Your solution to delete worked but it was impossible to launch a device in the simulator with Xcode 10.1, I have reinstall completely 10.1 and the simulator work fine with livecode now.
regards,
Seb
Re: Unable to start the simulator
Posted: Fri Jun 04, 2021 2:03 pm
by adventuresofgreg
I had this same problem trying to get the simulator working after my Mac rebooted due to a power issue. I was able to solve it by FIRST, launching Xcode and the simulator, THEN launching LC 9.6.0 (in that order).
Greg