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