run-ios is failing on newly generated project
See original GitHub issueI decided to use react-native for my next app since I’ve heard a lot of good feedback about it.
So, I followed the installation process (I’m using Mac which is running El Capitan version 10.11.5) and it was installed properly. Then I created a new project and tried to run it for iOS:
> react-native init sample_program
> cd sample_program
> react-native run-ios
The last command gives me a lot of output, trying to compile the code that was generated by the init command, it starts the react packager, it opens up the iOS simulator but at the end it gives me the following error:
CompileC /Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o Views/RCTTabBarItem.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/antousias/Development/Apps/sample_program/node_modules/react-native/React
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/antousias/.rvm/gems/ruby-2.3.0/bin:/Users/antousias/.rvm/gems/ruby-2.3.0@global/bin:/Users/antousias/.rvm/rubies/ruby-2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/apache-maven-3.3.3/bin:/Users/antousias/Tools/activator/activator-dist-1.3.10/bin:/Users/antousias/Tools/chrome-driver:/Users/antousias/Development/Aimia/offers-tools/tools:/Applications/android-sdk-macosx/platform-tools:/Applications/android-sdk-macosx/tools:/Users/antousias/Downloads/libimobiledevice-macosx-master/:/Users/antousias/.rvm/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/antousias/Development/Apps/sample_program/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/antousias/Development/Apps/sample_program/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/antousias/Development/Apps/sample_program/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/antousias/Development/Apps/sample_program/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/antousias/Development/Apps/sample_program/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/antousias/Development/Apps/sample_program/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/antousias/Development/Apps/sample_program/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.d --serialize-diagnostics /Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.dia -c /Users/antousias/Development/Apps/sample_program/node_modules/react-native/React/Views/RCTTabBarItem.m -o /Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o
/Users/antousias/Development/Apps/sample_program/node_modules/react-native/React/Views/RCTTabBarItem.m:111:41: warning: undeclared selector 'badgeColor' [-Wundeclared-selector]
if ([self.barItem respondsToSelector:@selector(badgeColor)]) {
^
/Users/antousias/Development/Apps/sample_program/node_modules/react-native/React/Views/RCTTabBarItem.m:112:18: error: property 'badgeColor' not found on object of type 'UITabBarItem *'
self.barItem.badgeColor = badgeColor;
^
1 warning and 1 error generated.
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze /Users/antousias/Development/Apps/sample_program/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/antousias/Development/Apps/sample_program/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
The following build commands failed:
CompileC /Users/antousias/Development/Apps/sample_program/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o Views/RCTTabBarItem.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/sample_program.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/sample_program.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Here are the versions of relevant software I have installed in my system:
OSX: El Capitan version 10.11.5
XCode: 7.3.1
react-native-cli: 2.0.1
react-native: 0.45.1
Does anyone have any clue on why the run-ios
is failing?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Rubio Urges Biden to Request $725 Million for Everglades ...
Washington, D.C. — U.S. Senator Marco Rubio (R-FL) urged President Joe Biden to include $725 million for Everglades restoration efforts in ...
Read more >Rubio maintains lead against Demings in new poll - POLITICO
New poll out — There's been a flurry of newly-released polls, including one about the U.S. Senate race in Florida where Sen. Marco...
Read more >Marco Rubio's Career Bedeviled by Financial Struggles
— For years, Senator Marco Rubio struggled under the weight of student debt, mortgages and an extra loan against the value of his...
Read more >Marco Rubio's dark-money legacy: The failed 2016 candidate ...
New reporting shows how groups aligned with Marco Rubio skirted campaign finance laws and empowered rich donors.
Read more >New Orleans considers affordable housing requirements for ...
New Orleans City Council members on Tuesday (Aug. 7) advanced what could become Mayor LaToya Cantrell's first major piece of housing legislation, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’ll need Xcode 8 at the very least. Please install Xcode 8.3.3 and try again.
Been stuck on the same issue for the past few days, really killing progress. Is there a fix for this?