cocoapods-static-frameworks icon indicating copy to clipboard operation
cocoapods-static-frameworks copied to clipboard

undefined local variable or method `static_frameworks'

Open mezhevikin opened this issue 7 years ago • 7 comments

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
 #  
 #  -------------------------------------------

mezhevikin avatar Sep 27 '17 15:09 mezhevikin

The same.

dzmitry-sazanovich-epam avatar Oct 02 '17 20:10 dzmitry-sazanovich-epam

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.

b-ray avatar Oct 02 '17 21:10 b-ray

I'm on cocoapods 1.3.1 and I get the same issue

FWMarc avatar Nov 23 '17 13:11 FWMarc

@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 avatar Nov 26 '17 11:11 b-ray

@b-ray Could you please provide a sample project that works?

jaybowang avatar Jan 03 '18 12:01 jaybowang

@jaybowong A very basic sample project is available here: https://github.com/b-ray/statics-framework-example

b-ray avatar Jan 05 '18 09:01 b-ray

@jaybowong Through the sample project, keep use_frameworks! works fine.

plugin 'cocoapods-static-frameworks'
use_frameworks!
static_frameworks

iblacksun avatar Jan 19 '18 03:01 iblacksun