Apple LLVM Compiler 3.1 error clang

前端 未结 9 2128
长发绾君心
长发绾君心 2020-12-08 05:19

I\'m trying to make an archive (ipa) for my iOS (iPhone) app but I\'m receiving a strange error:

Apple LLVM Compiler 3.1 error clang: error: no such file or          


        
相关标签:
9条回答
  • 2020-12-08 05:28

    I got similar error, it seems there have many solutions to fix it, maybe.

    Project Setting -> Building Setting -> Apple LLVM compile 3.1 - Launguage -> Objective-C Automatic Reference Counting. The default value is YES, modify it to NO.

    My Xcode version is 4.3.2.

    Hope this could help you and all the reader.

    0 讨论(0)
  • 2020-12-08 05:29

    I had this issue with an unchanged project which had built fine before. The issue turned out to be the RAM Disk that I was using for XCode intermediate files being full!

    XCode was reporting this and other issues which were solved by deleting older intermediate files.

    0 讨论(0)
  • 2020-12-08 05:32

    I got the same error for LLVM Compiler 4.1 and it says that it could not found the file(s). I clean the project and open the Build Phases from Targets/Target section and remove all irrelevent files then rebuild the project and it worked.

    0 讨论(0)
  • 2020-12-08 05:33

    I had this same issue and none of the above answers were working for me.

    I discovered that if I opened a project from the command line, i.e. open test.xcodeproj/, even a brand new project from a template would fail to compile with the error above.

    However, if I opened Xcode first and chose the project from the splash screen, everything worked just fine.

    Leaving this here in case anyone else is stuck banging their head against the wall.

    0 讨论(0)
  • 2020-12-08 05:37

    Also in build configuration you can change "Compiler for C/C++/Objective-C" to Default Compiler (Apple LLVM compiler 3.1)

    0 讨论(0)
  • 2020-12-08 05:44

    I had this problem

    You are using this compiler flags in your build Phases --> Compile Sources

    File.m  -fno-objc-arc armv6
    

    Replace it to:

    File.m  -fno-objc-arc
    
    0 讨论(0)
提交回复
热议问题