ueno-llc / react-native-starter

Professional react-native starter kit with everything you'll ever need to deploy rock solid apps
https://ueno-llc.github.io/react-native-starter
MIT License
574 stars 90 forks source link

react-native run-ios not working #182

Closed scopsy closed 6 years ago

scopsy commented 6 years ago
[Ueno RNS] Building environment config
[Ueno RNS] Using .env
Reading env from .env
Wrote to /Users/dmitrigrossman/projects/my-new-app/ios/build/Build/Products/GeneratedInfoPlistDotEnv.h
/Users/dmitrigrossman/projects/my-new-app
Copied GeneratedInfoPlistDotEnv.h and GeneratedDotEnv.m to ./node_modules/react-native-config/ios
[Ueno RNS] Generating ./src/config.env.js
[Ueno RNS] Config built successfully

** BUILD FAILED **

The following build commands failed:
    PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock build/Build/Intermediates.noindex/MyNewApp.build/Debug-iphonesimulator/MyNewApp.build/Script-DE29A3C61EA94606C7B30F25.sh

(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/MyNewApp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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

After installing all according to the docs I'm getting the following error when trying to run react-native run-ios.

Dependencies:

react-native-cli: 2.0.1 react-native: 0.56.0

birkir commented 6 years ago

Looks like you are on the development branch.

Did the rename script complete successfully, looks like Info.plist is either corrupt or non-existent.

You can try reporting some of your findings from this thread: https://github.com/facebook/react-native/issues/12737

osk commented 6 years ago

@scopsy, I had the same error when I was picking up react native after some time. My fix was to update xcode to latest version.

Perhaps you also need to update cocoapods:

pod install --repo-update
# or if that fails for some reason like it did for me
pod repo remove master
pod setup
pod install # inside ios dir
birkir commented 6 years ago

Please re-open the issue if you are still encountering errors.