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

[Bug]: Can't build iOS after iOS18.3 update #7856

Closed
1 of 3 tasks
brunoinds opened this issue Feb 1, 2025 · 2 comments
Closed
1 of 3 tasks

[Bug]: Can't build iOS after iOS18.3 update #7856

brunoinds opened this issue Feb 1, 2025 · 2 comments
Labels

Comments

@brunoinds
Copy link

brunoinds commented Feb 1, 2025

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1

Installed Dependencies:

@capacitor/cli: 6.0.0
@capacitor/android: 6.0.0
@capacitor/core: 6.0.0
@capacitor/ios: 6.0.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Other API Details

npm -v: 10.5.0
node --version: v21.7.3
pods --version output:
pod --version output
/opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver/conflict.rb:48:in 'Gem::Resolver::Conflict#conflicting_dependencies': undefined method 'request' for nil (NoMethodError)

    [@failed_dep.dependency, @activated.request.dependency]
                                       ^^^^^^^^
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/exceptions.rb:61:in 'Gem::DependencyResolutionError#conflicting_dependencies'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/exceptions.rb:55:in 'Gem::DependencyResolutionError#initialize'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:189:in 'Exception.exception'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:189:in 'Kernel#raise'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:189:in 'Gem::Resolver#resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:413:in 'Gem::RequestSet#resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:425:in 'Gem::RequestSet#resolve_current'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:227:in 'Gem.finish_resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:284:in 'block in Gem.activate_bin_path'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Thread::Mutex#synchronize'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Gem.activate_bin_path'
        from /opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in '<main>'
/opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:317:in 'Gem::Molinillo::Resolver::Resolution#raise_error_unless_state': Unable to satisfy the following requirements: (Gem::Molinillo::VersionConflict)

- `ffi (= 1.17.0)` required by `user-specified dependency`
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:299:in 'block in Gem::Molinillo::Resolver::Resolution#unwind_for_conflict'
        from <internal:kernel>:91:in 'Kernel#tap'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:297:in 'Gem::Molinillo::Resolver::Resolution#unwind_for_conflict'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:682:in 'Gem::Molinillo::Resolver::Resolution#attempt_to_activate'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:254:in 'Gem::Molinillo::Resolver::Resolution#process_topmost_state'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:182:in 'Gem::Molinillo::Resolver::Resolution#resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolver.rb:43:in 'Gem::Molinillo::Resolver#resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:186:in 'Gem::Resolver#resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:413:in 'Gem::RequestSet#resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:425:in 'Gem::RequestSet#resolve_current'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:227:in 'Gem.finish_resolve'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:284:in 'block in Gem.activate_bin_path'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Thread::Mutex#synchronize'
        from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Gem.activate_bin_path'
        from /opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in '<main>'

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

capacitor sync ios
[capacitor] ✔ Copying web assets from dist to ios/App/App/public in 395.47ms
[capacitor] ✔ Creating capacitor.config.json in ios/App/App in 1.43ms
[capacitor] [info] Found 1 Cordova plugin for ios:
[capacitor]        [email protected]
[capacitor] ✔ copy ios in 535.23ms
[capacitor] ✔ Updating iOS plugins in 6.38ms
[capacitor] [info] Found 1 Cordova plugin for ios:
[capacitor]        [email protected]
[capacitor] ✖ Updating iOS native dependencies with pod install - failed!
[capacitor] ✖ update ios - failed!
[capacitor] [error] /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver/conflict.rb:48:in 'Gem::Resolver::Conflict#conflicting_dependencies': undefined method 'request' for nil (NoMethodError)
[capacitor]         
[capacitor]         [@failed_dep.dependency, @activated.request.dependency]
[capacitor]         ^^^^^^^^
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/exceptions.rb:61:in 'Gem::DependencyResolutionError#conflicting_dependencies'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/exceptions.rb:55:in 'Gem::DependencyResolutionError#initialize'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:189:in 'Exception.exception'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:189:in 'Kernel#raise'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:189:in 'Gem::Resolver#resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:413:in 'Gem::RequestSet#resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:425:in 'Gem::RequestSet#resolve_current'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:227:in 'Gem.finish_resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:284:in 'block in Gem.activate_bin_path'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Thread::Mutex#synchronize'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Gem.activate_bin_path'
[capacitor]         from /opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in '<main>'
[capacitor]         /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:317:in 'Gem::Molinillo::Resolver::Resolution#raise_error_unless_state': Unable to satisfy the following requirements: (Gem::Molinillo::VersionConflict)
[capacitor]         
[capacitor]         - `ffi (= 1.17.0)` required by `user-specified dependency`
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:299:in 'block in Gem::Molinillo::Resolver::Resolution#unwind_for_conflict'
[capacitor]         from <internal:kernel>:91:in 'Kernel#tap'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:297:in 'Gem::Molinillo::Resolver::Resolution#unwind_for_conflict'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:682:in 'Gem::Molinillo::Resolver::Resolution#attempt_to_activate'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:254:in 'Gem::Molinillo::Resolver::Resolution#process_topmost_state'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolution.rb:182:in 'Gem::Molinillo::Resolver::Resolution#resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/vendor/molinillo/lib/molinillo/resolver.rb:43:in 'Gem::Molinillo::Resolver#resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver.rb:186:in 'Gem::Resolver#resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:413:in 'Gem::RequestSet#resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/request_set.rb:425:in 'Gem::RequestSet#resolve_current'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:227:in 'Gem.finish_resolve'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:284:in 'block in Gem.activate_bin_path'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Thread::Mutex#synchronize'
[capacitor]         from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems.rb:282:in 'Gem.activate_bin_path'
[capacitor]         from /opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in '<main>'
[capacitor]         
[ERROR] An error occurred while running subprocess capacitor.

Expected Behavior

Should build the iOS package.

Project Reproduction

none

Additional Information

No response

@markemer
Copy link
Member

markemer commented Feb 3, 2025

/opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/rubygems/resolver/conflict.rb

Looks like your Ruby 3.4.1 is using gems 3.4.0 which is causing a ruby error in Cocoapods

@brunoinds
Copy link
Author

🎉 I've solved this problem with this 3 steps:

  1. Re-install cocoapods
sudo gem uninstall cocoapods
sudo gem install cocoapods
  1. Update Podfile:
cd ios/App
rm -rf Pods Podfile.lock
pod repo update
pod install
  1. Cap Sync:
ionic cap sync ios
ionic cap build ios

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

No branches or pull requests

2 participants