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
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 ..
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With