You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same problem described in #6, however the suggested solution didn't work for me. Even with the conditional pre_install script, it was breaking some of the other pods I use.
Fortunately, there is no need to use use_frameworks! for pods with Swift, if you are using CocoaPods 1.5.0 or newer.
You can use use_modular_headers! instead. (Or :modular_headers => true for a single pod declaration.) See: https://blog.cocoapods.org/CocoaPods-1.5.0/
What worked for me was:
Adding pod 'CustomerlySDK', :modular_headers => true into my Podfile.
# ios/Podfiletarget'YourApp'do
...
pod'CustomerlySDK',:modular_headers=>true
...
end
Importing the SDK with @import CustomerlySDK; instead of the #import <CustomerlySDK/CustomerlySDK-Swift.h> in my AppDelegate.m file.
I had the same problem described in #6, however the suggested solution didn't work for me. Even with the conditional pre_install script, it was breaking some of the other pods I use.
Fortunately, there is no need to use
use_frameworks!for pods with Swift, if you are using CocoaPods 1.5.0 or newer.You can use
use_modular_headers!instead. (Or:modular_headers => truefor a single pod declaration.) See: https://blog.cocoapods.org/CocoaPods-1.5.0/What worked for me was:
pod 'CustomerlySDK', :modular_headers => trueinto myPodfile.@import CustomerlySDK;instead of the#import <CustomerlySDK/CustomerlySDK-Swift.h>in myAppDelegate.mfile.So I suggest to update the installation instruction in that manner.
Or perhaps even better, to add
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }intoCustomerlySDK.podspecof the CustomerlySDK pod.