Working with my first application for learning purposes. It goes well but has met into a problem with Xcode. When I try to run the application on the iPhone simulator this m
rm -rf ~/Library/Developer/Xcode/DerivedData/
I was seeing this on all simulators and all devices. Uninstalling the app would work once, but it continued to fail on me.
The fix was to wipe out all my project's pods:
pod deintegrate
And then re-install again:
pod install
This was with XCode 9.3 and iOS 11.2/11.3.
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.
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.
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.
I resolved this issue to remove DerivedData from Xcode Preferences. and also Restart the simulator from Hardware.