I managed to find the problem. The problem was that I had added some keys to a property list file that was not valid. I found the error by looking in the log file that was located here: ~/Library/Logs/CoreSimulator/
I know the question has been answered but for others encountering the same issue I suggest following:
Check simulator logs, if its printing something useful. First, selecte simulator then from menu option open Debug -> Open System Logs.
Make sure only 1 simulator is running.
Delete the older version of app from the simulator.
If you importing a custom framework, make sure custom framework->bundle-id is not same as currentAppProject->bundle-id. If you are not sure then simply change the bundle-id of current project.
Also some of the simulators can be buggy -> Simply change the simulator, it may resolve the issue, for me changing the simulator worked.
Just quite the simulator and start again works for me. In my case the error always occur if I change the bundle identifier and run afterwards the iPhone X simulator.
I got this error too. It all started a short time after I let Xcode update my project settings. Specifically on my CocoaPod sub-project. I removed the pods and reinstalled them and that solved my issue. Hope this works for you or others who find this question as well.
Changing the CFBundleShortVersionString in InfoPlist.strings to match the one in info.plist fixed this for me. I had to use the simulator's "Erase All Content and Settings" after making this change.
Trying to launch on a simulator with iOS 9.0 (instead of 11.2) gave this error instead, which helped me to find more answers on what's apparently the same issue:
The operation couldn’t be completed. (LaunchServicesError error 0.)
For anybody wasting time on this obscure error. If you don't have any relevant logs and all the other answers fail, you might check if you recently added a framework that for some reason (didn't investigated why) can't be embedded, only linked. Happened to me with GoogleMaps for iOS.
Instead of restarting the simulator you can also just delete the app from the simulator. This error is caused when you have made your app ready for production and then attempt to build it on a phone. There are issues when you are trying to build the same app twice (this is also why you don't get this issue when you run in testing mode).
I encountered this error, but it had nothing to do with my Info.plist or Cocoapods. I had mistakenly deleted a duplicate NotificationServiceExtension group in my Xcode project, which caused me to end up with a NotificationServiceExtension target that had no source files (I only need one source file to integrate/piggy-back off of the Urban Airship SDK's rich notifications).
After reverting the commit where I deleted the duplicate group and then deleting the correct duplicate group (the one that didn't list the source file as being part of the target), I was able to build and run just fine.
If you importing a custom framework, make sure custom framework->bundle-id is not same as currentAppProject->bundle-id. If you are not sure then simply change the bundle-id of current project. It works for me : )
To add a bit of additional info here. While Xcode is completely unhelpful about telling you why the app couldn't be installed, the console has quite good error messages. Just launch Console.app (Applications > Utilities > Console) and filter the output by installcoordinationd.
It'll give you something like this that describes the error:
I encountered this error while developing my first WatchKit app. Followed guidance from @PureRushh, @Antonioni and others to dump the contents of:
~/Library/Logs/CoreSimulator/CoreSimulator.log
The log contents led me to the error. I'll include the details in case others encounter this error while developing WatchKit apps.
Log message:
com.apple.dt.Xcode[89555] : installApplication:withOptions:error:: Error Domain=IXUserPresentableErrorDomain Code=1 "This app could not be installed at this time." UserInfo={NSLocalizedDescription=This app could not be installed at this time.,NSUnderlyingError=0x7f9ab87d1f20 {Error Domain=MIInstallerErrorDomain Code=101 "WatchKit 2.0 app's bundle ID com.somecompany.AirTime2.watchkitapp is not prefixed by the parent app's bundle ID followed by a '.'; expected prefix com.somecompany.AirTime."
Cause: I had modified the value associated with the BundleIdentifier key in the Info.plist (via General-> Bundle Identifier) of the parent app to match a URL Type (for SSO redirect); however, I failed to update the WatchKit App Info.plist value associated with the WKCompanionAppBundleIdentifier key (see second bold line).
Fix: Modify the WatchKit App Info.plist value for the key WKCompanionAppBundleIdentifier to agree with parent app's bundle ID
I have faced the same problem like this. but nothing worked for me. Then i noticed one problem in my info.Plist file. The Executable file name was different compare to Schema name in Edit Schema. So make sure This both is same, then try to run your project. It should work.
Hi Guys just want to let you know that none of the above worked for me.
I was busy working, integrating a dynamic library into my project. I know that the library worked, so I didn't give it a second thought.W hat I did was just to
delete the reference to MyLibrary1, recompiled MyLibrary1 and embedded again
for a successful build. Hope this helps someone.
If someone is still facing this problem please check these steps.
This usually happens when there is some error in your Info.plist. In my case, there were two Supported interface orientations entry.
Follow these steps and you will surely find the solution to this. Most of them are already mentioned above
Simulator > Device > Erase All Content & Settings
Remove duplicate entry of Supported interface orientation or check your plist file for any error
In your Xcode > Product > Clean Build Folder ( Cmd + Shift + K)
Just try to Build & Run the project
I hope you are able to fix this irritating problem after this.
When you use letters which is not the alphabet for Display name, this error might occur. For more information take a look at this.
Xcode11でCould not hardlink copyってエラーが出る
In my case, my app uses app display name in Vietnamese (contain some special characters). I removed old app installed in simulator, then change my app name with only alphabet characters, and it worked!