I manually deleted my app from the iPhone and now I get this error message when trying to run it again from Xcode.
I cleaned the build folder, restarted the device, Xcode and the Mac, nothing helps.
I also tried everything that's mentioned here: Install claimed to have succeeded, but application could not be found on device
How do I force a re-installation?
Problem occured on XCode 11
TL;DR:
Try changing
Embed
option in General=>Section Frameworks, Libraries.. toDo Not Embed
(although it sounds strange)In my General=>Section Frameworks, Libraries.. list are
Security.framework
and the CocoaPodsPods_projectname.framework
amongst others. Default setting of these two wasDo Not Embed
. Sounded strange to me, so I changed it without need alternating toEmbed & Sign
orEmbed Without Signing
. With both options the error occured!On your iPhone go to Settings/General/Profiles & Devices/Apple Deelopment: "YOUR APPLE ID" and delete all apps from there. It fixed the problem for me.
This was the solution that worked for me.
A solution that solved this issue for me was to check the signing team for my tests target. Selecting the same development team then meant that my app was able to be built and run on device.
Build system: New Build System
Xcode: Version 11.1
I had a similar issue after one of Carthage/XCode updates. It means iOS was not able to install app on the phone. XCode apparently is not able to provide this information directly. The first thing to do is open your phone console - go to
Window/Devices and Simulators
then select your device and clickOpen Console
. In the console you can search for your app name what should provide you more detailed fail info. In my case it was sth like this:There was another console log few rows before flagging the problem:
There was an issue with one of the frameworks
Alamofire
I'm using in the project. I changed bundle identifier of the project and build framework again what solved the problem.Hope it helps!
As Marcin's answer suggested, I visited the phone console and in my case, it is this error message:
So if you are signing your app with a Personal Team certificate, make sure that you don't have more than 3 apps.
Read more here: Why can I not install more than three apps?
As always, when the question is posted on SO, one finds a solution ;)
I edited the Scheme, setting the build configuration from debug to release and that installed the app again. Changed it back to debug and now it's running again as expected.