Reputation: 1479
I have an existing Podfile that specifies one framework. I want to add another, using CocoaPods.
At this point, I have modified the existing Podfile (using Xcode) to specify the new framework. Following instructions in the accepted answer to this question, I get this response in Terminal
[!] You cannot run CocoaPods as root. (CLAide::Help)
Can someone please put me on the right track, hopefully with simple step by step instructions for my simple brain? I've only used Terminal once before, when I installed CocoaPods and my existing framework, a process for which I successfully followed the tutorial here, but it was intended for creating the Podfile from scratch.
Many thanks!
Upvotes: 1
Views: 1403
Reputation: 1479
I deleted, then pasted (from the GitHub repository) the line in the Podfile for the new dependency, then did pod install
again. CocoaPods took it from there and reinstalled the existing pod plus the new one.
Go figure--I can't explain it. The spelling was identical...
Upvotes: 0
Reputation: 197
A) Make sure you're putting the 2nd pod on a new line
B) Make sure terminal is in the directory of your podfile. Just open terminal, type:
cd (path/to/podfile)
You can get the path easily by dragging in the file from finder into the terminal window.
Upvotes: 1