I manually deleted my app from the iPhone and now I get this error message when trying to run it again from Xcode.
I cleaned the build folder, restarted the device, Xcod
In my case it was a problem with new Development certificate. It's created automatically after Xcode updated to 11 and may not be included in current provisioning profile.
On your iPhone go to Settings/General/Profiles & Devices/Apple Development: "YOUR APPLE ID" and delete all apps from there. It fixed the problem for me.
Problem occured on XCode 11
TL;DR:
Try changing Embed
option in General=>Section Frameworks, Libraries.. to Do Not Embed
(although it sounds strange)
In my General=>Section Frameworks, Libraries.. list are Security.framework
and the CocoaPods Pods_projectname.framework
amongst others. Default setting of these two was Do Not Embed
. Sounded strange to me, so I changed it without need alternating to Embed & Sign
or Embed Without Signing
. With both options the error occured!
Uninstall all the other apps that are under the same "Organization" or "Bundle Identifier" with your current app and try again.
It works for me. Hope it does for you too.
A solution that solved this issue for me was to check the signing team for my tests target. Selecting the same development team then meant that my app was able to be built and run on device.
Build system: New Build System
Xcode: Version 11.1
After trying everything here, for me the solution was to change my distribution profile to use the new Apple distribution certificate that covers all apple platforms. This should be compliant with xcode 11 (if you're not experiencing one of the other million problems since the "upgrade").
The cert change is mentioned here: https://developer.apple.com/documentation/xcode_release_notes/xcode_11_release_notes
Cert creation instructions here: https://help.apple.com/developer-account/#/devbfa00fef7
Once done, make sure the correct profile is selected in Signing & Capabilities, and 'Apple Distribution' is selected under Build Setting -> Signing for the appropriate build configurations