Wednesday, June 12, 2024
HomeiOS Developmentios - Error when performing pod set up command

ios – Error when performing pod set up command


I put in Flutter with following the documentation at their web site however once I wish to run it and carry out pod set up I get this error. I attempted altering model of Cocoapods however it would not work. Does anybody have an thought?

Analyzing dependencies
firebase_analytics: Utilizing Firebase SDK model ‘10.20.0’ outlined in ‘firebase_core’
firebase_core: Utilizing Firebase SDK model ‘10.20.0’ outlined in ‘firebase_core’
inside:/Customers/title/.rbenv/variations/3.1.0/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb:85:in require': can not load such file -- xcodeproj (LoadError) from <inside:/Customers/title/.rbenv/variations/3.1.0/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in require’
from /Customers/title/.pub-cache/hosted/pub.dev/firebase_crashlytics-3.4.13/ios/crashlytics_add_upload_symbols:1:in `’
firebase_crashlytics: Utilizing Firebase SDK model ‘10.20.0’ outlined in ‘firebase_core’
firebase_dynamic_links: Utilizing Firebase SDK model ‘10.20.0’ outlined in ‘firebase_core’
firebase_performance: Utilizing Firebase SDK model ‘10.20.0’ outlined in ‘firebase_core’
Downloading dependencies
Putting in Firebase (10.20.0)
Putting in FirebaseABTesting (10.27.0)
Putting in FirebaseAnalytics (10.20.0)
Putting in FirebaseCore (10.20.0)
Putting in FirebaseCoreExtension (10.27.0)
Putting in FirebaseCoreInternal (10.27.0)
Putting in FirebaseCrashlytics (10.20.0)
Putting in FirebaseDynamicLinks (10.20.0)
Putting in FirebaseInstallations (10.27.0)
Putting in FirebasePerformance (10.20.0)
Putting in FirebaseRemoteConfig (10.27.0)
Putting in FirebaseRemoteConfigInterop (10.27.0)
Putting in FirebaseSessions (10.27.0)
Putting in FirebaseSharedSwift (10.27.0)
Putting in Flutter (1.0.0)
Putting in GTMSessionFetcher (2.3.0)
Putting in GoogleAppMeasurement (10.20.0)
Putting in GoogleDataTransport (9.4.1)
Putting in GoogleMLKit (4.0.0)
Putting in GoogleToolboxForMac (2.3.2)
Putting in GoogleUtilities (7.13.3)
Putting in GoogleUtilitiesComponents (1.1.0)
Putting in MLImage (1.0.0-beta4)
Putting in MLKitBarcodeScanning (3.0.0)
Putting in MLKitCommon (9.0.0)
Putting in MLKitTextRecognition (2.0.0)
Putting in MLKitTextRecognitionCommon (1.0.0)
Putting in MLKitVision (5.0.0)
Putting in PromisesObjC (2.4.0)
Putting in PromisesSwift (2.4.0)
Putting in ReachabilitySwift (5.2.3)
Putting in ScreenProtectorKit (1.3.1)
Putting in camera_avfoundation (0.0.1)
Putting in connectivity_plus (0.0.1)
Putting in device_info_plus (0.0.1)
Putting in firebase_analytics (10.8.4)
Putting in firebase_core (2.25.3)
Putting in firebase_crashlytics (3.4.13)
Putting in firebase_dynamic_links (5.4.12)
Putting in firebase_performance (0.9.3-12)
Putting in flutter_native_splash (0.0.1)
Putting in flutter_nfc_kit (2.0.0)
Putting in flutter_secure_storage (6.0.0)
Putting in google_mlkit_barcode_scanning (0.9.0)
Putting in google_mlkit_commons (0.5.0)
Putting in google_mlkit_text_recognition (0.10.0)
Putting in libPhoneNumber-iOS (0.9.15)
Putting in libphonenumber (0.0.1)
Putting in nanopb (2.30909.1)
Putting in package_info_plus (0.4.5)
Putting in path_provider_foundation (0.0.1)
Putting in permission_handler_apple (9.1.1)
Putting in rive_common (0.0.1)
Putting in screen_brightness_ios (0.1.0)
Putting in screen_protector (1.2.1)
Putting in share_plus (0.0.1)
Putting in shared_preferences_foundation (0.0.1)
Putting in smart_auth (0.0.1)
Putting in sqflite (0.0.3)
Putting in url_launcher_ios (0.0.1)
Producing Pods venture
Integrating consumer venture

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/native/bin/pod set up

Report

Stack

   CocoaPods : 1.13.0
        Ruby : ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
    RubyGems : 3.0.3.1
        Host : macOS 14.5 (23F79)
       Xcode : 15.4 (15F31d)
         Git : git model 2.39.3 (Apple Git-146)
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

# Uncomment this line to outline a worldwide platform to your venture
platform :ios, '13.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)
    increase "#{generated_xcode_build_settings_path} should exist. In the event you're operating pod set up manually, make certain 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
  increase "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)

    goal.build_configurations.every do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        ## dart: PermissionGroup.camera
        'PERMISSION_CAMERA=1',
      ]
    finish
  finish
finish

Error

REXML::ParseException - #<TypeError: flawed argument kind String (anticipated Regexp)>
/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.13.0/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/user_project_integrator.rb:71:in `combine!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:929:in `block in integrate_user_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `part'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:925:in `integrate_user_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:185:in `combine'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:170:in `set up!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/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.13.0/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/bin/pod:55:in `<prime (required)>'
/usr/native/bin/pod:23:in `load'
/usr/native/bin/pod:23:in `<predominant>'
...
flawed argument kind String (anticipated Regexp)
Line: 1
Place: 38
Final 80 unconsumed characters:
<?xml model="1.0" encoding="UTF-8"?>
/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.13.0/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/user_project_integrator.rb:71:in `combine!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:929:in `block in integrate_user_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `part'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:925:in `integrate_user_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:185:in `combine'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:170:in `set up!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/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.13.0/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/bin/pod:55:in `<prime (required)>'
/usr/native/bin/pod:23:in `load'
/usr/native/bin/pod:23:in `<predominant>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

In search of associated points on cocoapods/cocoapods…
Looking for inspections failed: undefined technique `map’ for nil:NilClass



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments