I try to execure react-native run-ios, but here is what I get :
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze RNFIRMessaging.m
(1 command with analyzer issues)
The following build commands failed:
CompileC /Volumes/3/Github/PROJECT/DevSummit/app/ios/build/Build/Intermediates.noindex/RNFIRMessaging.build/Debug-iphonesimulator/RNFIRMessaging.build/Objects-normal/x86_64/RNFIRMessaging.o RNFIRMessaging.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/app.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/app.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
How to tackle this error?
Deleting ios/build directory and re-running react-native run-ios
I was able to find a solution to this by running react-native upgrade.
Related
While I'm trying to run the react-native ios application with command react-native run-ios. The Build goes failed and showing me error following:-
ld: warning: directory not found for option
'-L/Users/User/Documents/react-test-app/ios/build/Build/Products/Debug-iphonesimulator/React'
ld: library not found for -lRNSVG clang: error: linker command failed
with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Build/Products/Debug-iphonesimulator/react-test-app.app/react-test-app
normal x86_64 (1 failure)
Installing
build/Build/Products/Debug-iphonesimulator/react-test-app.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/oldapollo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist.
Please Help Me Out To resolve this problem.
Thank you in advance
Open Melkana.xcworkspace instead of Melkana.xcodeproj in Xcode
Try the solutions here.
https://github.com/facebook/react-native/issues/7308
Possible ones may work
Update React using react-native upgrade
or
Run from the project by opening from your project.xcworkspace
I'm very new in react native mobile app development and having problem to run my app on ios simulator and iphone 7.
environment:
OS:10.12.6
xcode:8.3.3
react-native-cli: 2.0.1
react-native: 0.49.5
I did try multiple approaches from internet search but nothing is worked.
Any help will be appreciated. Thanks.
BUILD FAILED
The following build commands failed:
CompileC
/Users/fngo/dermo/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/raw_logging.o
/Users/fngo/dermo/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
CompileC
/Users/fngo/dermo/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/symbolize.o
/Users/fngo/dermo/node_modules/react-native/third-party/glog-0.3.4/src/symbolize.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Installing build/Build/Products/Debug-iphonesimulator/dermo.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/dermo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I am getting following errors while creating first React Native project (AwesomeProject). I have run this project on Android and it is working as expected. Please find the attached snapshots and guide me what is going wrong with IOS.
I was using Xcode 8 when getting errors I also updated my Xcode to 9.0 and Node etc.. but nothing got worked and all errors are same as I am getting since from start.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/clines291/RNProjects/AwesomeProject/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o/Users/clines291/RNProjects/AwesomeProject/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Conv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/clines291/RNProjects/AwesomeProject/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/StringBase.o /Users/clines291/RNProjects/AwesomeProject/node_modules/react-native/third-party/folly-2016.09.26.00/folly/StringBase.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.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/AwesomeProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Attachments:
Visual Code build failed error
Xcode build failed errors
Versions:
Xcode: 9.0
Node: v8.6.0
Homebrew: 1.3.5
Watchman: 4.9.0
react-native-cli: 2.0.1
react-native: 0.49.3
npm: 5.3.0
have you tried using xcode 8 rather than xcode 9?
or if you still want to use xcode 9
try this
rm -r ~/.rncache/
cd node_modules/react-native/third-party/glog-0.3.4/
./configure --host arm-apple-darwin
I found this solution on below mentioned link:
https://github.com/facebook/react-native/issues/14368
react-native init [PROJECT_NAME] --version 0.44.0
This is C compiler problem
open xcode, select Build Settings > Build options,
then enable c compiler works me.
I'm newer to react-native.I am using https://facebook.github.io/react-native/docs/getting-started.html this link to configure react-native for mobile development and trying to run the ios project with command react-native run-ios but i'm unable to run the project.
I have already saw many links about my problem and tried many solutions like
link1
link2
React Native Build Commands Failed: PhaseScriptExecution ... (domain=NSPOSIXErrorDomain, code=2)
An application bundle was not found at the provided path... ":CFBundleIdentifier", Does Not Exist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
The logs are
** BUILD FAILED **
The following build commands failed:
CompileC /Users/macbook/feed/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o /Users/macbook/feed/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Conv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/macbook/feed/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/StringBase.o /Users/macbook/feed/node_modules/react-native/third-party/folly-2016.09.26.00/folly/StringBase.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Installing build/Build/Products/Debug-iphonesimulator/feed.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/feed.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I have reinstall node but always problem in ios react > thirdparty > glog files of ios project.it is also not running in xcode and give error in glog.logging.h file not found.
Mac os version 10.12
Xcode version 8.3.3
react-native version 0.47.1
npm version
{ npm: '5.3.0',
ares: '1.10.1-DEV',
cldr: '30.0.3',
http_parser: '2.7.0',
icu: '58.2',
modules: '57',
node: '8.2.1',
openssl: '1.0.2l',
tz: '2016j',
unicode: '9.0',
uv: '1.13.1',
v8: '5.8.283.41',
zlib: '1.2.11' }
/Users/tnex-mac6/Desktop/React Native Projects/ReactDemoNavigation/node_modules/react-native/React/Base/RCTUtils.m:255:6: note: 'RCTExecuteOnMainThread' has been explicitly marked deprecated here
void RCTExecuteOnMainThread(dispatch_block_t block, BOOL sync)
^
** BUILD FAILED **
The following build commands failed:
CompileC /Users/tnex-mac6/Desktop/React\ Native\ Projects/ReactDemoNavigation/ios/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTPlatform.o Base/RCTPlatform.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/ReactDemoNavigation.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/ReactDemoNavigation.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Before you try an upgrade, the error states that the CFBundleIdentifier doesn't exist, did you sanity check that?
to upgrade your version of react-native do the following:
Open your terminal, go to your react-native project folder and do a
react-native upgrade.
Most of the times this solves the problem.