Xcode: Could not locate installed application. Install claimed to have succeeded, but application could not be found on device

后端 未结 19 2004
执念已碎
执念已碎 2021-02-05 10:10

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

相关标签:
19条回答
  • 2021-02-05 11:05

    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.

    0 讨论(0)
  • 2021-02-05 11:08

    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.

    0 讨论(0)
  • 2021-02-05 11:08

    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!

    0 讨论(0)
  • 2021-02-05 11:11

    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.

    0 讨论(0)
  • 2021-02-05 11:12

    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

    0 讨论(0)
  • 2021-02-05 11:13

    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

    0 讨论(0)
提交回复
热议问题