以下の内容はhttps://www.aruse.net/entry/2020/07/26/101943より取得しました。


React NativeのiOSで「warning: no rule to process file ...」が出てビルドが失敗する

React Nativeのプロジェクトで、iPhone シミュレーターを実行しようとしたところ、以下のエラーで iOS のビルドが失敗しました。

warning: no rule to process file '/Users/xxx/Projects/ReactNativeRealm/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')

warning: no rule to process file '/Users/xxx/Projects/ReactNativeRealm/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')

warning: no rule to process file '/Users/xxx/Projects/ReactNativeRealm/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')

どうも、Flipper-RSocket に Xcode でビルド対象でないファイルが含まれているのが原因のようです。

対処は以下のようになります。

Xcode で ios¥Pods¥Pods.xcodeproj を開きます。

Xcode の左ペインで Pods を選択し、TARGETS の Flipper-RSocket を選択します。

Build Phases タブの Compile Souce の中から、該当ファイルを選択し、メニューの Edit > Delete でファイルを削除します。

f:id:fnyablog:20200726101728p:plain:w640

これでビルドが通るようになりました!

・参考サイト

ken-plus.blogspot.com




以上の内容はhttps://www.aruse.net/entry/2020/07/26/101943より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14