Apple LLVM Compiler 3.1 error clang

前端 未结 9 2139
长发绾君心
长发绾君心 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:45

    I got similar error. Following steps fixed my problem, not sure if this is going to work for you, but worth a shot:

    Issue: Compiler unable to locate [myapp]-Prefix.pch file. This is because Location of Prefix Header file [myapp]-Prefix.pch in Project Target is incorrect.

    The location is defined in Project Target/Build setting. You will need to go to: Project Target -> Build Settings Tab -> Scroll down and Look for "Apple LLVM Compiler 3.1 - Language" Underneath this node -> You will find the key/value setting for Prefix Header file.

    Normally Prefix header file is located under "Supporting File" Folder in your project

    Please note, I am using Xcode 4.3.2 so if you are using a version other than this you might have to look around a bit for this setting.

    Happy Coding!

提交回复
热议问题