I am using Xcode Version 6.1 (6A1052d)
I am trying to launch an app on the simulator.
The first time it always works fine. If I want to launch a second time,
Find the InfoPlist.strings files. And check if the version of "CFBundleShortVersionString" = "1.1"; coincides with the version of your app in Info.plist
I had this issue too for a long time. I tried most of these solutions. I'm sure they worked for some people, but not for me...
Then I noticed if you go to Project Settings -> Build Phases -> Embed Frameworks
there is a flag for Copy only when installing... I ticked it.
This problem went away.
In my case, it was a file that was not included in the application that had the emulator. Just remove the emulator app, clean, recompile and start it. When adding the file, and make sure the "Copy items if necessary" check box is enabled
This fixed it for me:
SIMULATOR_NAME="iPad Air 2"
# Erase a device's contents and settings
xcrun simctl erase "${SIMULATOR_NAME}"
Thanks to https://encyclopediaofdaniel.com/blog/xcode-6-reset-simulators-from-the-command-line/ for the explanation!
My env:
xcode 8.3.1
iOS 10.3 (14E269)
SIMULATOR_NAME="iPad Air 2"
I faced this error while leaving Build field blank using only Version on General tab. The error has gone after setting a build value and reinstalling the app.
I experienced this issue in a multi-target project. After duplicating a target I forgot to change the "Product Bundle Identifier". Once I changed this parameter into a unique value (see tab "Build Settings"), the error disappeared.
EDIT
After changing the "Product Bundle Identifier" you must erase all content and settings from the simulator and clean your build folder in Xcode (Cmd+Shift+K).
I'm using Xcode 10.1.