Closed ajRiverav closed 2 years ago
@ajRiverav could you explain how you fixed this issue ? have the same problem
Errno::EACCES: Permission denied @ rb_sysopen - /Users/dmitriy.semenyuk/Desktop/Work/demo-app/.mbuild/demo-app-ios/ide/xcode_project/Pods/Ads-Global/SDK/BUFoundation.framework/Versions/A/Headers/BUPersistence.h
/Users/dmitriy.semenyuk/.rvm/gems/ruby-3.0.2/gems/mbuild2-1.15.0/lib/mbuild/commands.rb:216:in `block in cp_smart'
/Users/dmitriy.semenyuk/.rvm/gems/ruby-3.0.2/gems/mbuild2-1.15.0/lib/mbuild/commands.rb:203:in `each'
/Users/dmitriy.semenyuk/.rvm/gems/ruby-3.0.2/gems/mbuild2-1.15.0/lib/mbuild/commands.rb:203:in `cp_smart'
/Users/dmitriy.semenyuk/.rvm/gems/ruby-3.0.2/gems/mbuild2-1.15.0/lib/mbuild.rb:297:in `block in new_top_level'
I closed this issue in favor of https://github.com/CocoaPods/CocoaPods/issues/11474.
After adding the necessary
:binary
flags in the Podfile, I ranpod install
. I got errorErrno::EACCES - Permission denied @ rb_sysopen - <dir1>/Pods/<dir2>/<edited>.framework/<dir3>
The output of
ls -la
isFirst observation: why is the file owner
root
? I decided to remove the Pods directory and runpod install
again BUT ensure I did not have root privileges. I got the same error and same output for thels
command.I decided to change file owner and permissions with
sudo chown -R $USER <dir1>/Pods/<dir2>/<edited>.framework/<dir3>
and runpod install
again. That fixes the error (although I should not need to do this). Also, it's not practical as I got the same error but for a different directory. Note that if I remove cocoapods-binary (and its uses in the Podfile), I do not get this error.Stack
Installation Source
Plugins