Xcode 11.2 - Unable to install App file to device?

前端 未结 20 2798
半阙折子戏
半阙折子戏 2020-12-29 18:32

I recently updated my OS to Catalina, and updated Xcode to 11.2. Since doing so, when I try to run a release version of my app on my device, I\'m simply given the error:

相关标签:
20条回答
  • 2020-12-29 19:04

    This could be due to running distribution/release scheme. Changing the scheme to debug works for me. Hope this helps someone.

    0 讨论(0)
  • 2020-12-29 19:05

    "-402620395 Failure Reason: A valid provisioning profile for this executable was not found."

    I had this issue as well and solved it:

    This means that your provisioning profile is not set to development. You need to create a new provisioning profile for development, which is different than a profile set for distribution. Then, in signing and capabilities, in your app settings on xcode, choose your development profile if you want to install on your device. Don't worry about distributing with your dev profile, you must choose which profile you want to use when pushing to app store (its set to none and you need to switch it).

    Another solution would be choosing automatically manage signing in settings, but that has defaults set when pushing to app store which you might not want.

    0 讨论(0)
  • 2020-12-29 19:05

    I got this issue resolved after a whole day of mental agony.

    For WebDriverAgentRunner package, WebDriverAgentRunner --> Build Settings --> Product Bundle Identifier --> Provide a custom bundle identifier name

    N.B: Copy the bundle identifier name you just provided.

    Move to WebDriverAgentRunner --> Info --> Bundle Identifier --> Provide here the bundle identifier name you just copied

    Follow the same step for the APP package you are trying to push.

    Clean build folder and start building and APP should get pushed without an issue. Tested on Xcode 11.7

    0 讨论(0)
  • 2020-12-29 19:07

    I have the same issue and the problem was that I were using unpaid account and the total number of free development profiles was reached ,so you have to use paid account

    detailes :

    Failure Reason: The maximum number of apps for free development profiles has been reached

    0 讨论(0)
  • 2020-12-29 19:08

    For me, it's due to Dynamic Frameworks which I have added in the application. Initially, I have selected (Embed + Don't Sign) option for the dynamic frameworks.

    Changing it to (Embed & Sign) for such frameworks resolved the issue for me.

    0 讨论(0)
  • 2020-12-29 19:10

    I got this error when running a project that had a library under Embed Frameworks which had Code Sign on Copy unchecked. Check-marking this resolved this issue for me.

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