Signingの設定
Targets > アプリ名選択 > Signing & Capabilities
- Automatically manage signingのチェックを外す
- Bundle IdentifierをApple Developer Programサイトで登録した任意の名前に変更
- Provisioning Profile > Import fileにてApple Developer ProgramサイトからDLしたものを適用
Bundle React Native code and imagesのスクリプトを書き換え
Targets > アプリ名選択 > Build Phases
自分の初期設定はなぜだか
export NODE_BINARY=node
native../node_modules/react-/scripts/react-native-xcode.sh
のように登録されていました。nativeという文字の場所が不正な場所にある。
これを以下のように変更します。
nodeのパスがなぜだか解決されていなかったので、
which コマンドで調べたパスを使って
$ which node
/Users/masa/.nodebrew/current/bin/node
export NODE_BINARY=/Users/masa/.nodebrew/current/bin/node
../node_modules/react-native/scripts/react-native-xcode.sh
に書き換えて完了。