Xcode 9: Could not attach to pid

前端 未结 22 2162
旧巷少年郎
旧巷少年郎 2020-12-13 05:41

I\'ve been facing an issue (frequently) with the recent major release of the iOS application development tool - Xcode 9-beta.

It\'s showing me the following error fr

相关标签:
22条回答
  • 2020-12-13 06:21

    It's an issue with authorization. Try this in the Terminal:

    sudo DevToolsSecurity -enable

    0 讨论(0)
  • 2020-12-13 06:23

    This worked for me:

    Edit Scheme -> Info -> Executable -> Ask on launch

    Credits to @nastya-gorban's answer here

    Update

    After spending a considerable time with examples on Apple bug report, they basically disregarded the issue as using manual certificates is not "expected".

    Long story short, if you don't have a business account and hence multiple developers on the same account, you should be fine with using the automatic signing and should not see the issue.

    If you do have a business account with multiple users (which I found it breaks automatic signing), this is their suggestion:

    We suggest that you use automatic signing for your debug builds and manual signing for your distribution builds.

    0 讨论(0)
  • 2020-12-13 06:24

    After doing some digging, this worked for me on Xcode 10.3.

    sudo /usr/sbin/DevToolsSecurity -enable

    0 讨论(0)
  • 2020-12-13 06:26

    delete derived data and clean the project, wait until processing is complete, this may take some time. The idea is to give some processing time. Works fine after that

    0 讨论(0)
  • 2020-12-13 06:27

    Killing my simulator and then running it again from Xcode.

    0 讨论(0)
  • 2020-12-13 06:28

    I tried all the answers above. The only thing worked to me is changing the build number.

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