CocoaPods / pod-template

An opinionated template for creating a Pod.
Other
398 stars 404 forks source link

cannot load such file -- xcodeproj (LoadError) #222

Closed liao0322 closed 6 years ago

liao0322 commented 6 years ago

Cloning https://github.com/CocoaPods/pod-template.git into XFTestLib. Configuring XFTestLib template. Traceback (most recent call last): 6: from ./configure:4:in <main>' 5: from ./configure:4:ineach' 4: from ./configure:5:in block in <main>' 3: from ./configure:5:inrequire_relative' 2: from /Users/liaoxf/Desktop/FengLeiModularizationLib/Bases/XFTestLib/setup/ProjectManipulator.rb:1:in <top (required)>' 1: from /usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:inrequire' /usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- xcodeproj (LoadError)

To learn more about the template see https://github.com/CocoaPods/pod-template.git. To learn more about creating a new pod, see http://guides.cocoapods.org/making/making-a-cocoapod.

jugutier commented 6 years ago

Hi! try "gem install xcodeproj" and if that doesn't work you might need to use --user-install or rbenv/rbm

jugutier commented 6 years ago

Closing this issue. @liao0322 Please reopen if it continues to show after updating xcodeproj to version 1.5.9

rogerluan commented 3 years ago

If you'd rather use bundler instead of installing the gem to your system, add xcodeproj to your Gemfile and add require 'bundler/setup' before requiring xcodeproj, i.e.:

require 'bundler/setup' # Required so that the gem below loads from bundler, not system's gems.
require 'xcodeproj'
UbaidillahGit commented 1 year ago

sudo gem install xcodeproj works for me

alikperislam commented 1 year ago

sudo gem install xcodeproj works for me. Thank u bro thank u