Swift Sdtlib tool error: Task failed with exit code 1

前端 未结 7 1069
闹比i
闹比i 2020-12-08 14:32

So randomly after several hours of work this morning on my app, Xcode just stopped letting me test my app on my iPhone. But I can still test it in the simulator.

Now

相关标签:
7条回答
  • 2020-12-08 15:10

    First make sure your certificates haven't expired and then follow the steps listed by king foot:

    Move the iOS developer certificate from local to system using Key Chain:

    1. Close Xcode.
    2. Open Key Chain.
    3. Find the iOS Developer cert in Local.
    4. Drag and drop the cert from Local to the System tab.
    5. Enter admin password when prompted.
    6. Start Xcode and build project for your device.
    0 讨论(0)
  • 2020-12-08 15:19

    What I did to solve it was:

    1. Quit Xcode

    2. Open Keychain Access

    3. Go to Login tab

    4. Drag your certificate into System tab

    5. Reopen Xcode

    6. Run your app

    0 讨论(0)
  • 2020-12-08 15:23

    Six years ago I added the agvtool to a build script to auto-increment the build numbers in the project. For some reason, this week that started causing every single build to fail with the above, seemingly cryptic errors. Removing the script from my Build Phase allows my app to build again. The offending script: "xcrun agvtool next-version -all" Perhaps the latest update of Xcode is very particular about the project file being changed in the middle of a build?

    0 讨论(0)
  • 2020-12-08 15:24

    Ok so I solved this, don't know if it's the right way or not.

    Moved my iOS developer certificate from local to system using Key Chain.

    Steps:

    1. Close Xcode.
    2. Open Key Chain.
    3. Find the iOS Developer cert in Local.
    4. Drag and drop the cert from Local to the System tab.
    5. Enter admin password when prompted.
    6. Start Xcode and build project for your device.
    0 讨论(0)
  • 2020-12-08 15:26

    In my case, it was solved by

    1. Close Xcode.
    2. Clean Derived data.
    3. Open Xcode.
    4. Clean Product.
    5. Run your app.
    0 讨论(0)
  • 2020-12-08 15:28

    I had the same problem - I resolved it by restarting my MacBook several times.

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