LoginSignup
0
0

More than 5 years have passed since last update.

XCode 9.3 (9E145) で、古いversionのreact-nativeプロジェクトのビルドが失敗する

Posted at

起きたこと

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のバージョンアップ辛い。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0