You cannot run CocoaPods as root (Windows 10)
up vote
0
down vote
favorite
I'm setting up a new react-native firebase project following the 'Getting Started' section of https://github.com/invertase/react-native-firebase-starter
All of the Android steps work fine but I'm struggling to get the iOS pod install to work (step 1.4 [iOS] cd ios and run pod install
)
I've installed ruby and used gem to install cocoapods like:
gem install cocoapods
I accepted all the defaults and the installation was successful but now when I run any pod command I get an error.
Running pod --version
gives me:
Traceback (most recent call last):
4: from C:/Ruby25-x64/bin/pod:23:in `<main>'
3: from C:/Ruby25-x64/bin/pod:23:in `load'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:47:in `run'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
I'm running Windows 10 Pro
There is a stack overflow answer here: https://stackoverflow.com/a/37451422/3368558 which bypasses this by commenting out the check but I'm looking for a more correct approach which doesn't involve me messing with CocoaPods itself.
windows firebase cocoapods
add a comment |
up vote
0
down vote
favorite
I'm setting up a new react-native firebase project following the 'Getting Started' section of https://github.com/invertase/react-native-firebase-starter
All of the Android steps work fine but I'm struggling to get the iOS pod install to work (step 1.4 [iOS] cd ios and run pod install
)
I've installed ruby and used gem to install cocoapods like:
gem install cocoapods
I accepted all the defaults and the installation was successful but now when I run any pod command I get an error.
Running pod --version
gives me:
Traceback (most recent call last):
4: from C:/Ruby25-x64/bin/pod:23:in `<main>'
3: from C:/Ruby25-x64/bin/pod:23:in `load'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:47:in `run'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
I'm running Windows 10 Pro
There is a stack overflow answer here: https://stackoverflow.com/a/37451422/3368558 which bypasses this by commenting out the check but I'm looking for a more correct approach which doesn't involve me messing with CocoaPods itself.
windows firebase cocoapods
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm setting up a new react-native firebase project following the 'Getting Started' section of https://github.com/invertase/react-native-firebase-starter
All of the Android steps work fine but I'm struggling to get the iOS pod install to work (step 1.4 [iOS] cd ios and run pod install
)
I've installed ruby and used gem to install cocoapods like:
gem install cocoapods
I accepted all the defaults and the installation was successful but now when I run any pod command I get an error.
Running pod --version
gives me:
Traceback (most recent call last):
4: from C:/Ruby25-x64/bin/pod:23:in `<main>'
3: from C:/Ruby25-x64/bin/pod:23:in `load'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:47:in `run'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
I'm running Windows 10 Pro
There is a stack overflow answer here: https://stackoverflow.com/a/37451422/3368558 which bypasses this by commenting out the check but I'm looking for a more correct approach which doesn't involve me messing with CocoaPods itself.
windows firebase cocoapods
I'm setting up a new react-native firebase project following the 'Getting Started' section of https://github.com/invertase/react-native-firebase-starter
All of the Android steps work fine but I'm struggling to get the iOS pod install to work (step 1.4 [iOS] cd ios and run pod install
)
I've installed ruby and used gem to install cocoapods like:
gem install cocoapods
I accepted all the defaults and the installation was successful but now when I run any pod command I get an error.
Running pod --version
gives me:
Traceback (most recent call last):
4: from C:/Ruby25-x64/bin/pod:23:in `<main>'
3: from C:/Ruby25-x64/bin/pod:23:in `load'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:47:in `run'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
I'm running Windows 10 Pro
There is a stack overflow answer here: https://stackoverflow.com/a/37451422/3368558 which bypasses this by commenting out the check but I'm looking for a more correct approach which doesn't involve me messing with CocoaPods itself.
windows firebase cocoapods
windows firebase cocoapods
asked 2 days ago
Markoorn
588212
588212
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204180%2fyou-cannot-run-cocoapods-as-root-windows-10%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password