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

Works on pod v 1.8.3, doesn't work on pod v 1.9.1 #3

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hitting this error while running pod install in v1.9.1 [!] Invalid Podfile file: uninitialized constant Pod::Target::BuildType Did you mean? Pod::BuildType.

pod ‘FSCalendar’, :build_type => :dynamic_framework

I need to downgrade it to 1.8.3 and it works again. Putting the instructions here on how to downgrade in case anybody needs it Check cocoapod version:

gem which cocoapods
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.8.3 -n /usr/local/bin
pod deintegrate
pod install
dudihisine commented 4 years ago

You can also follow my instruction here to fix the problem and use version 1.9.1

joncardasis commented 4 years ago

Fixed in v0.0.7 via https://github.com/joncardasis/cocoapods-user-defined-build-types/commit/c9077a02f2b79e208b84a1da13a048131f5c92d6. The resolution will work for 1.8.3 and 1.9.1