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

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)
QQ20170214-160644@2x.png

解决方法

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • ios 常见问题解决 一,libxml/HTMLparser.h file not find 第一种方法: 点击左...
    rlqs阅读 3,905评论 0 1
  • 首先如果遇到应用卡顿或者因为内存占用过多时一般使用Instruments里的来进行检测。但对于复杂情况可能就需要用...
    攻克乃还_阅读 1,962评论 0 7
  • 1,警告:“xoxoxoxo” is deprecated解决办法:查看xoxoxoxo的这个方法的文档,替换掉这...
    layjoy阅读 4,441评论 0 3
  • 骤雨摧云春尽褪,龙雷惊梦意难书。 风林折秀山河泣,落雁迷途志若初。
    紫风铃_阅读 477评论 1 6
  • 前天一个曾经最好的朋友联系到我,心情突然有些不平静。虽然有些事已经过去了,彼此已经成长了,成熟了,但是有些事还是无...
    追零呢阅读 302评论 0 0