pod install giving errors on Jenkins - ios

While running pod install from the system on which jenkins is installed it is running fine but when we run the same command from jenkins it is giving following error. I have checked by adding and removing different pods to check if it is error with the particular pod but it is giving the same error.
```
CocoaPods : 1.0.0
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
RubyGems : 2.0.14.1
Host : Mac OS X 10.11.4 (15E65)
Xcode : 7.3 (7D175)
Git : git version 2.6.4 (Apple Git-63)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git # 96d7af9b448bfdb55e1319fac100e08341bb8fab
```
### Plugins
```
cocoapods-deintegrate : 1.0.0
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.0.0
cocoapods-try : 1.0.0
```
### Podfile
```ruby
platform :ios, '7.0'
use_frameworks!
target “MobileShippingApp” do
pod 'Fabric'
pod 'Crashlytics'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
end
end
end
```
### Error
```
NameError - undefined local variable or method `executable' for Pod::Executable:Module
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/executable.rb:111:in `block in which!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/executable.rb:110:in `tap'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/executable.rb:110:in `which!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/executable.rb:133:in `capture_command'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/sources_manager.rb:101:in `git'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-1.0.0/lib/cocoapods-core/source.rb:45:in `block in url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-1.0.0/lib/cocoapods-core/source.rb:44:in `chdir'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-1.0.0/lib/cocoapods-core/source.rb:44:in `url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-1.0.0/lib/cocoapods-core/source/manager.rb:347:in `block in source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-1.0.0/lib/cocoapods-core/source/manager.rb:346:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-1.0.0/lib/cocoapods-core/source/manager.rb:346:in `find'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-1.0.0/lib/cocoapods-core/source/manager.rb:346:in `source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/sources_manager.rb:17:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/installer/analyzer.rb:654:in `block in sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/installer/analyzer.rb:653:in `map'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/installer/analyzer.rb:653:in `sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/installer.rb:144:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/installer.rb:114:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/command/install.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
```

I came across the same issue, but not through Jenkins though.
I presume that the OS of your system with Jenkins setup is El Capitan.
What I did was, I uninstalled the cocoa pods and installed the latest version of Ruby.
First, I installed Homebrew.
Homebrew comes with a very simple install script. When it asks you to install XCode CommandLine Tools, say yes.
Open Terminal and run the following command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After that I installed Ruby 2.3.1 using rbenv
brew install rbenv ruby-build
rbenv install 2.3.1
rbenv global 2.3.1ruby -v
After Installing latest version of Ruby, I followed the following steps to install the CocoaPods
sudo gem install -n /usr/local/bin cocoapods
After gem was successfully installed
$ export PATH=$PATH:/Library/Ruby/bin
You can check this issue for more details
https://github.com/CocoaPods/CocoaPods/issues/3692

Related

Flutter Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2

When i try to build Flutter project to IOS it show me this error, I have tried to clean and also tried to change the directory of the project.
Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Running pod install... CocoaPods' output: ↳
[!] Invalid `Podfile` file: [!] Specifying multiple `post_install` hooks is unsupported..
# from /Users/eapple/Downloads/codecanyon-IRJuYEQd-delivery-boy-for-multirestaurants-flutter-app/flutter_application/ios/Podfile:43
# -------------------------------------------
#
> post_install do |installer|
# installer.pods_project.targets.each do |target|
# -------------------------------------------
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:301:in `rescue in block in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:295:in `block in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:50:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:293:in `new'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:293:in `from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:259:in `from_file'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/config.rb:200:in `podfile'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:150:in `verify_podfile_exists!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command/install.rb:46:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error output from CocoaPods: ↳
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
Error running pod install
Error launching application on iPhone 12 Pro Max.
Here is the pubspec.yaml file
cupertino_icons: 0.1.2
google_maps_flutter: 0.5.27
mvc_pattern: 5.1.1
global_configuration: 1.5.0
http: 0.12.1
html: 0.14.0+3
shared_preferences: 0.5.7
flutter_html: 0.11.1
location: 3.0.2
url_launcher: 5.4.5
firebase_messaging: 6.0.13
cached_network_image: 2.2.0
fluttertoast: 4.0.1
Things I have tried, from common sense and various other Stack questions:
flutter clean
Adding this to ios/Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
flutter pub get
installing gem install ffi --version 1.13.1 --user-install
I suggest try running gem pristine ffi --version 1.12.2 as mentioned in the logs and see if it works. This issue seems to be similar to this existing Stack Overflow post.
On the Flutter official site when installing flutter they tell you to run this command if you're using apple sillicon.
https://docs.flutter.dev/get-started/install/macos
$ sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc
You could also delete your ios/Podfile and ios/Podfile.lock
then run
flutter clean && flutter pub get && flutter run
just remember to connect your device or run it on the simulator open.
if your computer is using M1 or M2 processors then I suggest you try the following:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install

Cocoapods error: cannot load such file -- macho

