1,警告:“xoxoxoxo”? is deprecated
解決辦法:查看xoxoxoxo的這個(gè)方法的文檔傍衡,替換掉這個(gè)方法即可深员。
2,警告:Declaration of "struct sockaddr" will not be visible outside of this function
解決辦法:在你的開(kāi)源.m文件中添加 #import
3蛙埂,警告:Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'
解決辦法:類(lèi)型不匹配倦畅。跳到出錯(cuò)的那一行,UIInterfaceOrientation強(qiáng)制轉(zhuǎn)換為UIDeviceOrientation就行了绣的。
4叠赐,警告:incompatible pointer types assigning to 'MyArrayList*'from 'NSMutableArray'
解決辦法:加入強(qiáng)制轉(zhuǎn)換(MyArrayList*)
5欲账,警告:'&&' within '||'
問(wèn)題出處:
if (exists && !isDirectory || !exists)………
解決辦法: if ((exists && !isDirectory) || !exists)………
6,警告:Warning:The Copy Bundle Resources build phase contains this target's Info.plist file
解決辦法:將Info.plist文件移到Resources目錄下芭概,而不要直接放在target下赛不。
7,警告:在使用ASIHttp…第三方庫(kù)的罢洲,運(yùn)行報(bào)錯(cuò)俄删。
解決辦法:看你的項(xiàng)目中是否添加CFNetwork.framework、SystemConfiguration.framework, MobileCoreServices.framework,
CoreGraphics.framework和libz.1.2.3.dylib奏路,如果是sdk5.0以上畴椰,改添加libz.1.2.5.dylib
8,警告:xxxooo鸽粉,missing?required?architecture?i386?in?file
解決辦法:如果是錯(cuò)誤信息的話:Target->Build Settings->Search Paths, 刪除FrameworkSearch Paths 里面內(nèi)容就可以了斜脂。
要只是一個(gè)警告的話,真機(jī)調(diào)試可以過(guò)触机。具體解決方法待大神出現(xiàn)帚戳。
9,警告:
clang: error: no such file or directory: '/demo2/控件代碼/13/Recorder/Recorder_Prefix.pch'
clang: error: no input files
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
解決辦法: 在你的主工程文件 target搜素儡首,pch 片任,找到Prefix Header??? 把它后面的值,都刪除蔬胯,再運(yùn)行就解決了对供。
10,警告:“ARC forbids synthesizing a property of an Objective-C object with unspecified ownership or storage attribute
解決辦法:如果定義了ARC有效氛濒,那么必須要有所有者屬性的定義;所以代碼改成下面這樣
@property?(nonatomic,?strong,?readonly)?NSString?*ss;
11产场,警告:io6一下的xib系統(tǒng)均沒(méi)有自動(dòng)選擇Use Autolayout, Supporting iOS 5 and below with xib of iOS 6
解決辦法:Just un-select “Use Autolayout” in the file inspector of the xib’s view and we are back to the familiar autosizing in size inspector and boom, it supports iOS 5 and below.
12舞竿,警告:Warning: Multiple build commands for output file xxx.png
解決辦法:找到項(xiàng)目里xxx.png重復(fù)京景,刪除重復(fù)的資源。