Xcode version 4.6.2 (4H1003) compiler error

后端 未结 9 614
萌比男神i
萌比男神i 2020-12-13 11:48

I just updated to Xcode version 4.6.2 (4H10003) and tried to run a previously working application project in the simulator and received the following error and the build fai

相关标签:
9条回答
  • 2020-12-13 12:32

    I've tried all the above and it works fine from Xcode UI, but it was still failing for me when I ran xcodebuild from command line.

    That was due to dependencies to other libraries and their pre-compile headers. When running from command line, looks like xcodebuild store/reads pre-compiled headers from here:

    /var/folders/v0/ztxy9kls7sv05dpmvjgg_xwr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders
    

    After cleaning up that folder, xcodebuild succeeded.

    0 讨论(0)
  • 2020-12-13 12:33

    use "command+shift+k" to clean your project, then you'll be fine.

    0 讨论(0)
  • 2020-12-13 12:35

    From XCode 4.6.2 Release Notes

    Known Issues

    Building

    When building a product previously built with Xcode 4.6.1 or earlier, the build fails with an error similar to this one:

    PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28))

    To address this issue, choose Product > Clean before building your product. 13663167

    Performing Product > Clean works

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