Failed to Build JSON (1.6.3) with Native Extension After I Installed Xcode 4.2

Failed to build json (1.6.3) with native extension after I installed Xcode 4.2

The makefile references /usr/bin/gcc-4.2 … I solved this by creating a symlink to the correct executable:

sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2

Error occurring during bundle update

Try to install libv8 (gem install libv8), then installing therubyracer. You will need to have Apple XCode installed first (install from the App Store) as this includes the c compiler that you will need to build libv8.

EDIT: Once you have installed XCode, if you are using the latest version you will need to manually install the "command line tools" to get the c compiler, you can find this in XCode --> preferences --> downloads --> install command line tools.
Hope this helps you....

brew install apple-gcc42

gem install libv8

gem install therubyracer

react-native init project warnings and errors

I was able to build and run my project following the instructions here.

More specifically:

# Clean cache
rm -rf $TMPDIR/react-*; rm -rf $TMPDIR/haste-*; rm -rf $TMPDIR/metro-*; watchman watch-del-all

# Open a new tab and Start Metro Bundler directly from the project folder
react-native start --reset-cache

# Now run `react-native run-android` or `react-native run-ios`

It works, but starting like that, this makes me afraid to build a project using react native.

Unable to find a specification in CocoaPods

Instead of:

s.source       = { :git => "git@github.com:myrepo/Podspecs.git", :branch => "xyz" }

Write this:
Don't forget the tag...

s.source       = { :git => "https://github.com/myrepo/Podspecs.git", :branch => "xyz",
:tag => s.version.to_s }


Related Topics



Leave a reply



Submit