每次升级 iOS 版都是虐心的体验。
由于半年没有更新 Xcode,使用旧版 Xcode 编译不给上架了。
SDK Version Issue. This app was built with the iOS 11.4 SDK. All iOS apps submitted to the App Store must be built with the iOS 11 SDK or later, included in Xcode 9 or later. Further, starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later.
而升级到最新的 Xcode 10,需要升级 macOS 到 mojave,
升级完 mojave 之后,花了一个通宵下载了 Xcode10.2,中间 N 次中断,丫的还不支持断点续传。
升级完 Xcode 之后,又告知必须升级到 Swift 4,而新版的 Xcode 10.2 又关闭了 Swift 3->4 的转换功能,也就是说必须先用旧版本的 Xcode 先转换到 Swift 4 ,才能升级 Xcode ...
好吧,Swift 3 -> 4 都改了这些:
(1) func -> @obj func
(2) in sqlitdb.swift, CInt(params!.count) -> params!.count
(3) UIColor(colorLiteralRed: Float(xxx)/Float(xxx),green:0.8,blue:0,alpha:1.0) -> UIColor(red: CGFloat(Float(xxx)/Float(xxx)),green:0.8,blue:0,alpha:1.0)