Problem:
When I try to build and deploy in XCode 9.3, I get the following error related to: "kernel_require.rb:55:in `require': cannot load such file -- xcodeproj (LoadError)"
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Development/ELD.iOS/ELD/Scripts/generate_resources.rb:4:in `' Command /bin/sh failed with exit code 1
Possible solutions to try:
There are several possible ways to address this issue. Two are listed here to try.
- Install XCode command line tools from Apple
- Install the gem "xcodeproj"
To install XCode command line tools...
- Go to https://developer.apple.com/download/more/ and login
- Search for the command line tools for your version of XCode, download it, then install it.
To instead install the gem "xcodeproj"...
- Open a Terminal window
- Use the command: sudo gem install xcodeproj
Notes:
This how-to was tested to work for a project on macOS High Sierra 10.13.4 and XCode 9.3. Your results may vary. It assumes a little working knowledge of XCode and Terminal.
Best of luck!
No comments:
Post a Comment