I try to pass from CRNA to React-Native application with native code. When i build with react-native run-ios, the build failed and i don't know what to do!
** BUILD FAILED **
The following build commands failed:
CompileC /Users/Karl/Documents/Applications/MyItems51Work/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/raw_logging.o /Users/Karl/Documents/Applications/MyItems51Work/node_modules/react-native/third-party/glog-0.3.4/src/raw_logging.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/MyItems.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/MyItems.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Linking issues is usually misleading, and not easy to debug:
this question has very good practices to avoid these kind of issues.
Related
Unable to install the app in simulator by running the 'react-native run-ios' after upgrading to 0.61.5
Getting the following 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
error Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier DerivedData/Build/Products/Debug-iphonesimulator/App.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
. Run CLI with --verbose flag for more details.
Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier DerivedData/Build/Products/Debug-iphonesimulator/App.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
at checkExecSyncError (child_process.js:574:11)
at Object.execFileSync (child_process.js:592:13)
at runOnSimulator (node_modules/#react-native-community/cli-platform-ios/build/commands/runIOS/index.js:183:45)
at <anonymous>
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)
I am setting up React-Native in my laptop. The versions I am using for different tools are as follows:
Node.js : v10.7.0
react-native-cli: 2.0.1
react-native: 0.56.0
On running the command "react-native run-ios" I am getting an error like:
The following build commands failed:
CompileC /Users/mshikher/Documents/react-native-workspace/firstProject/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/firstProject.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/firstProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I have tried a lot of answers in the StackOverflow but nothing has worked till now. What could possibly be the issue behind this.
The recent error I am getting is:
The following build commands failed:
CompileC /Users/mshikher/Documents/react-native-workspace/secondProject/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/secondProject.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/secondProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I installed xcode 9.2 which is compatible with macOS 10.12.6. This worked for me.
** 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.
react-native-cli: 1.0.0
react-native: 0.39.2
I cloned a react native project. Then I ran npm install and then react-native run-ios. The project fails with the below error.
Please not the project runs fine in xcode.
Any thoughts?
The following commands produced analyzer issues:
Analyze RCTLocationObserver.m
(1 command with analyzer issues)
The following build commands failed:
CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/Objects-normal/x86_64/RCTLinkingManager.o RCTLinkingManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTGeolocation.build/Debug-iphonesimulator/RCTGeolocation.build/Objects-normal/x86_64/RCTLocationObserver.o RCTLocationObserver.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTText.build/Debug-iphonesimulator/RCTText.build/Objects-normal/x86_64/RCTTextManager.o RCTTextManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(3 failures)
Installing build/Build/Products/Debug-iphonesimulator/Safetypin.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/Safetypin.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
So, I had the same problem Jordan. react-native run-ios creates the Products & Intermediates folder in the ./ios/build folder, but the issue is the valid path is pointing to ./ios/build/Build. What I've been doing is I manually create the Build/ folder inside ./ios/build by issuing the command below:
cd ./ios/build
mkdir Build
cd Build
then, I symlink the folders:
ln -s ../Products .
ln -s ../Intermediates .
You should be able to get react-native run-ios to work again.