I have an error when I try to install pod. I try to uninstall completely cocoapods and install it again but it doesn't work. I have no idea how to fix it I tried to install macho but it doesn't help.
It looks ok until Generating Pods project then it crashes
pod version 1.5.3
pod install
Analyzing dependencies
Downloading dependencies
Using Adjust (4.8.5)
Using Crashlytics (3.10.7)
Using Fabric (1.7.11)
Using Google-Mobile-Ads-SDK (7.33.1)
Using GoogleAds-IMA-iOS-SDK (3.7.3)
Generating Pods project
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/Users/s/.rvm/gems/ruby-2.2.4/bin/pod install
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 1.5.3
Ruby : ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15]
RubyGems : 2.6.10
Host : Mac OS X 10.14 (18A391)
Xcode : 9.4.1 (9F2000)
Git : git version 2.16.2
Ruby lib dir : /Users/s/.rvm/rubies/ruby-2.2.4/lib
Repositories : master - https://github.com/CocoaPods/Specs.git # 799ce6567dfe5da62ecdc3a7ba975737c7926347
```
### Plugins
```
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.1
cocoapods-try : 1.1.0
```
### Podfile
```ruby
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '9.0'
project 'BunteMobile.xcodeproj'
target 'BunteMobile' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for BunteMobile
pod 'Adjust', '~> 4.8.3'
pod 'Google-Mobile-Ads-SDK'
pod 'GoogleAds-IMA-iOS-SDK', '~> 3.7'
pod 'Fabric', '~> 1.7.0'
pod 'Crashlytics', '~> 3.9'
target 'BunteMobileTests' do
inherit! :search_paths
# Pods for testing
end
end
```
### Error
```
LoadError - cannot load such file -- macho
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:432:in `rescue in dynamic_binary?'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:427:in `dynamic_binary?'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:164:in `block in vendored_dynamic_frameworks'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:163:in `select'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:163:in `vendored_dynamic_frameworks'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:172:in `vendored_static_frameworks'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:238:in `vendored_static_artifacts'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:56:in `block in generate'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:56:in `any?'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:56:in `generate'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:39:in `save_as'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb:112:in `update_changed_file'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:96:in `block in create_xcconfig_file'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `each'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `create_xcconfig_file'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:18:in `block in install!'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:142:in `message'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:14:in `install!'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:181:in `block (2 levels) in install_libraries'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `each'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `block in install_libraries'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:142:in `message'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:167:in `install_libraries'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:65:in `generate!'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:184:in `block in generate_pods_project'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:183:in `generate_pods_project'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:119:in `install!'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/Users/s/.rvm/gems/ruby-2.2.4#global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Users/s/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/Users/s/.rvm/gems/ruby-2.2.4/bin/pod:22:in `load'
/Users/s/.rvm/gems/ruby-2.2.4/bin/pod:22:in `<main>'
/Users/s/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:24:in `eval'
/Users/s/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:24:in `<main>'
```
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+macho&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
- LoadError - cannot load such file -- macho
https://github.com/CocoaPods/CocoaPods/issues/7849 [closed] [7 comments]
16 hours ago
- LoadError - cannot load such file -- macho
https://github.com/CocoaPods/CocoaPods/issues/7867 [closed] [17 comments]
5 weeks ago
- LoadError - cannot load such file -- macho
https://github.com/CocoaPods/CocoaPods/issues/7864 [closed] [2 comments]
21 Jun 2018
and 5 more at:
https://github.com/cocoapods/cocoapods/search?q=cannot%20load%20such%20file%20--%20macho&type=Issues&utf8=✓

ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod in Xcode 8 swift 3

