How to create Pod framework with dependent Firebase
cocoapods, firebase, ios, objective-c
Solution
add the follwoing lines in podspec file worked for me.
i get this from here
s.pod_target_xcconfig = {
"OTHER_LDFLAGS" => '$(inherited) -framework "FirebaseCore" -framework "FirebaseMessaging"',
"CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => 'YES',
"FRAMEWORK_SEARCH_PATHS" => '$(inherited) "${PODS_ROOT}/FirebaseCore/Frameworks" "${PODS_ROOT}/FirebaseMessaging/Frameworks"'
}
Problem
I want to create a new pod framework with a Firebase dependency but when I run: ``` pod lib lint ``` The following error occurs: - NOTE | [iOS] xcodebuild: Headers/Private/Firebase/Firebase.h:1:9: fatal error: 'FirebaseAnalytics/FirebaseAnalytics.h' file not found` this is "PushSDK.podspec":