I had an existing project and decided to built it on ios for the first time. I have configured every package,did pod install etc. Here comes the problem In xCode the build succeeds,but the app won't start on the emulator. Running react-native run-ios throws me this error:
▸ Build Succeeded
info Installing "/Users/bojke/Library/Developer/Xcode/DerivedData/MyApp-ehofomooqvepclgblnmnmzitfpao/Build/Products/Debug-iphonesimulator/React/MyApp.app"
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
error Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier /Users/bojke/Library/Developer/Xcode/DerivedData/Zakazi-ehofomooqvepclgblnmnmzitfpao/Build/Products/Debug-iphonesimulator/React/Zakazi.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I know there is a bunch of issues with the same error, but nothing helped. I tried: - deleting build folder and cd ios && pod install - changing the Derived paths in file>preferences>advanced - react-native start --reset-cache - react-native upgrade - killing all processes on port 8081
What I have noticed that noone had the extra /React/ in the path!
If I delete the /React/ and run the failed commmand it returns the Bundle Indentifier
System:
OS: macOS 10.15.3
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Memory: 142.41 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.8.0 - /usr/local/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.13.7 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
react-native-cli: 2.0.1