新增真机无线调试(鸡肋)

新增comand+2 版本管理

消除警告

注释警告:Documentation Comments ->‘false’ (同xcode8.3)

消除pods的警告(根据实际情况决定是否添加):inhibit_all_warnings!

新增@available():

if (@available(iOS 11.0, *)) {
        self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    } else {
        // Fallback on earlier versions
 }

版本警告,例如: 201712124614error.png

处理方法:方法后面引入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

报错处理

201710133322755RUF.png

解决方法:

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问题的解决方法:

  1. Close xCode
  2. Go to ~/Library/Developer/Xcode/DerivedData and remove folder contents including “ModuleCache”.
  3. Open your project and build
  4. Try rename functionality now. It should work!

viewController.mm xib拖action加不上

以前没注意这个问题。 后缀可以临时改为.m