Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting error when trying to use plugin in podfile #1

Closed
Vitalii-Gozhenko opened this issue Apr 9, 2020 · 7 comments
Closed

I'm getting error when trying to use plugin in podfile #1

Vitalii-Gozhenko opened this issue Apr 9, 2020 · 7 comments
Assignees

Comments

@Vitalii-Gozhenko
Copy link

[!] Invalid `Podfile` file: uninitialized constant Pod::Target::BuildType
Did you mean?  Pod::BuildType.
@ebgraham
Copy link

same, on this line

  pod 'React', :path => '../node_modules/react-native/', :build_type => :dynamic_framework

@dudihisine
Copy link

dudihisine commented Apr 27, 2020

You can Fix it by going to this folder:
/Library/Ruby/Gems/2.6.0/gems/cocoapods-user-defined-build-types-0.0.6/lib/cocoapods-user-defined-build-types

copy the "podfile_options.rb" file to your desktop

change the original file name to "podfile_options_old.rb"

edit the copied file by change the:
Pod::Target::BuildType
to:
Pod::BuildType

save the file.
copy&paste it to the folder

you will need Admin permissions so probably you will enter your Mac password couple of times.

@ghost
Copy link

ghost commented May 3, 2020

Could be due to this issue #3

@dudihisine
Copy link

Probably, the in version 1.9.1 Cocoapods changed it from 'Pod::Target::BuildType' to 'Pod::BuildType'

@joncardasis
Copy link
Owner

@dudihisine you're right on the money. Looks like the namespace updated in 1.9.1. I'll begin working on a fix for this.

@joncardasis
Copy link
Owner

This is now fixed in v0.0.7. See c9077a0.

@gelinxiao
Copy link

pod version 1.5.3: has same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants