常见问题的编译错误连接集合

1: error: 运行程序出现file too small (length=0)

ld: file too small (length=0) file '/Users/Allister/Library/Developer/Xcode/DerivedData/Haze_Meter-dkjjcmjehyitmcbhkcbujnsrhwpu/Build/Intermediates/Haze Meter.build/Debug-iphonesimulator/Haze Meter.build/Objects-normal/x86_64/ViewController.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法

1.选择xcode菜单的Product下的Clean,或者组合键是Cmd+Shift+K,清除一遍
2.重新编译

相关链接 
http://stackoverflow.com/questions/14034048/xcode-linker-error-file-too-small-for-architecture-x86-64
2.
ld: library not found for -lSocialEmail
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法

常见问题的编译错误连接集合_第1张图片
1.png

参考 : http://stackoverflow.com/questions/24050012/error-library-not-found-for

3: WARNING ITMS-90703:
WARNING ITMS-90703: "Deprecated Xcode Build. Due to resolved app archives issues, we will soon be deprecating Xcode 8.3, at which time app archives built with 8.3 will no longer be accepted by the App Store. Download the most recent update of Xcode, rebuild your app and resubmit."

下载最新版本的xcode. 苹果是一言堂的公司。 失望!

4: swiftc failed with exit code 1

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

你可能感兴趣的:(常见问题的编译错误连接集合)