Xcode編繹出錯問題解決歸類
-
Choose a destination with a supported architecture in order to run on this device.
解決:
Target -> Build Settings -> Build Options set the "Compiler for C/C++/Objective-C" - 選擇"Default compiler (Apple LLVM 5.0)"
2.clang: error: invalid deployment target for -stdlib
解決:
3.ios使用AdMob出錯-[GADObjectPrivate changeState:]: unrecognized selector sent
解決:在Build Settings 中的Other Linker Flags中加入-ObjC
4.'Undefined symbols for architecture i386:
_OBJC_CLASS_$_Reachability", referenced from objc-class-ref inViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)'
解決:問題原因:我xcode版本為4.5.1,在引入Reachability時候,4.5.1預設沒有勾選targert,所以導致上述錯誤。
5.ios6.0 storyboard編繹出錯:'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate
解決:storyboard or XIB tonot use Autolayout
6.使用SDWebImage 第三方庫出錯
Undefined symbols for architecture i386: "_OBJC_CLASS_$_MKAnnotationView", referenced from: l_OBJC_$_CATEGORY_MKAnnotationView_$_WebCache in MKAnnotationView+WebCache.o "_CGImageSourceCreateIncremental", referenced from: -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o "_CGImageSourceUpdateData", referenced from: -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o "_CGImageSourceCopyPropertiesAtIndex", referenced from: -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o "_CGImageSourceCreateImageAtIndex", referenced from: -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o "_kCGImagePropertyPixelHeight", referenced from: -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o "_kCGImagePropertyPixelWidth", referenced from: -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
解決:加入 MapKit 和 ImageIO
7.錯誤提示:* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '* -[NSCFArray insertObject:atIndex:]: mutating method sent to immutable object'
問題出現在語句:
[saveArray addObject:[NSNumber numberWithInt:saveNum]];
可變的方法傳送給一個不可變的物件
ps:@property(nonatomic,retain) NSMutableArray * saveArray;
前面已經賦值:
NSMutableArray *array = [[NSMutableArray alloc] init];
self.saveArray = array;
[array release];
解決方法:
NSMutableArray *mutaArray = [[NSMutableArray alloc] init];
[mutaArray addObjectsFromArray:saveArray];
[mutaArray addObject:[NSNumber numberWithInt:saveNum]];
self.saveArray = mutaArray
[mutaArray release];
build 出現Dependency Analysis Error,Product.app出錯,解決方法
Unable to run command ‘Cpresource Product.app' - this target might include its own product.
解決方法:
TARGETS - Build Phases-Copy Bundle Resources-把Product.app刪掉
相關文章
- iOS FFmpeg XCode編譯報錯問題 AVMediaTypeiOSXCode編譯
- Xcode斷點除錯出現的問題XCode斷點除錯
- 解決python中文編碼錯誤問題Python
- 關於Xcode10中libstdc報錯問題的解決XCode
- Xcode更新後Pod init出錯的解決方案XCode
- cmake編譯問題解決編譯
- Xcode 10.1 新特性及解決的問題XCode
- 用javac編譯servlet類出現問題Java編譯Servlet
- 解決:JPEGImageEncoder編譯問題編譯
- 編譯EJB出現錯誤的解決編譯
- 微信支付錯誤兩個問題的解決:curl出錯,錯誤碼:60
- 解決 Inkscape 報錯 Duplicate 問題
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- 解決帝國CMS安裝出錯和常見問題
- xcode 編譯opencv ios容易出現的錯誤XCode編譯OpenCViOS
- 解決 requests 庫 URL 編碼問題
- 解決 apache tomcat 編碼問題ApacheTomcat
- maven的編碼問題、解決和疑問Maven
- 【火爐煉AI】機器學習009-用邏輯迴歸分類器解決多分類問題AI機器學習邏輯迴歸
- Xcode8除錯黑科技:Memory Graph實戰解決閉包引用迴圈問題XCode除錯
- 解決 ngrok 的 Domain 錯誤問題AI
- 解決「問題」,不要解決問題
- Xcode匯出App一般問題及其解決方法(開發者協議變更及Bundle Id過期問題)XCodeAPP協議
- 解決NLTK包下載出錯問題及NLP環境測試
- 手動刪除了歸檔日誌後,rman備份出現問題解決
- iOS Xcode, 解決“Could not insert new outlet connection”的問題。iOSXCode
- NetBeans 6 M8 釋出 解決檔案編碼問題Bean
- 資料探勘主要解決四類問題
- 徹底解決Python編碼問題Python
- oracle 10g 解壓程式碼sqlplus出錯問題解決方法Oracle 10gSQL
- cat 輸出亂碼問題解決
- Laravel 安裝 voyager 出現的資料庫報錯問題解決Laravel資料庫
- 工程make時出現"時鐘錯誤的問題"的解決方案
- 解決eslint空格報錯等問題EsLint
- 解決WiFi問題找它準沒錯WiFi
- 設定autotrace的報錯問題解決
- 解決cookies儲存中文報錯問題Cookie
- 安裝vue/cli報錯問題解決Vue