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

error: use of '@import' when modules are disabled #5

Closed jdnichollsc closed 4 years ago

jdnichollsc commented 4 years ago

Hello mate,

I'm trying to use this plugin but I'm getting an error from Xcode: error: use of '@import' when modules are disabled

My Podfile:

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

enable_user_defined_build_types!

pod 'MySDK', :build_type => :dynamic_framework, :modular_headers => true

Thanks in advance!

jdnichollsc commented 4 years ago

Nevermind, it was fixed by removing s.compiler_flags = '-fno-modules' from my .podspec