问题
I've been trying to test an app on an iOS 12 device, but every time I build it, it successfully builds on the device (my iPhone or iPad) but crashes and I receive this message:
Unable to launch /private/var/containers/Bundle/Application/
(I'm using Xcode 10 beta 3 and Swift 4.2)

回答1:
Check if you already trusted the author of the app in your development device:
Settings -> General -> Profiles & Device Management -> Company name -> Trust the app if not done yet.
I hope this helps 🙂
回答2:
I might have found a solution for you.
After deleting and renewing all Apple certificates which was not effective, I clicked on "system" tab in keychain access and changed Apple Worldwide Developer Relations Certification Authority from "always approved" to "default" setting.
Built again in xcode and it now runs properly.
Hope this helps!
回答3:
1- Check if you are using distribution profile while running the application directly from Xcode to device, if so please use developer profile instead.
2- Check if your device iOS is higher than the beta 3 as you are using Xcode10 beta3. If higher, try to use same Xcode beta version as your iOS
If thats not the case provide more info about the Build setting you are using.
来源:https://stackoverflow.com/questions/51635230/unable-to-launch-private-var-containers-bundle-application