IOS-----Troubleshooting Prefix Header Errors

Source: Internet
Author: User

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:


  1. Make new file:? cmd+n
  2. Ios/mac > Other > PCH File > Yourproject-prefix.pch.
  3. Project > Build Settings > Search: "Prefix Header".
  4. Under "Apple LLVM 6.0" You'll get the Prefix Header key
  5. Type in: "Yourprojectname/yourproject-prefix.pch"
  6. Clean project:? cmd+?shift+k
  7. 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:

    1. Precompile Prefix header is yes, pre-compiled PCH files are cached to improve compilation speed
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.