Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods use_frameworks! issue

Tags:

ios

cocoapods

I found out that the way to resolve an issue, in a library i'm using, is to add use_frameworks! to the podfile. When i run pod install on the terminal, i get the following error:

[!] Invalid Podfile file: undefined method `use_frameworks!' for #.
Updating CocoaPods might fix the issue.

I'm using Cocoapods so i don't understand this issue. This tag is required for projects using swift, i'm using objective-c.

like image 556
bruno Avatar asked Mar 23 '15 15:03

bruno


1 Answers

Looks to me like the second part of that error message:

Updating CocoaPods might fix the issue.

Is your issue. use_frameworks! was added in CocoaPods 0.36.0 which was just released recently.

Use pod --version to see what you're currently running. Assuming it's earlier than 0.36.0 you'll need to update it with

[sudo] gem install cocoapods

Which is just the same way you originally installed it.

like image 90
Keith Smiley Avatar answered Nov 15 '22 09:11

Keith Smiley