I have a fresh iPhone project. When I "Build and Go":
Error from Debugger: Failed to launch simulated application: iPhone Simulator failed to install the application.
Why is that?!
You need to remove the folder as sudo ~/Library/Application Support/iPhone Simulator
sudo rm -Rfv ~/Library/Application\ Support/iPhone\ Simulator
It looks like previous versions of the SDK have some kind of permission trouble.
You don't have to sign code to run in the simulator, only for running on real devices.
Was the app running in the simulator successfully before? If so, did you make changes to the app since? Maybe try rolling them back until it starts working again to identify where the problem is.
Can other apps run in the simulator, or is the problem isolated to one particular app?
Take a look at this article.
Have you tried opening the simulator from /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
and checking if anything (ie Mail, Safari, etc) works in the simulator? That'd tell you at least whether the Simulator is broken or there's something wrong with deployment.
I had this problem too! I deleted the folder "/Library/Application\ Support/iPhone\ Simulator" in my user directory. Started the simulator again and it started right up.
I ran into a similar situation where my home directory was on an NFS share. Deleting my "~/Library/Application Support/iPhone Simulator" directory didn't help, but sym-linking that directory to a location on my local disk did fix the problem.
I just solved this problem by reinstalling the SDK (iphone_sdk_3.1_beta_3__leopard) and restarting my machine.
After renaming the application the app would not launch in simulator. I was getting the above error. I tried most of the suggestions above, checked all my settings in the plist, also checked the build settings, and nothing worked. What worked for me was to reset the simulator.
try to "reset content and settings" on ios simulator menu
Related
Working with my application It goes well but has met into a problem with Xcode. When I try to run the application on the iPhone simulator this message always pops up:
"A coordinated app install already exists for com.apk.ios with intent IXCoordinatorIntentUpdating (creator InstallCoordination Simple SPI) but request by CoreSimulatorBridge (pid 677) was for intent IXCoordinatorIntentInitiating"
What is wrong? There are no errors when trying to build the app. Has tried to clean the build.
Erasing all content and settings is not always necessary as #user3344236 stated.
Please make sure to delete the app that you are trying to install from the iOS Simulator. That'll probably solve your problem.
Why this occurs?
In my case something went wrong while Xcode is trying to install the app on the simulator. Everything is frozen and I had to restart the Mac manually.
Found a solution that works for me:
Reason:
Either the App store or something else tool is downloading the same app with the same identifier at the time Xcode is trying to launch the same app on the Simulator or on MAC.
Solution:
Need to stop/delete all the running installs of the app with the same identifier. (How to stop -> that can be figured out to see either App Store or any other tool ) Then try again to launch the app with Xcode, this time it succeeds.
No need to Reboot the simulator/ Mac or reinstall Xcode.
Thanks, Hope this will help someone.
I have a source code of a swift application which developed for iOS using swift 3.
I want to run it inside Xcode however it remains in loading state forever.
I have tried solutions provided in question Xcode freezes on startup while loading project however the situation did not change.
The developer of this source code told me that he used Xcode 9.x to develop application so he suggested me to try a 9.x version of Xcode. I guess Xcode should be backward compatible however I want to know does using Xcode 9.x changes the situation or I should look for reason somewhere else?
Using answer in apple.stackexchange.com did the trick:
Removing the ~/Library/Saved Application
State/com.apple.dt.Xcode.savedState/directory might help.
I tried all the solutions outlined here and none of them worked. However, I managed to fix this issue and here is what worked for me: If you're on an Apple OS and have iCloud sync enabled on your desktop/documents/any folder where you're loading Xcode from, the iCloud sync could be causing this issue.
I installed a fresh copy of my RN project in a directory not synced by iCloud and subsequently the issue was resolved; my build-time was down to a couple of seconds!
rm -rf ~/Library/Developer/xcode
in terminal worked for me, based on this answer
As of July, 2022, nothing else worked for me but, taking my project outside of the iCloud Drive and putting it into a directory without it. As it is mentioned above, iCloud sync interferes with the XCode running and stalls it.
I wasted almost 2 hrs and tried everything on stack over flow
SIMPLE SOLUTION
Just turn OFF icloud from your mac os so that it it will not sync the project.
To turn off icloud
Go to setting
Icloud
turn off sync
Thats all enjoy
I tried to delete:
~/Library/Developer/Caches/com.apple.dt.Xcode
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Saved Application State/com.apple.dt.Xcode.savedState
~/workspace/MyProject.xcodeproj/project.xcworkspace/xcuserdata
and once it helped. But another time it didn't help, so I also tried to reinstall Xcode, which also didn't help.
It turned out that the problem was that I was installing the app via WiFi or Bluetooth. When I connected my device via cable, the Xcode popped up to life and the "loading forever" stopped.
My xcode got hang when I force quit it. After that it was showing only "loading".
Here is fix to start xcode from beginning.
cd /
cd Applications
cd Xcode.app
cd Contents/MacOS
sudo ./Xcode
it will open xcode default window to open a new project.
I'm using MAC OS X mountain lion (10.8.4) and xcode 4.6. My IOS simulator gives error that "The simulated application quit, switch sdk"..........
Firstly I tried to reset ios simulator, but its not working.
Secondly, I tried to delete folder "6.1" under ~/Library/Application Support/iPhone Simulator
But i'm unable to find iPhone Simulator folder under Application support.
Thirdly, I uninstalled the xcode 4.6 by draging it to trash. And then installed it again, but the same error appears whenever i try to run any application.
I think, i'm not uninstalling the xcode properly. To uninsatll completely when I type following command
/Applications/uninstall-devtools --mode=all In resoponse I get "Command not found" tried with different commands. Nothing worked. I have wasted my last 12hours to get this work but couldn't.
The problem was in Mountain Lion the Library folder that is situated in the user's account folder is hidden by default. I just unhide it then deleted the iPhone Simulator folder situated in the Library/Application Support and then restarted the xCode everything is OK.
So, stupid problem if you know just 10sec are enough to solve this. Thank God I found myself.
May be someone can find help from this.
I just tried to get my own app on my iPhone without a developer account. The following are steps I did:
I patched Xcode and my project (Currency.xcodeproj) with JailCoder
I want to build the project with "iOS device" in Xcode. But I got a error message like "no device found". So I ran it in the emulator and I got the currency.app-file in /Users/Dogan/Library/Developer/Xcode/DerivedData/Currency-gjxrulouxbmjslbzslsplyehgfgm/Build/Products/Debug-iphonesimulator
SSH to iPhone in /var/mobile/Applications
Creating a new folder named FADE9826-4878-4458-B5BE-90AD4EB60FDF (I have to take a valid UDID. Have I use to specific tools to create a UDID? I have the UDID from an other example). I also created a directory in this folder with the name "Documents".
chown -R mobile FADE9826-4878-4458-B5BE-90AD4EB60FDF
scp -r Currency.app root#IP-ADRESS-OF-IPHONE:/var/mobile/Applications/FADE9826-4878-4458-B5BE-90AD4EB60FDF/
Restarting Springboard in SSH with "killall SpringBoard"
I got the app, but it doesn't work. Every time on click, it crashes and kicks me to the home screen. Had I missed something?
You missed that simulator builds don't work on iPhones, because they are built for the wrong CPU type. Simulator builds are Intel x86 apps, and the iPhone has an ARM CPU.
There might be other problems (I don't know how jailcoder works) but there's no way you're getting the simulator build running on the phone.
After downloading Jailcoder and going through the guided patch of Xcode and then patching your project, if your device is plugged into your computer, select the target type (where you can select simulator, iOS Device, etc.) and there should be a listing of your device's name.
I have a problem with my iPhone simulator. Since yesterday when I press Build and run.
Xcode builds the project
Simulator closes the running app
Simulator opens the running app in same state as it closed (multitasking?)
The old build keeps running, I have to quit the simulator before i can run the new build.
I tried cleaning the project, tested with a new project. Same problem. Rebooted everything.
Running Xcode 3.2.4 / 4.1 SDK.
I was going crazy with the same problem. It seems that some people have this problem and some don't. Somehow I stumbled onto this: http://openradar.appspot.com/8915498
Basically, it says that if you're running the iPhone simulator on a different volume than the xCode app, there is some problem with updating the simulator and you have to restart each time.
I almost ignored the fix because I only use one volume, but I DO use filevault for my home folder. Since the Library/Application Support/iPhone Simulator was in my /Users/[me] directory, I guess it's a different volume.
So, what I did was:
1) Go to /Users/[Me]/Library/Application Support/iPhone Simulator and renamed to "old-iPhone Simulator" (just to get it out of the way without deleting)
2) Go to /Library/Application Support and create a new folder called "iPhone Developer"
3) Open Terminal and enter: ln -s "/Library/Application Support/iPhone Simulator" "/Users/[Me]/Library/Application Support/iPhone Simulator"
Viola! Worked like a charm for me! Now iPhone simulator shows me the changes I make every time I push "Build and Run" without any other hassles! Yay!
3)
I added a Run Script to my target to work arround the issue
killall -9 "iPhone Simulator"
Not a proper fix, but works for now.