Reputation: 2330
I'm running into an issue with Xcode 6 where Xcode can't find the path to my Prefix header file. I've followed other posts online and can't seem to resolve such a simple issue. I didn't have a prefix header in my project so I created one calling it MyProject-Prefix.pch. I added this file into my project structure
I then go into project -> build settings -> APPLE LLVM 6.0 Language -> Prefix header.
I set the value for Prefix Header to:
$(SRCROOT)/MyProject-prefix.pch
However when I clean and build the project I get an error:
clang: error: no such file or directory: '/Users/me/my-ios-app/MyProject/MyProject-prefix.pch' clang: error: no input files
Can anyone help me configure this properly or point out what I'm missing?
Upvotes: 0
Views: 1249
Reputation: 6795
Xcode searches prefix header file from the folder where the xcodeproj
or xcworkspace
file is located, so you should specify it just
MyProject-prefix.pch
Upvotes: 3