Xcode 4 Preview 4 displays “Build Succeeded” but with errors

后端 未结 4 1692
天命终不由人
天命终不由人 2020-12-31 19:51

Xcode 4 Preview 4 displays \"Build Succeeded\", as show the image below there are 5 erros. Actually there are more than 5 errors, but it seems that Xcode doesn\'t build anym

4条回答
  •  感动是毒
    2020-12-31 20:36

    I just got this error today and want to explain what I did in case anyone else encounters it.

    Xcode would display errors but the build would be successful and run in Simulator. I created a new project from scratch and the same thing happened. I'd insert random lines like "saedrw34" and it would highlight it with the red exclamation point. But the code would still build and run.

    Check the autosave settings: Xcode-->Preferences-->General: Auto-save --> Set to Always.

    I remembered that prior to my problems I had changed it to "Never." I didn't realize Xcode, when you hit Run, compiles the latest saved version on your hard drive, not the current version you see on the screen. So basically, it was building a different version than the one with errors.

    May be different from your situation but thought I'd just pass it along..

提交回复
热议问题