简体   繁体   中英

Apple LLVM Compiler 4.2 Error exit code 1

This has been asked a lot of times, but I can't find a solution for my problem. This is the error i get:

clang: error: no input files Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Screenshot:

在此处输入图片说明

I hope someone can help me. I am using the Parse SDK. (see: parse.com)

You should check your build settings and verify the file name and path in GCC_PREFIX_HEADER

Apple LLVM compiler 4.2 - language Prefix Header

This is mine. Just an example

GCC_PREFIX_HEADER = DC Wire Sizer/SupportingFiles/DC Wire Sizer-Prefix.pch

FYI: If you select the Prefix Header build setting in Xcode and copy you get the line above but when you set the value you shouldn't include 'GCC_PREFIX_HEADER = '

This is incorrect:

在此处输入图片说明

在此处输入图片说明

This is the correct setting:

在此处输入图片说明在此处输入图片说明

Note: The values are different then above because they are from a different project.

that .pch file should be created when you create your project, must of accidently deleted it somehow, just create a new file with that name and put this in it:

#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif

may need to be slightly different but should get your project working again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM