在舊工程用XCode7打開后,會出現(xiàn)很多警告洽沟。類似于.pcm:no such file for requested architechture以故。
解決方法是,將Debug Information Format的Debug改成DWARF裆操,瞬間世界清凈了怒详。
在XCode7中新建工程炉媒,默認就是DWARF。
另附上解決xcode其他警告的方法:
1昆烁、directory not found for option -L..path
在Build Settings---》Framework Search Path吊骤,Library Search Path中刪除找不到的路徑即可。
2静尼、unexpected file type 'wrapper.plug-in' in frameworks & libraries build phase
在General->Linked Frameworks and Libraries中白粉,是因為在framework and library中添加了其他不是lib的文件,如bundle鼠渺,刪除即可鸭巴。
3、no rule to process file系冗。奕扣。。
在compile?source里刪掉多余的文件.
4掌敬、undeclared selector警告
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wundeclared-selector"
nativeTwitterAccountPresent =
#pragma clang diagnostic pop
5惯豆、Category is implementing a method which will also be implemented by its primary class
當category重寫類已有的方法時會出現(xiàn)此警告。
#pragma clang diagnostic push
#pragma?clang?diagnostic?ignored?"-Wobjc-protocol-method-implementation”
#pragma?clang?diagnostic?pop