Open
Description
Make sure you are using SDK version 1.1.1
Due to change in linking of Pod libraries in iOS to static linking, we have to change how Leanplum-iOS-SDK is linked by adding script in ios/Podfile which will switch Leanplum-iOS-SDK to dynamic linking.
dynamic_frameworks = ['Leanplum-iOS-SDK']
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
installer.pod_targets.each do |pod|
if dynamic_frameworks.include?(pod.name)
puts "Setting dynamic linking for #{pod.name}"
def pod.build_type;
Pod::BuildType.dynamic_framework
end
end
end
end
After adding the script, make sure you run pod install
in ios/
folder
In case you are seeing swift unreferenced symbols, add any kind of Swift file to your main iOS app project in XCode, to force it to link against Swift libraries.