Closed jmagman closed 7 months ago
Related issue: https://github.com/openid/AppAuth-iOS/issues/559
Related issue: #559
Ah, yes this issue is a duplicate of that, I missed it. Fortunately you likely don't need to tackle creating a manual modulemap, adding that DEFINES_MODULE
build setting to the xcconfig
in the podspec should be enough. See also https://github.com/flutter/flutter/issues/41007 and linked PRs for additional details about this problem.
GoogleSignIn
just released 7.1.1, which updated the dependency
'GTMAppAuth', '>= 1.3', '< 3.0'
to 'GTMAppAuth', '>= 4.1.1', '< 5.0'
. That bumped GTMAppAuth
from 2.0.0 (on my machine, but presumably on CI as well) to 4.1.1. And between those versions, GTMAppAuth
migrated from Objective-C to Swift https://github.com/google/GTMAppAuth/compare/2.0.0...4.1.1.
So it might be freshly complaining with that particular set of dependencies because the newly swift-ified Swift pod wants the Objective-C pod to define modules.
Describe the bug AppAuth cannot be added as a transitive dependency of a CocoaPods pod, when built as a static library.
To Reproduce
pod init
to initialize CocoaPods.Podfile
comment outuse_frameworks!
to embed as static libs. Add a pod that depends onAppAuth
, for example,GTMAppAuth
:pod install
, which fails:The Swift pod
GTMAppAuth
depends uponGTMSessionFetcher
andAppAuth
, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may setuse_modular_headers!
globally in your Podfile, or specify:modular_headers => true
for particular dependencies.