標籤:from running vertica board nts next enter position 檔案
-來自收藏總結 綜合了好多的常見錯誤
1:clang failed with exit code 254
一:檢測代碼中 是否 有 NSLog 列印了 返回 void 的值.
2:Verify exit code of build task with internal identifier ‘CopyPNGFile 123.png‘
一:將出錯的png,用PhotoShop又一次轉換一次, 假設PhotoShop打不開,改尾碼為Jpg 試試. 轉換時,請使用 :儲存為Web或裝置所使用的格式格式轉換成 PNG-24這種圖片大小比較合適
3:
一:確定靜態庫中是否有自己定義的類檔案,假設一個也沒有,就會出現這樣的錯誤,這也是為什麼建立的靜態庫都包括一個預設的類.
4: _OBJC_CLASS_$_UIMainKpiXML", referenced from:
1:檢測類檔案是否已經指定了Project Target
2:檢測類檔案是否在Bulid Phases 中的 Compile Source 是否包括了這個類檔案
以上兩步都檢查完畢以後,假設編譯還報錯誤,請嘗試徹底關閉XCode 再次編譯試試.
5: for architecture armv7s
下面摘自: http://stackoverflow.com/questions/12570116/what-is-the-difference-between-arm7-and-arm7s
Yes you are right about armv7s is about the iPhone 5. Here some summary info I found on the web:
- ARMv6 ISA (used by the ARM11 core in the iPhone 2G and iPhone 3G)
- ARMv7 (used by modern ARM cores, iPhone 3GS, iPhone 4 and 4S)
- ARMv7s (new A6 SoC for iPhone 5).
注:錯誤含義表示 指定的framework 不支援對 armv7s 的支援, 也就不支援搭載A6處理器的iPhone 5.
假設在編譯framework或者靜態庫的project中依然編譯時間,可能是下面設定導致,設定為NO就可以
6: Local declaration of ‘‘ hides instance variable
1:私人變數與屬性變數同名所致
7:Instance variable ‘‘ accessed in class method
1:在靜態方法不能使用到類的屬性變數,否則就報上面的錯誤
8:ld: symbol(s) not found for architecture i386
1:裡面意思說:"_stroyboard" 這個屬性在目標類中 根本就沒聲明!
那就聲明一下咯?
注:XCode4.5 會預設聲明了,可是僅僅是針對自己定義類,系統類別還沒有. 所以,小心
- @synthesize storyboard;
9:PerformSelector may cause a leak because its selector is unknown
通過例如以下代碼解決產生的編譯器警告
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Warc-performSelector-leaks"
- [self performSelector:nextView];
- #pragma clang diagnostic pop
來源:(http://www.ooso.net/archives/620)
10:unable to open executable
1:檢測同一個靜態庫或project中是否有兩個或以上的想同類檔案存在
2:刪除模擬器中的應用,刪除DerivedData目錄 又一次啟動XCode.
11: Property‘s synthesized getter follows Cocoa naming convention for returning ‘owned‘ objects
不要在標頭檔聲明變數命名是以new copy開頭
參考:http://kongbei888.blog.163.com/blog/static/24326613201261902510652/
12:ld: file not found:
1:指向的靜態庫沒有找到
14: _utf8_countTrailBytes
add library libicucore.dylib
15:Stray "@" in program
project使用的編譯器版本號碼過低所致. 改動編譯器版本號碼至最新版本號碼,例如以:
參考:http://stackoverflow.com/questions/12821938/stray-in-program-with-nsdictionary-definition
16.解決真機調試iPad Air裝置時的錯誤:architecture not supported的辦法1.將Build Settings 中Architectures ——> Valid Architectures的arm64刪掉。僅僅留armv7、armv7s
2.同上。將Architectures ——>Architectures改為 $(ARHS_STANDARD)armv7。armv7s
3.把Build Active Architecture Only 改為NO
4.編譯就可以
17.編譯時間出現:Not supported ARM architecture
解決的方法:在./configure 時增加 -D__ARM_ARCH_5TEJ__
另外一篇:Android常見錯誤分析
18.Couldn‘t register xxx.xx.xx with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.
每一個在xcode下用ios模擬器做開發的開發人員都應該會遇到過上面所看到的的錯誤。眼下找到最行之有效解決的方法是重新啟動手機。
不行了也順便把電腦重新啟動下。
建議以後記得stop即可了 不要正執行著就直接卸載了程式
本文一直更新希望大家踴躍回複自己知道的常見error 來參與本文的更新^_^
IOS常見錯誤分析解決(一直更新) 你值得收藏-綜合貼