常見問題的編譯錯誤連接集合

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,899評論 0 1
  • 首先如果遇到應用卡頓或者因為內存占用過多時一般使用Instruments里的來進行檢測。但對于復雜情況可能就需要用...
    攻克乃還_閱讀 1,919評論 0 7
  • 1,警告:“xoxoxoxo” is deprecated解決辦法:查看xoxoxoxo的這個方法的文檔,替換掉這...
    layjoy閱讀 4,422評論 0 3
  • 驟雨摧云春盡褪,龍雷驚夢意難書。 風林折秀山河泣,落雁迷途志若初。
    紫風鈴_閱讀 476評論 1 6
  • 前天一個曾經最好的朋友聯系到我,心情突然有些不平靜。雖然有些事已經過去了,彼此已經成長了,成熟了,但是有些事還是無...
    追零呢閱讀 286評論 0 0