our project is an Objective-c project.
Since we're using react-native-firebase
we can't use use_frameworks!
in cocoapods any more.
The problem is we have a swift pod dependency (PromiseKit) and to use swift dependencies we must use use_frameworks!
as far as I understand.
What I'm trying to do is have the best of both worlds, aka:
- remove
use_frameworks!
so thatreact-native-firebase
works AND - keep the
PromiseKit
swift dependency.
current Podfile:
platform :ios, '10.0'
target 'TestApp' do
use_frameworks!
# swift pod
pod 'PromiseKit'
# react-native-firebase
pod 'Firebase/Core', '~> 5.3.0'
pod 'Firebase/DynamicLinks', '~> 5.3.0'
pod 'Firebase/Messaging', '~> 5.3.0'
end
I noticed there's this command :modular_headers => true
or use_modular_headers
which I sense may or may not be relevant to the solution I'm looking for since Cocoapods 1.5 but I can't seem to connect the dots.
Edit:
If I remove use_frameworks!
(even if I replace it with use_modular_headers!
) I get this error: