After my Xcode simulator runned an old version of my application i clicked "erase all content and settings". Now my simulator doesn't show the application at all.
The app i made previews perfectly on the canvas in Xcode, but the app doesn't appear in the simulator.
I am running Xcode 11.5.
How do i get the updated app to run in the simulator?
Just try to reopen Xcode and chose any simulator you want and wait until app will open
Press Command + r, then Xcode will build the app and install it in your simulator. Might take 30 seconds or so, when it is done the app will launch automatically.
Related
I change the scheme to Apple Watch and hit run, the watch simulator shows up but my app icon is not even seen on the home screen of watch.
I have been trying for days now. I tried cleaning project, cleaning build folder, removing derived data, removing files in the watchOS DeviceSupport, restarting Xcode(9.2), restarting Apple Watch Simulator
(External Displays option does not shows Apple Watch Alternatives by the way)
Can you help with the possibilities that might cause this issue?
What else should I try?
Xcode does not launch my app on the watch simulator :/ this is the summary of the issue.
On the iOS(iPhone) simulator launch the Apple "Apple Watch" app (not your app) scroll all the way down to the buttom, down there your app should have a loading icon next to it, wait 20 minutes if the icon haven't shown up on the watch, restart your computer, with the option to relaunch all apps ticked to off, launch xcode, then try the above mentioned.
When trying out my first watchOS app, I was seeing the same behaviour. I could not find the app's icon in the simulator. The following is what I did.
I stopped the app in Xcode.
Launched it again.
This time I opened the main app in the iPhone simulator also.
The icon for the app appeared in the watch simulator among other apps and the app launched.
For ~10 seconds a loading indicator was shown.
I was able to continue debugging normally from then on.
I use Xcode 7.2. I click Build to run the iPhone 6 PLUS simulator in Xcode it tells me "running app on iPhone 6 Plus". The simulator icon appears and it either just jumps up and down and never stops. Or it stops jumping I open it it's a black simulator screen with a white apple symbol. Then I wait 5-10 minutes and it never loads the app. Sometimes it loads up to home screen in simulator but then again never loads the app.
What could be the reasons for this iPhone simulator not working?
Do you have the simulator open from a beta version? That will stop the simulator from working in a non-beta version (or vice-versa).
I'd also open up Console.app and see if there is anything in the logs with a reason why it might not be running.
Before I updated from xcode 6 to 7, it was just right next to the run and stop button.
When i just click on the run button, it opens the iphone 5 simulator and from the simulator's menu, if i choose Hardware > device > iphone 6 plus, it's just completely black. If I try to run the app again, it just says that it's running on iphone 5 in Xcode.
How do I choose a different simulator?? or run on a physical device connected to the macbook?
This worked seamlessly on xcode6 with the use of the device dropdown menu beside the run and stop button. but now, that menu is gone.
Another question: I am unable to find ios9 simulator under preferences > downloads
In one of the pre-versions of Xcode 7 I had the same issue. The problem was, that there were no simulators installed.
Go to Xcode -> Window -> Devices a window will pop up. Click on the plus button in the bottom left corner and configure some devices.
The device selector should show up in Xcode.
Turns out Xcode did not finish downloading. There was an error when I checked the update. I made it complete the download and xcode is okay again
I just updated my iPhone4s to ios7 and xcode to 5.
I am trying to run my app on the iphone which worked for 6.1.x and 4.xx. However,
after the update xcode claims not to find my connected iphone testing my app.
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination?
Window -> Organizer.
Click on device tab.
Click on the iOS device on the left side and click the button 'Use for development'.
Check in Organizer if device is used for development or has lost this property on xcode actualization.
check the organizer like Rauru Ferro said. It might need some time to update the settings in Xcode. You should see a progress bar loading, after that everything should work fine.
I have been having this weird problem with Xcode 4.3.2, of course after the recent update.
After successfully building and running on the simulator several times, xcode seems to not be able to connect to the simulator and can't even stop the project; it's like the simulator does not exist. I have tried:
Stopping the project – doesn't work.
Quitting the simulator – doesn't work, xcode still shows it's running on the simulator even when I quit the simulator.
Cleaning the project – doesn't work.
I have to force quit xcode to get it communicate with the simulator. Nothing else works. It gets quite frustrating to do it every half an hour. This only started with 4.3.2.
I always stop before building and running, so it is not an issue of simulator/xcode getting thrashed by me.
Any suggestions?
I have found by chance, it is not a solution by any means -
When xcode hangs, saying it is running the app, but nothing is on simulator, opening the simulator from the dock by clicking on the dock icon (not using command+tab) seems to work.
It is very weird,but it works; atelast till xcode fixes it.
I had the same damn issue on XCode 4.5.1, but I resolved it just now.
When the program is running, it gets compiled but doesn't show anything on the simulator. just click on iOS Simulator icon in dock in order to bring it to front. Click iOS Simulator on top left -> Reset content and settings -> then force quit the iOS Simulator and run the program again. !!
Besides a restart, there is one other way I've managed to get around this:
Let's say your app hangs, go to the targets selector in the top of the Xcode window and change your sim target to a new SDK (or if you don't have another SDK, change it to a universal app and run on the opposite device simulator).
Then, when your app loads on the new device/OS completely, quit the sim, change your targets back, et voilà!
Uninstall application from Simulator and again run. Then it will works fine :)
This has frustrated me for -years- now but stumbled across what appears to get things going again for me:
Hide the simulator (iOS Simulator -> Hide iOS Simulator) or Cmd-H, then reopen the simulator.
The problem seems to happen when something CPU intensive is happening in the background (like a Time Machine backup) on my old 2 core MacBook.
Xcode 4.6.3 update (June 13, 2013) resolves the following issue:
Hang when debugging in iOS Simulator on OS X 10.8.4. 13722320
https://developer.apple.com/library/mac/#releasenotes/DeveloperTools/RN-Xcode/
You can try to update your Xcode to see if that works for you..