joncardasis / cocoapods-user-defined-build-types

⚒ A cocoapods plugin that can selectively sets build type per pod (static/dynamic library, static/dynamic framework)
MIT License
135 stars 10 forks source link

Getting error while installing pod #2

Closed KishanVyas closed 4 years ago

KishanVyas commented 4 years ago

I follow the installation steps but getting below error while running pod install command

[!] Invalid Podfile file: undefined method `enable_user_defined_build_types!' for #.

ghost commented 4 years ago

Could be this issue https://github.com/joncardasis/cocoapods-user-defined-build-types/issues/3

joncardasis commented 4 years ago

@KishanVyas You'll get this error if you haven't installed and imported the plugin.

gem install cocoapods-user-defined-build-types

Podfile

plugin 'cocoapods-user-defined-build-types'

enable_user_defined_build_types!

target 'NiftyIOSApp' do
  ...
  pod 'Alamofire'
  pod "SwiftyJSON", :build_type => :dynamic_framework
end
mrgcohen commented 3 years ago

Add to your Gemfile so it works for CI/CD tools gem 'cocoapods-user-defined-build-types'

Then just do with bundle install

iGroza commented 3 years ago

I'm solved this issue here

davidtran commented 4 months ago

Add to your Gemfile so it works for CI/CD tools gem 'cocoapods-user-defined-build-types'

Then just do with bundle install

This solution works for me