Skip to content

Issues while installing the Gem #6

@Aathavan

Description

@Aathavan

Hi Guys,

Ive been using Appium to automate mobile recently, and wanted to try out your pom gem. I am following your steps and while installing the bundle i get the following error


"]$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.1)
Using i18n (0.6.9)
Using multi_json (1.8.4)
Using activesupport (3.2.17)
Using builder (3.2.2)
Using colored (1.2)
Using diff-lcs (1.2.5)
Using gherkin (2.12.2)
Using multi_test (0.0.3)
Using cucumber (1.3.10)
Using faker (1.2.0)
Using yml_reader (0.2)
Using data_magic (0.17)
Using dnssd (2.0)
Using json (1.8.1)
Using plist (3.1.0)
Using rspec-core (2.14.7)
Using rspec-expectations (2.14.5)
Using rspec-mocks (2.14.5)
Using rspec (2.14.1)
Using rack (1.5.2)
Using rack-protection (1.5.2)
Using tilt (1.4.1)
Using sinatra (1.4.4)
Using sim_launcher (0.4.6)
Using thor (0.18.1)
Installing xcodeproj (0.14.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" -rubygems /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/usr/local/rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.14.1/ext RUBYLIBDIR=/usr/local/rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.14.1/ext

/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for -std=c99 option to compiler... yes
checking for CoreFoundation... no
checking for main() in -lCoreFoundation... no
CoreFoundation is needed to build the Xcodeproj C extension.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-CoreFoundationlib
--without-CoreFoundationlib
rake aborted!
Command failed with status (1): [/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/...]
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.14.1/ext/xcodeproj/Rakefile:37:in `block in <top (required)>'
Tasks: TOP => default => ext
(See full trace by running task with --trace)

Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.14.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.14.1/ext/xcodeproj/gem_make.out

An error occurred while installing xcodeproj (0.14.1), and Bundler cannot continue.
Make sure that gem install xcodeproj -v '0.14.1' succeeds before bundling."


It seems to be something associated with Xcode (i have xcode 5.02). Googling around, I noticed that this might be fixed by installing the xcode command line tools. Doesn't seem to help though.(xcode cmt doesn't install in the vm, only in osx) Is it possible for you guys to take a look? Thanks!

my current setup :
my tests are in my local vm ruby/rspec
I use Appium to automate an iOS app.
when the test script is run , appium starts up the ios emulator and runs the test on the app.

PS : btw the dnssd gem also threw an error, due to a missing header.
I fixed that by installing an avahi lib
sudo yum install avahi-compat-libdns_sd-devel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions