起きたこと
iPhoneのosをversionあげてたので、xcode9.2でのビルドもできなくなり、xcodeも9.3にバージョンアップした、、
取り急ぎその時開発中のプロジェクト(RN0.52)は問題なかったが他のRN0.48のプロジェクトのビルドが通らなくなった。。
概要の箇所
※ 複数箇所あるので抜粋
RCTLogWarn(@"Native TextInput(%@) is %zd events ahead of JS - try to make your JS faster.", self.text, eventLag);
underlying type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead
回避策
RCTLogWarn(@"Native TextInput(%@) is %ld events ahead of JS - try to make your JS faster.", self.text, (long)eventLag);
エラーに出てるようにlongに直していくとビルドできるようになる。
XCode のquick fix tool (エラーになっている部分の赤い丸ぽちを押す)でも治る
回避策2
もし余裕があればRNのversionあげて回避するのがいいかも。
工数かけられればですが。。
感想
xcodeのバージョンアップ辛い。。