Xcode iPhone simulator is not launching app - ios

I am creating an app in IOS platform with Cordova (2.1.0) framework. When I select the iPhone simulator (6.1) with Xcode 4.5.2 and give a run, the build succeeds but the app is not launching on the simulator. Why is this happening?

Just reset your simulator and quit your xcode and Simulator. Then Restart the xcode again. Clean the Code and now run the project. It should work properly. Hope it helps you.

Related

Xcode 12.3 couldn't install app on iOS 14.3

I've updated my iPhone to iOS 14.3 and it required me to update Xcode to 12.3 too. But Xcode now gives me the following error whenever trying to run/debug the app through the device.
Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window.
I tried restarting Xcode, reconnecting the device, changing deployment target etc. with no luck.
if you updated you iOS to latest beta version, you should also use latest Xcode beta version.
Or else restart your device.

Facebook review build must work on Xcode 7.3 simulator?

Facebook has rejected a simulator build created with Xcode 9.4.1, targeting iOS 11+, that was submitted for review with the message:
Please ensure that the Simulator Build provided works with Xcode Version 7.3, as this is the software our team uses in review. More information about creating simulator builds can be found here.
Is it possible to create such a build with Xcode 9?
I have tried installing the build I submitted on the Xcode 7.3.1 simulator like this:
DEVELOPER_DIR=/path/to/Xcode-7.3.1.app/Contents/Developer\
&&\
xcrun simctl install booted \
/Path/to/Xcode/DerivedData/App-Identifier/Build/Products/Release-iphonesimulator/App.app
but when I try to launch the app it crashes immediately, leaving an assertion failed: message with some hex digits in the system log. I suspect this is because it does not support iOS 9.3, which the simulator is running, but there could have been other changes to the simulator that are causing it to fail.
The link facebook provided says to run in the Xcode iPhone 5 simulator, but my version of Xcode only seems to have simulators going back to the 5s.
Do I need to make my app run under iOS 9.3? Or re-write it in swift 2.2 so I can build it using xcode 7.3?

Xcode 6.4 "Could not download and install iOS 8.3 simulator"

I've been trying to install iOS simulators 8.3 & 8.4 on Xcode 6.3.2 an 6.4 beta respectively. In the first case is not even an option to download this simulator while in Xcode 6.4 it shows an error "Could not download and install iOS 8.3 Simulator. Authorization is required to install the packages". I've searched the web but I could not find anything so I tries reinstalling Xcode from Apple developer website as well as from the app store with no change at all. The only simulator I can use is 8.2. I cannot install any other version. Any help would be really appreciated.
This is the error on Xcode 6.4 with no additional option of iOS 8.4 Simulator
These are the simulator options for me to download which result in that error
These are my options in Xcode 6.3.2 with no option for iOS 8.3
I found a workaround on the Apple forums. If you run Xcode using sudo the simulator downloads and installs work just fine:
sudo /Applications/Xcode.app/Contents/MacOS/Xcode
Note: Once the downloads and installs are complete you should quit Xcode and start it normally.
The iOS 8.3 Simulator runtime is includes in Xcode 6.3 (which is why it isn't offered as an additional download).
The iOS 8.3 Simulator runtime should be downloadable from Xcode 6.4, as you show. Your dialog box reports that there was an authentication problem when attempting to install the package. You need to provide administrator credentials when installing the package.
The reason you are getting your "iPhone 6 runs iOS 8.2 which is lower than -project name- minimum deployment target." errors is because you are selecting an iPhone 6 with iOS 8.2 on it and not an iPhone 6 with iOS 8.3 on it.
Use 'xcrun simctl create' or Xcode's Devices window to create the iOS 8.3 devices you need.

The iOS 8.1 simulator runtime is not available error in Xcode 6.1

I was using Xcode 6.0.1 till now and things were fine. Then I upgraded to Xcode 6.1 and tried running my application(which has a deployment target of 7.0) in iPhone 6 simulator. But it shows an error message :
The iOS 8.1 simulator runtime is not available. Download the iOS 8.1 simulator runtime from the Downloads section in Xcode's Preferences
I manually deleted the earlier Xcode (6.0.1) and installed 6.1 from a dmg.
I tried searching across but couldn't find related stuff. Any help would be appreciated.
It is a Mac problem, not an Xcode problem.
Logout the user, shutdown, restart or just reboot Mac. Your Xcode simulator will go back to normal.
For anyone still facing this issue, this command worked for me:
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Rebooting did not help me.
Installing/Reinstalling Simulators worked!!
Look under (XCode Preferences-> Downloads -> Components)
Maintain an accurate list of iOS simulators
When upgrading, you may drag around old simulators no longer available with your current version of Xcode. You can clean these by running this command in Terminal:
xcrun simctl delete unavailable
Quit Xcode first just for good measures. From the documentation:
Delete a device or all unavailable devices.
Rebooting my computer fixed this exact issue for me. Same error was thrown for both iOS7 and iOS8 simulators. I'm on OS X 10.10 and Xcode 6.1.
Just had this problem with Xcode 8 beta 5. I downloaded ios8 and 9 simulators, but was not able to run my app. I simply deleted derived data and rebooted my computer. It worked for me.

How do I run my iOS simulator with iOS7 after Xcode upgrade

My Mac upgraded my Xcode to 6 and I can no longer run my apps on an iOS7 simulator. How can I get the old simulator back?
After ensuring that your iOS deployment target is 7.1 from the main settings of your project click where you can normally select a simulator size and go down to "Get More Simulators".
You can then download and install the iOS 7.1 simulator and then the options to run them will be available in that same menu.

Resources