0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CFBundleIdentifierエラーに/React/が入っている時

Last updated at Posted at 2020-05-09

React Native 61系エラー ":CFBundleIdentifier", Does Not Exist

チーム開発にて、このエラーが発生し何日も原因を探していたが解決にいただらず苦戦していました

error Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier ~/Library/Developer/Xcode/DerivedData/app_app-ernaqdxhwinttmgcavvwyvidhssx/Build/Products/Debug-iphonesimulator/React/App.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

原因

ios/<app>.xcodeproj/xcshareddata/xcschemes/<app>.xcscheme

のスキマが変更されるみたいで

         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "YES"
            buildForArchiving = "YES"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "xxxxxxxxxxxxxxxxxx"
               BuildableName = "React"
               BlueprintName = "React"
               ReferencedContainer = "container:Pods/Pods.xcodeproj">
            </BuildableReference>
         </BuildActionEntry>

BuildableName, ReferencedContainer が変更されているみたいなので、ビルドは問題ないが、実行ができなくなるエラーが発生します

解決

BuildableName = "libReact.a"
ReferencedContainer = "container:../node_modules/react-native/React/React.xcodeproj"

に戻せば、実行が問題なく進むみたいです

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?