17.3 C
New York
Saturday, September 21, 2024

Flutter: Mac OS 15 beta error in constructing iOS builds


I had up to date my system to macOS 15 beta and now I am getting on constructing flutter iOS builds. I am utilizing xcode 16 beta and I am getting the next error.

`
Launching lib/principal.dart on iPhone 15 in debug mode…
CocoaPods output:

### Stack

```
   CocoaPods : 1.15.2
        Ruby : ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin24]
    RubyGems : 3.0.3.1
        Host : macOS 15.0 (24A5327a)
       Xcode : 16.0 (16A5171r)
         Git : git model 2.39.5 (Apple Git-151)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Variations/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
```

### 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

```ruby
# Uncomment this line to outline a worldwide platform in your venture
platform :ios, '12.0'

# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

venture 'Runner', {
  'Debug' => :debug,
  'Profile' => :launch,
  'Launch' => :launch,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.be a part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  except File.exist?(generated_xcode_build_settings_path)
    elevate "#{generated_xcode_build_settings_path} should exist. If you happen to're operating pod set up manually, ensure that flutter pub get is executed first"
  finish

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT=(.*)/)
    return matches[1].strip if matches
  finish
  elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Attempt deleting Generated.xcconfig, then run flutter pub get"
finish

require File.expand_path(File.be a part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

goal 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
#   goal 'RunnerTests' do
#     inherit! :search_paths
#   finish
finish

post_install do |installer|
  installer.pods_project.targets.every do |goal|
    flutter_additional_ios_build_settings(goal)
  finish
finish
```

### Error

```
REXML::ParseException - #
/Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/supply.rb:220:in `scan'
/Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/supply.rb:220:in `match'
/Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:227:in `pull_event'
/Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:207:in `pull'
/Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:23:in `parse'
/Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/doc.rb:448:in `construct'
/Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/doc.rb:101:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:71:in `combine!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:929:in `block in integrate_user_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `part'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:925:in `integrate_user_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:185:in `combine'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:170:in `set up!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/set up.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `'
/usr/native/bin/pod:23:in `load'
/usr/native/bin/pod:23:in `
' ... flawed argument sort String (anticipated Regexp) Line: 1 Place: 38 Final 80 unconsumed characters: /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:96:in `rescue in parse' /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:21:in `parse' /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/doc.rb:448:in `construct' /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/doc.rb:101:in `initialize' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:71:in `combine!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:929:in `block in integrate_user_project' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `part' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:925:in `integrate_user_project' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:185:in `combine' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:170:in `set up!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/set up.rb:52:in `run' /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `' /usr/native/bin/pod:23:in `load' /usr/native/bin/pod:23:in `
' ``` ――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Seek for present GitHub points much like yours: https://github.com/CocoaPods/CocoaPods/search?q=%23percent3CTypeErrorpercent3A+flawed+argument+sort+String+%28expected+Regexppercent29percent3Epercent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Frexml-3.2.9percent2Flibpercent2Frexmlpercent2Fsource.rbpercent3A220percent3Ain+%60scanpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Frexml-3.2.9percent2Flibpercent2Frexmlpercent2Fsource.rbpercent3A220percent3Ain+%60matchpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Frexml-3.2.9percent2Flibpercent2Frexmlpercent2Fparserspercent2Fbaseparser.rbpercent3A227percent3Ain+%60pull_eventpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Frexml-3.2.9percent2Flibpercent2Frexmlpercent2Fparserspercent2Fbaseparser.rbpercent3A207percent3Ain+%60pullpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Frexml-3.2.9percent2Flibpercent2Frexmlpercent2Fparserspercent2Ftreeparser.rbpercent3A23percent3Ain+%60parsepercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Frexml-3.2.9percent2Flibpercent2Frexmlpercent2Fdocument.rbpercent3A448percent3Ain+%60buildpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Frexml-3.2.9percent2Flibpercent2Frexmlpercent2Fdocument.rbpercent3A101percent3Ain+%60initializepercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fxcodeproj-1.24.0percent2Flibpercent2Fxcodeprojpercent2Fworkspace.rbpercent3A83percent3Ain+%60newpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fxcodeproj-1.24.0percent2Flibpercent2Fxcodeprojpercent2Fworkspace.rbpercent3A83percent3Ain+%60from_spercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fxcodeproj-1.24.0percent2Flibpercent2Fxcodeprojpercent2Fworkspace.rbpercent3A66percent3Ain+%60new_from_xcworkspacepercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Finstallerpercent2Fuser_project_integrator.rbpercent3A102percent3Ain+%60create_workspacepercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Finstallerpercent2Fuser_project_integrator.rbpercent3A71percent3Ain+%60integratepercent21percent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Finstaller.rbpercent3A929percent3Ain+%60block+in+integrate_user_projectpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Fuser_interface.rbpercent3A64percent3Ain+%60sectionpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Finstaller.rbpercent3A925percent3Ain+%60integrate_user_projectpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Finstaller.rbpercent3A185percent3Ain+%60integratepercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Finstaller.rbpercent3A170percent3Ain+%60installpercent21percent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Fcommandpercent2Finstall.rbpercent3A52percent3Ain+%60runpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fclaide-1.1.0percent2Flibpercent2Fclaidepercent2Fcommand.rbpercent3A334percent3Ain+%60runpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Flibpercent2Fcocoapodspercent2Fcommand.rbpercent3A52percent3Ain+%60runpercent27percent0Apercent2FLibrarypercent2FRubypercent2FGemspercent2F2.6.0percent2Fgemspercent2Fcocoapods-1.15.2percent2Fbinpercent2Fpodpercent3A55percent3Ain+%60percent3Ctop+%28requiredpercent29percent3Epercent27percent0Apercent2Fusrpercent2Flocalpercent2Fbinpercent2Fpodpercent3A23percent3Ain+%60loadpercent27percent0Apercent2Fusrpercent2Flocalpercent2Fbinpercent2Fpodpercent3A23percent3Ain+%60percent3Cmainpercent3Epercent27percent0A...%0Awrong+argument+sort+String+%28expected+Regexppercent29percent0ALinepercent3A+1percent0APositionpercent3A+38percent0ALast+80+unconsumed+characterspercent3Apercent0Apercent3Cpercent3Fxml+versionpercent3Dpercent221.0percent22+encodingpercent3Dpercent22UTF-8percent22percent3Fpercent3E&sort=Points If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/points/new Remember to first learn the contributing information for particulars on the right way to correctly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/grasp/CONTRIBUTING.md Do not forget to anonymize any personal knowledge! In search of associated points on cocoapods/cocoapods...

Error output from CocoaPods:

Trying to find inspections failed: undefined methodology `map’ for nil:NilClass

Error operating pod set up
Error launching utility on iPhone 15.

Exited (1).

`

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles