Skip to content

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

@brunoinds

Description

@brunoinds

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]        onesignal-cordova-plugin@5.2.8
[capacitor] ✔ copy ios in 535.23ms
[capacitor] ✔ Updating iOS plugins in 6.38ms
[capacitor] [info] Found 1 Cordova plugin for ios:
[capacitor]        onesignal-cordova-plugin@5.2.8
[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions