Skip to main content

既存アプリのiOS16とXcode14対応

毎年恒例ですがiOS16対応しました
以下、やったこと


・Alamofire
responseJSONがdeprecatedになるので、responseDataに変更する
https://stackoverflow.com/questions/70789753/update-responsejson-to-responsedecodable-in-swift

・Google Mobile Ads SDK
以下でSPM対応にしたとのこと
https://github.com/googleads/swift-package-manager-google-mobile-ads
issue
https://github.com/googleads/googleads-mobile-unity/issues/1125

・プレビューボタン
左下に配置された
https://ios-docs.dev/xcode14-ios16/#i-6

 

・エラー対応1
“UI unresponsiveness” warning on @main
これ無視するしかなさそう
https://developer.apple.com/forums/thread/712074

・エラー対応2
‘weak’ must not be applied to non-class-bound ‘Self’; consider adding a protocol conformance that has a class bound
protocolはweakにできないらしい
https://qiita.com/yimajo/items/892bd2fe1ccb808ffe49

・エラー対応3
protocolで宣言されたらinitにはrequiredが必要
https://qiita.com/tajihiro/items/fdbf83209b8eaa0e791b

・エラー対応4
required’ initializer ‘init(coder:)’ must be provided by subclass of ‘UITableViewCell
requireをつけて該当のinitを作る
StoryBoardで作る
https://program-life.com/177

 

・リジェクト
Guideline 2.1 – Information Needed
ATTのリクエストがiOS15から動かなくなった模様
(なんで15のとき通って16でrejectされたんだろうって気持ちにはなる)
applicationDidBecomeActiveに移動させる必要がある
https://dev.classmethod.jp/articles/ios15-att-request-authorization/

関連記事:

Pocket