React Native iOS -- CFBundleIdentifier", Does Not Exist - react-native

** BUILD FAILED **
Installing build/Build/Products/Debug-iphonesimulator/TestApp.app
Hello Team,
I have found issue when running my "TestingApp" in React Native via terminal. I have seen a lot of answer regarding my question but not found any solution which are given by some person.
Error:
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
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/TestApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Please provide valid answer if any one has its solution. I am beginner in React Native. Your right ans appreciate me.
Thanks,

Try to close the Metro Bundler and then write
npm start -- --reset-cache
If doesn't work, try to open the emulator from Xcode and re-run your react-native project.

Related

We ran “xcodebuild” command but it exited with error code 65

I am facing below issue while compiling new react native project. How to resolve this issue? Already followed below commands to resolve but not solved.
updated react native
updated npm
reset react-native cache
reset npm cache
all possible commands tried at my side.
try to run react-native run-ios --verbose, that gives you an approach of what is happening, in my case, I had this error:
the project named 'foo' does not contain a scheme named 'bar'
so I had to deal with the name and the scheme following this steps:
https://stackoverflow.com/a/35500038/1715471
Hope that helps...

React Native: How do I completely remove Instabug?

I recently removed Instabug from my React Native 0.53.3 project, but when I run react-native run-ios I get a build failure:
ld: framework not found Instabug
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/danale/Library/Developer/Xcode/DerivedData/build/Build/Products/Debug-iphonesimulator/NFIBEngage.app/NFIBEngage normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/NFIBEngage.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
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/NFIBEngage.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
How can I completely remove Instabug from my project so it's not looking for it on iOS build?
So far I have completely removed it from App.js file, but it's still being referenced in build.gradle, MainActivity.java, MainApplication.java, settings.gradle, project.pbxproj and yarn.lock file. I don't even use yarn by the way.
How do I completely clean this up?
If react-native unlink instabug-reactnative didn't work try removing all react-native link changes manually.
You may refer these pages to remove all references
Instabug rn link checklist
Instabug Documentation
Clean the project once every reference is removed.(Deleting Xcode derived data may be needed sometimes)

error: bundling failed: ReferenceError: Module not registered in graph

i am a newbe in react native
i don't know what is going on with my apps
the node said "error: bundling failed: ReferenceError: Module not registered in graph"
please helpenter image description here
This error usually occurs when you install a new module (while packager is open).
Firstly you can try close your packager and run react-native run-ios. If this approach does not help, you can try delete node modules directory and npm install again. But i believe first approach will work.

ReactNative fails to deploy build to iOS simulator but does deploy it to Android emulator

ReactNative fails to deploy build to iOS simulator but does deploy it to Android emulator
Attached are screenshots showing this on both.
Steps:
Created react native app
react-native init proto
Run app on Android emulator after I started emulator
react-native run-android
this is running fine on Android emulator
Run app on iOS simmulator
react-native run-ios
This produces error as per screenshot
Error
** BUILD FAILED **
The following build commands failed:
CompileC /Users/dinob/reactnativework/proto/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/proto.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
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/proto.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Versions
MacBookPro OSX El Capitain
react-native 0.55.3
react-native-cli 2.0.1
npm 5.5.1
node v8.9.1
watchman 4.9.0
Please have a look here for help with troubleshooting
I would suggest you try all the solutions described in that thread to try and fix this issue. Good Luck!

Unable to run shoutem v5 code using react-native run-ios

After doing a "shoutem pull-app", I tried running the react native code on my simulator using "react-native run-ios". I am getting this error:
Installing build/Build/Products/Debug-iphonesimulator/ShoutemApp.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
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier
build/Build/Products/Debug-iphonesimulator/ShoutemApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
The shoutem pull-app command is used to get all the code in the same place. If you want to change an extension, go to extension directory (e.g. shoutem-news) inside of extensions directory and push it as your own extension. Now you can see the changes locally by doing shoutem run, shoutem run-ios or shoutem run-android.
It's on our roadmap to support doing react-native run-ios / react-native run-android from the downloaded repository.