We sometimes encounter the following error when using Prefix Header to precompile files
Clang:error:no such file or directory: '/users/linus/dropbox/apps/my app/projekt/my app/slidemenu/ Slidemenu-prefix.pch '
Clang:error:no input Files
Command/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang failed with Exit code 254
I searched the Internet, found the solution in StackOverflow, the solution is as follows:
- Make new file:? cmd+n
- Ios/mac > Other > PCH File > Yourproject-prefix.pch.
- Project > Build Settings > Search: "Prefix Header".
- Under "Apple LLVM 6.0" You'll get the Prefix Header key
- Type in: "Yourprojectname/yourproject-prefix.pch"
- Clean project:? cmd+?shift+k
- Build project:? cmd+b
|
Add the path of the PCH file you just created directly to the precompile header option in building setting by modifying the project configuration file, and note that the debug and release two columns are added:
Attention:
- Precompile Prefix header is yes, pre-compiled PCH files are cached to improve compilation speed
Modify the PCH file path in the following format: Add the path to the precompile header option in building setting "$ (srcroot)/project name/PCH filename" (For example: $ (srcroot)/Custom numeric keypad/ Custom numeric keypad-prefix.pch)
If you have a better solution, hope everyone to share, learn together!
IOS-----Troubleshooting Prefix Header Errors