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

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