Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pod update" fails on MacBook Pro m1 max, zsh #11078

Closed
erik-utr opened this issue Dec 1, 2021 · 2 comments
Closed

"pod update" fails on MacBook Pro m1 max, zsh #11078

erik-utr opened this issue Dec 1, 2021 · 2 comments

Comments

@erik-utr
Copy link

erik-utr commented Dec 1, 2021

Report

What did you do?

run pod update

What did you expect to happen?

update (note: pod install works fine)

What happened instead?

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.4%2Flib%2Fffi_c.bundle%2C+0x0009%29%3A+tried%3A+%27%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.4%2Flib%2Fffi_c.bundle%27+%28mach-o+file%2C+but+is+an+incompatible+architecture+%28have+%27arm64%27%2C+need+%27x86_64%27%29%29%2C+%27%2Fusr%2Flib%2Fffi_c.bundle%27+%28no+such+file%29+-+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.4%2Flib%2Fffi_c.bundle&type=Issues

CocoaPods Environment

Stack

   CocoaPods : 1.11.2
        Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]
    RubyGems : 3.2.30
        Host : macOS 12.0.1 (21A559)
       Xcode : 13.1 (13A1030d)
         Git : git version 2.30.1 (Apple Git-130)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '14.7'

# ignore all warnings from all pods
inhibit_all_warnings!

target 'utrplay' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for utrplay
  pod 'Firebase/Crashlytics'
  pod 'Firebase/Analytics'
  pod 'JTAppleCalendar'
  pod 'iCarousel', '~> 1.8'
  pod 'FBSDKCoreKit'
  pod 'FBSDKLoginKit'
  pod 'libPhoneNumber-iOS'
  pod 'GooglePlaces'
  pod 'SwiftCharts', '~> 0.6.5'
  pod 'SwiftGen', '~> 6.0'
  pod 'WePay', '~> 7.0.0'
  pod 'Stripe'
  pod 'Iterable-iOS-SDK'
  pod 'Introspect'
  pod 'Firebase/DynamicLinks'

  pod 'Analytics'
  pod 'PhoneNumberKit'

  post_install do |pi|
      pi.pods_project.targets.each do |t|
        t.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.7'
        end
      end
  end
end
@erik-utr
Copy link
Author

erik-utr commented Dec 1, 2021

sudo arch -x86_64 gem install ffi

This fixed the problem, note that I was using rosetta for the terminal the whole time

@jpike88
Copy link

jpike88 commented Jan 19, 2022

gem install --user-install ffi -- --enable-libffi-alloc

This worked for me. Also on m1 max.

Related issue ffi/ffi#864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants