Xcode fails without specifying and errors

2019-03-24 20:21发布

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 final result code for the complete build operation
Build operation failed without specifying any errors. 
Individual build tasks may have failed for unknown reasons.

I removed my code directory and replaced it with a backup, did a clean, tried building all the other components separately (they succeed) - nothing works. I tried a command line build, same issue.

There were only a few hits on google for this error, none offered any useful advice.

Can anyone please help?

Update: When I run the command line build, I see the following error:

2012-05-25 08:55:53.830 xcodebuild[3358:4203] No recorder, buildTask: <Xcode3BuildTask: 0x400f35e60:'ProcessPCH MyProject-Prefix.pch':REfc(32370056113422336):deps=0:phaseNum=4>

I checked the output of xcodebuild and it is returning '65'.

I thought there might be a problem with the MyProject-Previx.pch file, so I shut off "Precompile Prefix Header", and now I get the same error with a different file:

2012-05-25 09:15:11.784 xcodebuild[3882:3703] No recorder, buildTask: <Xcode3BuildTask: 0x40048ab60:'CompileC HelperRoutines.m':REfc(33777199068741632):deps=0:phaseNum=4>

15条回答
▲ chillily
2楼-- · 2019-03-24 21:05

Same error and following didn't work for me for Xcode 6.3.2 on Mac OS X Yosemite 10.10.3:

  1. Git discarded changes to last successful build point
  2. Creation of new fresh project from scratch from a builtin template (though I cannot recall whether it built successfully or not)
  3. Restart of Xcode
  4. System Reboot

and the following worked:

  1. I faced the problem in the morning and it got resolved in the evening with a couple of Xcode restarts and System reboots and creation of new project. So, I'm not sure what really triggered.
查看更多
虎瘦雄心在
3楼-- · 2019-03-24 21:09

Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. One possible cause is if there are too many (possibly zombie) processes; in this case, rebooting may fix the problem. Some individual build task failures (up to 12) may be listed below.

I've run into this problem consistently recently while running Xcode 9.0 Beta 3 and Xcode 8.3.3.

The fix is to delete ALL in the Derived Data folder. It then seems to work again.

rm -rf ~/Library/Developer/Xcode/DerivedData

NOTE: just cleaning the build or deleting the current build folder for a project does not seem to help.

Hope this helps :)

查看更多
孤傲高冷的网名
4楼-- · 2019-03-24 21:09

did you set "Perform Single-Object Prelink" to Yes? try turn it off.

i had the similar problem. i have tons of files in a static library. reducing the number of files or setting "Perform Single-Object Prelink" to NO solved my problem.

查看更多
登录 后发表回答