Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install claimed to have succeeded, but application could not be found on device Xcode 11

Tags:

ios13

xcode11

Just after switching from Xcode 10 to 11, I am unable to install my app on any device

The error at launch time after installation succeeded says : Install claimed to have succeeded, but application could not be found on device.

Details says :

Could not locate installed application Domain: com.apple.platform.iphoneos Code: -1 Recovery Suggestion: Install claimed to have succeeded, but application could not be found on device. bundleId = myBundleId

-- Installed application was not present in database of installed apps after multiple lookup attempts. Domain: com.apple.platform.iphoneos

Code: -1

However everything works fine on a simulator. I tried to delete derived data, clean project, delete the app ..

Very strange : After submitting the app to testlfight I can download it and it works. But when I build a new app to Xcode it launch the app just downloaded from tesflight and not the version pushed via Xcode ..

like image 970
glemoulant Avatar asked Aug 29 '19 15:08

glemoulant


2 Answers

For me, it's a problem with ipatool.

Here's a way to find out details why it failed to create a proper iPhone App (.ipa) file from the build output/Xcode archive:

Go to Product > Archive, then open Window > Organizer > Distribute App.
It should show you "IPA processing failed" with a big red error symbol.
Now, open the logs and search along these lines:

timestamp Assertion failed: Expected n archs in otool output:

and

timestamp /Path/to/ Xcode-beta.app/Contents/Developer/usr/bin/ipatool exited with 1

While this can't be the final solution, try removing all problematic libraries mentioned in the logs between the two lines until ipatool exists successfully.

like image 74
Binkan Salaryman Avatar answered Sep 19 '22 00:09

Binkan Salaryman


I also had this issue/error message. I realized that I had automatic signing deactivated and I had selected a provisioning profil with a distribution certificate.

Solution: So if you want to run the app on your iphone directly from Xcode (not through testflight) you have to make sure you use a provisioning profil with a developer certificate.

like image 25
Biba Avatar answered Sep 18 '22 00:09

Biba