glemoulant
glemoulant

Reputation: 527

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

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 ..

Upvotes: 16

Views: 8066

Answers (10)

guozqzzu
guozqzzu

Reputation: 899

I also got this alert. That's because i run the app in release Build Configuration, but with a appstore Provisioning Profile . It's not allowed. So i change the appstore Provisioning Profile to a dev Profile. Then everything is ok.

Hope this can help you.

Upvotes: 1

Biba
Biba

Reputation: 1595

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.

Upvotes: 2

Alex
Alex

Reputation: 1

I was using different signing team/certificate for ...Tests target. Setting the same for main target helped.

Upvotes: 0

nclark
nclark

Reputation: 1082

Here's another solution. I had previously installed three other apps using XCode and got this error message when I tried to install a fourth.

I simply deleted one of my three existing apps (after hours of hair pulling and SO searching) and tried again. It worked.

Platform: iPad 2018 on v13.1 with XCode v11.1,

Upvotes: 0

Zezeron
Zezeron

Reputation: 57

Update pods if you have.

pod update

just it.

Upvotes: -1

folobe
folobe

Reputation: 21

For my case (xcode 11, ios 12.4), change the Bundle identifier can solve this issue... Before changing Bundle id, I've tried

  • using beta xcode
  • deleting app on iphone
  • deleting derived data
  • cleaning project
  • reopen xcode

Upvotes: 0

daroubaozi
daroubaozi

Reputation: 462

I have the same problem,I modify the project setting

File --> Workspace Setting --> Build System --> Legacy Build System

it's OK for me

Upvotes: 0

OgnjanD
OgnjanD

Reputation: 91

This is probably not the case for most people facing this issue, but I faced it once several days ago and easily dealt with it by cleaning the build folder and switching to a legacy build. The second time I faced it, none of the suggested solutions seemed to be working.

I then noticed that because I'd almost run out of storage on my device, iOS had "offloaded" almost all of my apps. If there is a small cloud under your apps and the app needs to "install" again before launching, then this is the case with your phone too. Trying to launch all of the apps that I don't use regularly (so I never noticed the little clouds) "reinstalled" all of them and solved the issue entirely. Maybe this helps someone facing this for similar reasons.

Upvotes: 1

hao luo
hao luo

Reputation: 1

I found a way to solve this problem. After I upgraded iOS 13.1, the real machine also ran. Later, I found out that because I had archive operation the day before, the real machine running certificate changed from distribution mode to development mode and everything worked normally.

Upvotes: 0

Binkan Salaryman
Binkan Salaryman

Reputation: 3048

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.

Upvotes: 2

Related Questions