HomeiOS Developmentios - Flutter Pod Set up error - " Oh no, an...

ios – Flutter Pod Set up error – “[!] Oh no, an error occurred.”


Once I wished to run the code beneath, I get this error.

flutter clear
flutter pub get
cd ios
arch -x86_64 pod set up //I've a m1 professional MacBook, so i've so as to add "arch -x86_64"

Why I wanted to run this.

I’m within the strategy of importing an app to the Apple AppStore, however there was an issue within the construct. I wanted to take away Firebase Storage, which i’m not utilizing anyway. After doing this, i typically should run the code above. So I did.

What I’ve tried, however didn’t work.

cd ~/.cocoapods/repos
rm -rf grasp
pod setup

and

sudo gem uninstall cocoapods
sudo gem set up cocoapods
pod setup

this gave ‘permission denied’ for ‘rm’ on the whole lot in ‘trunk’

rm -rf ~/.cocoapods/repos/trunk/

pod set up

Any assist could be appreciated.

extra information

Stack

Analyzing dependencies
cloud_firestore: Utilizing Firebase SDK model '10.3.0' outlined in 'firebase_core'
firebase_auth: Utilizing Firebase SDK model '10.3.0' outlined in 'firebase_core'
firebase_core: Utilizing Firebase SDK model '10.3.0' outlined in 'firebase_core'
Venture at /Customers/frederikalexanderbehrens/Paperwork/Wordoss/Runner.xcodeproj doesn't exist. Please test paths or incorporate Crashlytics add symbols manually.
firebase_crashlytics: Utilizing Firebase SDK model '10.3.0' outlined in 'firebase_core'
firebase_messaging: Utilizing Firebase SDK model '10.3.0' outlined in 'firebase_core'
Downloading dependencies
Putting in AppAuth (1.6.0)

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

Command

/usr/native/Cellar/cocoapods/1.12.0/libexec/bin/pod set up

Report

Stack

   CocoaPods : 1.12.0
        Ruby : ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin22]
    RubyGems : 3.4.10
        Host : macOS 13.1 (22C65)
       Xcode : 14.2 (14C18)
         Git : git model 2.37.3
Ruby lib dir : /usr/native/Cellar/ruby/3.2.2/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 world platform on your undertaking
# platform :ios, '11.0'

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

undertaking '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__)
  until File.exist?(generated_xcode_build_settings_path)
    increase "#{generated_xcode_build_settings_path} should exist. Should you're operating pod set up manually, make sure 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
  increase "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Strive 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__))
finish

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

Error

Errno::EACCES - Permission denied @ rb_sysopen - /Customers/frederikalexanderbehrens/Library/Caches/CocoaPods/Pods/VERSION
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/downloader/cache.rb:171:in `initialize'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/downloader/cache.rb:171:in `open'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/downloader/cache.rb:171:in `open'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/downloader/cache.rb:171:in `ensure_matching_version'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/downloader/cache.rb:22:in `initialize'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/downloader.rb:41:in `new'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/downloader.rb:41:in `obtain'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/pod_source_downloader.rb:69:in `obtain!'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/pod_source_installer.rb:117:in `download_source'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/pod_source_installer.rb:67:in `set up!'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:621:in `install_source_of_pod'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:539:in `block (2 ranges) in install_pod_sources'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:86:in `titled_section'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:538:in `block in install_pod_sources'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:535:in `every'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:535:in `install_pod_sources'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:258:in `block in download_dependencies'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `part'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:257:in `download_dependencies'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:163:in `set up!'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command/set up.rb:52:in `run'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in `run'
/usr/native/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/bin/pod:55:in `<high (required)>'
/usr/native/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `load'
/usr/native/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `<foremost>'

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

[!] Oh no, an error occurred.

Seek for current GitHub points much like yours:
https://github.com/CocoaPods/CocoaPods/search?q=Permission+denied+%40+rb_sysopen+-+%2FUserspercent2Ffrederikalexanderbehrenspercent2FLibrarypercent2FCachespercent2FCocoaPodspercent2FPodspercent2FVERSION&sort=Points

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/points/new

You should definitely first learn the contributing information for particulars on the way to correctly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/grasp/CONTRIBUTING.md

Do not forget to anonymize any non-public knowledge!

On the lookout for associated points on cocoapods/cocoapods…
Discovered no related points. To create a brand new problem, please go to:
https://github.com/cocoapods/cocoapods/points/new

[!] Robotically assigning platform iOS with model 12.0 on the right track Runner as a result of no platform was specified. Please specify a platform for this goal in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
frederikalexanderbehrens@Wordoss ios %

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments