cocoapods-static-frameworks
cocoapods-static-frameworks copied to clipboard
undefined local variable or method `static_frameworks'
I installed gem cocoapods-static-frameworks, but i get error:
[!] Invalid `Podfile` file: undefined local variable or method `static_frameworks' for #<Pod::Podfile:0x007ff44e584108>.
# from /Users/mezhevikin/Desktop/Projects/bash/Podfile:4
# -------------------------------------------
# plugin 'cocoapods-static-frameworks'
> static_frameworks
#
# -------------------------------------------
The same.
If you've got CocoaPods 1.4.0.beta.1 installed, please uninstall this version prior to using this plugin. If that doesn't help, could you provide me with more information about your environment, or share a sample project to reproduce this issue?
Please note that this is currently only a proof-of-concept and is not compatible with any other CocoaPods version then 1.3.1!
It'd be best to use a Gemfile to specify the dependencies, so I'd advice you to try that if you haven't already.
I'm on cocoapods 1.3.1 and I get the same issue
@FWMarc are you using a Gemfile? If so, please share a sample project with me, because I'm not able to reproduce this. If not, please try it again with a Gemfile :)
@b-ray Could you please provide a sample project that works?
@jaybowong A very basic sample project is available here: https://github.com/b-ray/statics-framework-example
@jaybowong Through the sample project, keep use_frameworks!
works fine.
plugin 'cocoapods-static-frameworks'
use_frameworks!
static_frameworks