I am working with Cocoa pods. While I am installing the cocoaPods I am getting the problem like the
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
I tried so many commands which are mentioned in some time. I tried to update and also tried to install ruby even though It is getting error.
Can anyone please help me to solve this issue. What is the mistake I am doing.
The error is coming like this
CG-iMac-Dev:siriSample imfuser$ pod install
Analyzing dependencies
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/local/bin/pod install
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 1.2.0.beta.3
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
RubyGems : 2.6.8
Host : Mac OS X 10.12 (16A323)
Xcode : 8.1 (8B62)
Git : git version 2.9.3 (Apple Git-75)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git # a45ce117b1ea0dce36ed2a3e4d7d0b7f9db588a8
```
### Plugins
```
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.1.2
cocoapods-try : 1.1.0
```
### Podfile
```ruby
platform :ios, '8.0'
use_frameworks!
target 'siriSample' do
pod 'Alamofire', '~> 2.0.2'
end
```
### Error
```
LoadError - cannot load such file -- nanaimo
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/plist.rb:23:in `read_from_path'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:200:in `initialize_from_file'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:102:in `open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer/analyzer.rb:851:in `block (2 levels) in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer/analyzer.rb:850:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer/analyzer.rb:850:in `block in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer/analyzer.rb:845:in `inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer/analyzer.rb:66:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer.rb:236:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer.rb:150:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer.rb:149:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/installer.rb:110:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/command/install.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0.beta.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
```
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+nanaimo&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
- LoadError - cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6214 [open] [19 comments]
14 hours ago
- help! cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6312 [closed] [5 comments]
13 minutes ago
- LoadError - cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6281 [closed] [2 comments]
3 weeks ago
This is a security feature in your system.
Try in a different path.
This worked for me to get rid of the problem. (in your terminal)
sudo gem install -n /usr/local/bin cocoapods --pre
Try doing it with root permissions like sudo might help.

Pod file is not creating in my Project?

I am new to iOS. Now I am trying to work with CocoaPods. But for me Pod file is not creating in my project. When I type the following line like
"cd /Users/xxx/xxx/ProjectName"
It is coming like
"Macname:ProjectName imfuser$"
after this When I wirte "Pod init"
It is not creating Pod file.
Error I am Getting is Like this :
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/local/bin/pod init
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 1.1.1
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
RubyGems : 2.0.14.1
Host : Mac OS X 10.12 (16A323)
Xcode : 8.1 (8B62)
Git : git version 2.9.3 (Apple Git-75)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git # 15a4461d3cead785c7dbce58908e4a38c8d3a9e0
```
### Plugins
```
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.1.1
cocoapods-try : 1.1.0
```
### Podfile
```ruby
```
### Error
```
LoadError - cannot load such file -- nanaimo
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/plist.rb:23:in `read_from_path'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:200:in `initialize_from_file'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:102:in `open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command/init.rb:41:in `validate!'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:333:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
```
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+nanaimo&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
- LoadError - cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6214 [open] [18 comments]
5 hours ago
- help! cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6312 [closed] [4 comments]
a week ago
- LoadError - cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6281 [closed] [2 comments]
3 weeks ago
and 5 more at:
https://github.com/cocoapods/cocoapods/search?q=cannot%20load%20such%20file%20--%20nanaimo&type=Issues&utf8=✓
Can anyone please tell me what mistake I have done.
Thanks in Advance.
I have got the same error :
Error
LoadError - cannot load such file -- nanaimo
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/plist.rb:23:in
`read_from_path'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:200:in
`initialize_from_file'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:102:in
`open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/analyzer.rb:851:in
`block (2 levels) in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/analyzer.rb:850:in
`each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/analyzer.rb:850:in
`block in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/user_interface.rb:64:in
`section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/analyzer.rb:845:in
`inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/analyzer.rb:66:in
`analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:236:in
`analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:150:in
`block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/user_interface.rb:64:in
`section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:149:in
`resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:110:in
`install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/command/install.rb:37:in
`run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:334:in
`run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:52:in
`run' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/bin/pod:55:in
`<top (required)>' /usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
To solve this issue,firstly uninstall all version of nanaimo
sudo gem uninstall nanaimo
Install (or reinstall) cocoapods
sudo gem install cocoapods
After this, you can install your pods
pod install
I had the same problem from having two versions of nanaimo installed. Try removing the oldest:
gem list | grep nanaimo
sudo gem uninstall nanaimo (then pick the version you want to remove)
Install cocoa pod by this way. Write below code in terminal.
sudo gem install -n /usr/local/bin cocoapods
Before this also remove old version of nanaimo
sudo gem uninstall nanaimo

EEXIST - File exists workspace/Pods

This is occurring When I am trying to build the application through Jenkins.
I have wiped out the current workspace in Jenkins and build the application and its throwing the following error
[workspace] $ touch Pods rm -r -f Pods pod repo update
[workspace] $ pod install
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
[0m
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/bin/pod install
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 0.37.2
Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
RubyGems : 2.5.2
Host : Mac OS X 10.10.3 (14D136)
Xcode : 6.3.2 (6D2105)
Git : git version 2.3.2 (Apple Git-55)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git # efe0250cfcdd610a45cdd5691bd3c6bcb38669be
```
### Plugins
```
cocoapods-plugins : 0.4.2
cocoapods-trunk : 0.6.1
cocoapods-try : 0.4.5
```
### Podfile
```ruby
platform :ios, '7.0'
pod 'AFNetworking', '1.3.2'
pod 'FMDB', '~> 2.3'
```
### Error
```
Errno::EEXIST - File exists - /Users/jenkins/.jenkins/jobs/App-iOS-Trunk/workspace/Pods
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `fu_mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:219:in `block (2 levels) in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `reverse_each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `block in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in `mkdir_p'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/lib/cocoapods/sandbox.rb:58:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/lib/cocoapods/config.rb:202:in `new'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/lib/cocoapods/config.rb:202:in `sandbox'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/lib/cocoapods/command/project.rb:69:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/lib/cocoapods/command/project.rb:101:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.8.2/lib/claide/command.rb:312:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/lib/cocoapods/command.rb:46:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/bin/pod:44:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
```
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=File+exists+-+%2FUsers%2Fjenkins%2F.jenkins%2Fjobs%2FeLearner-Native-iOS-Trunk%2Fworkspace%2FPods&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Build step 'Update CocoaPods' marked build as failure
Finished: FAILURE
For other applications for which current workspace is not not wiped are build gets successful. But when I wipe out the current workspace Its displaying the above Error.
Adding export LANG=en_US.UTF-8 in an "Execute shell" script before invoking pod fixed this on my Jenkins box. Also consider using -d to check the directory.
# Cocoapods
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
if [ -d Pods ]; then
rm -rf Pods
fi
pod repo update
pod install
# ...

Resources