新增真机无线调试(鸡肋)
新增comand+2 版本管理
消除警告
注释警告:Documentation Comments
->‘false’ (同xcode8.3)
消除pods的警告(根据实际情况决定是否添加):inhibit_all_warnings!
新增@available()
:
if (@available(iOS 11.0, *)) {
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
}
版本警告,例如:
处理方法:方法后面引入NS_AVAILABLE_IOS+对应版本
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000//__IPHONE_11_0+
- (void) readerSession:(nonnull NFCNDEFReaderSession *)session
didDetectNDEFs:(nonnull NSArray<NFCNDEFMessage *> *)messages NS_AVAILABLE_IOS(11_0) {
}
#endif
报错处理
解决方法:
I solved it by resetting the iOS Simulator from the top bar menu.
Xcode 9.0: Hardware → Erase All Content and Settings...
Pre Xcode 9.0: Simulator → Reset Content and Settings...
refactor
功能更强大,但是Xcode很容易闪退。貌似和输入法有关。
Rename failed in Xcode 9
问题的解决方法:
- Close xCode
- Go to ~/Library/Developer/Xcode/DerivedData and remove folder contents including "ModuleCache".
- Open your project and build
- Try rename functionality now. It should work!
viewController.mm xib拖action加不上
以前没注意这个问题。 后缀可以临时改为.m