Closed Q-Time closed 8 months ago
I have exactly the same problem after updating cocoapods
I hope to update 1.15.1 soon. I urgently need it to solve the problem that occurred in Xcode Cloud. Thank you for your hard work. I have no problem using ‘’sudo pod install --allow-root‘’ on Mac, but the use of ‘’sudo‘’ is prohibited in Xcode Cloud.
I installed Cocopods on Mac with the specified version 1.14.2 and there was no problem: "sudo gem install cocoapods -v 1.14.2" However, sudo is prohibited on Xcode Cloud. “gem install cocoapods -v 1.14.2” does not work on Xcode Cloud because there is no permission, or brew install cocoapods@1.14.2 also does not work.
If you have a Gemfile and CI is running fastlane (call the "bundle update" and "bundle install" command before starting the build processes), you can specify a version like,
gem 'cocoapods', '1.14.3'
I installed cocoapods 1.14.3 on my system (macbook pro m1 max) after upgrading to 1.15.0, like this:
sudo gem uninstall cocoapods
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/30d5aab0ebd9e1b8f03c69e25a4ae95f9875eead/Formula/c/cocoapods.rb > cocoapods.rb
brew install cocoapods.rb
or
brew remove cocoapods
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/30d5aab0ebd9e1b8f03c69e25a4ae95f9875eead/Formula/c/cocoapods.rb > cocoapods.rb
brew install cocoapods.rb
P.S. this solution for arm64 mac (m1,m2,m3 etc.) you can read more about downgrading here
I installed Cocopods on Mac with the specified version 1.14.2 and there was no problem: "sudo gem install cocoapods -v 1.14.2" However, sudo is prohibited on Xcode Cloud. “gem install cocoapods -v 1.14.2” does not work on Xcode Cloud because there is no permission, or brew install cocoapods@1.14.2 also does not work.
I think, you can use this article and my solution to switch Xcod-Cloud on 1.14.3 cocoapods
Closed in favor of duplicate #12226
/Users/kodecorp/.rbenv/versions/3.2.2/bin/pod install
What did you do?
What did you expect to happen?
What happened instead?
CocoaPods : 1.15.0
Ruby : ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin23]
RubyGems : 3.4.18
Host : macOS 14.2.1 (23C71)
Xcode : 15.2 (15C500b)
Git : git version 2.39.3 (Apple Git-145)
Ruby lib dir : /Users/kodecorp/.rbenv/versions/3.2.2/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
cocoapods-clean : 0.0.1
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
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, min_ios_version_supported
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'lifesongs' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'lifesongsTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
end
end
Errno::EEXIST - File exists @ syserr_fail2_in - /Users/kodecorp/Library/Caches/CocoaPods/Pods/External/hermes-engine/dbb153605ad16ff6beffe23b95032e38-54205/destroot/Library/Frameworks/macosx/hermes.framework/Resources
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2266:in `symlink'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2266:in `copy'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:1058:in `block in copy_entry'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2397:in `wrap_traverse'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2400:in `block in wrap_traverse'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2399:in `each'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2399:in `wrap_traverse'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:1055:in `copy_entry'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:1000:in `block in cp_r'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2481:in `block in fu_each_src_dest'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2490:in `block in fu_each_src_dest0'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2488:in `each'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2488:in `fu_each_src_dest0'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2479:in `fu_each_src_dest'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:999:in `cp_r'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:343:in `block (2 levels) in copy_files'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:341:in `each'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:341:in `block in copy_files'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:128:in `lock'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:99:in `write_lock'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:332:in `copy_files'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:269:in `block (2 levels) in uncached_pod'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:265:in `each'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:265:in `block in uncached_pod'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:291:in `in_tmpdir'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:238:in `uncached_pod'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:33:in `download_pod'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader.rb:42:in `download'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer/pod_source_downloader.rb:69:in `download!'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer/pod_source_installer.rb:117:in `download_source'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer/pod_source_installer.rb:67:in `install!'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:621:in `install_source_of_pod'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:539:in `block (2 levels) in install_pod_sources'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/user_interface.rb:86:in `titled_section'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:538:in `block in install_pod_sources'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:535:in `each'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:535:in `install_pod_sources'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:258:in `block in download_dependencies'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:257:in `download_dependencies'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:163:in `install!'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/command/install.rb:52:in `run'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/command.rb:52:in `run'
/Users/kodecorp/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.15.0/bin/pod:55:in `<top (required)>'
/Users/kodecorp/.rbenv/versions/3.2.2/bin/pod:25:in `load'
/Users/kodecorp/.rbenv/versions/3.2.2/bin/pod:25:in `<main>'
If you have a Gemfile and CI is running fastlane (call the "bundle update" and "bundle install" command before starting the build processes), you can specify a version like,
gem 'cocoapods', '1.14.3'
I installed cocoapods 1.14.3 on my system (macbook pro m1 max) after upgrading to 1.15.0, like this:
sudo gem uninstall cocoapods
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/30d5aab0ebd9e1b8f03c69e25a4ae95f9875eead/Formula/c/cocoapods.rb > cocoapods.rb
brew install cocoapods.rb
or
brew remove cocoapods
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/30d5aab0ebd9e1b8f03c69e25a4ae95f9875eead/Formula/c/cocoapods.rb > cocoapods.rb
brew install cocoapods.rb
P.S. this solution for arm64 mac (m1,m2,m3 etc.) you can read more about downgrading here
I love you
qinshijian@Bililiooos-MBP ArtiFusion % pod install Analyzing dependencies Downloading dependencies Installing Ads-Global (5.4.0.9) Installing Alamofire (5.8.1) Installing AppLovinSDK (11.11.3) Installing AppsFlyer-AdRevenue (6.9.1) Installing AppsFlyerFramework (6.12.2) Installing BURelyFoundation_Global (0.1.2.5)
[!] Error installing BURelyFoundation_Global
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=Permission+denied+%40+rb_sysopen+-+%2FUsers%2Fqinshijian%2FLibrary%2FCaches%2FCocoaPods%2FPods%2FRelease%2FBURelyFoundation_Global%2F0.1.2.5-cd9e0%2FFrameworks%2FSDK%2FBURelyFoundationGlobalFoundation%2FBURelyFoundationGlobalFoundation.xcframework%2Fios-arm64_armv7%2FHeaders%2FNSArray%2BPAGUtilities.h&type=Issues
If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods... Searching for inspections failed: undefined method `map' for nil
why?