Xcode fails without specifying and errors

前端 未结 22 1750
栀梦
栀梦 2021-02-12 13:27

All of a sudden my project fails to build in Xcode. If I look at the log I see all the needed dependencies being built, and then I get a strange error:

Verify fi         


        
22条回答
  •  一向
    一向 (楼主)
    2021-02-12 13:55

    With Xcode 5.0.0, this error was caused after an update to the CLI tools.

    Updating to Xcode 5.0.1 and installing all the required components again still didn't fix the error. However, 5.0.1 was kind enough to actually emit an error that was useful.

    /bin/mkdir -p /Users/xxx/Documents/XCode/SampleApp/bin/SampleAppDebug.app/Contents

    error: (null)

    This lead me to look at the bin folder, and find out that the 5.0.0 build with broken CLI tools had made a symlink in bin/ to the derived information folder with SampleAppDebug.app, which for some reason it could not write to.

    I manually removed all contents of the bin/ folder and rebuilt without errors.

提交回复
热议问题