LoginSignup
0
1

More than 3 years have passed since last update.

iosのシミュレータ立ち上げの際にエラー発生[CFBundleIdentifier", Does Not Exist](ReactNative)

Last updated at Posted at 2019-09-02

環境

hogehoge.xcodeprojをメインで使用していると仮定します。

エラー内容

iosのシミュレータを立ち上げた際に、下記のようなエラーが発生しました。

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

当初このエラー内容で調べてStackOverFlow等のサイトを探りました。
Print: Entry, “:CFBundleIdentifier”, Does Not Exist

しかし、解決の糸口は見えず、、、

.xcodeprojファイルが2つ混在していた

そこで、エラー内容をもう少し遡ってみてみると下記の表示が見つかりました。

error: Build input file cannot be found: '/Users/hoge/kikutan-mobile/ios/ReactNativePlatform/Info.plist'

冒頭の環境でお伝えしたように、本来であればhogehoge.xcodeprojを参照しなければいけないところが、下記2つのファイルが混在していることでエラーが発生していることが判明しました。

ios/hogehoge.xcodeproj
ios/ReactNativePlatform.xcodeproj

解決策

不要な.xcodeprojを削除し(この場合ReactNativePlatform.xcodeproj)、シミュレータを再始動させると、うまくいきました。

0
1
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
1