Skip to content

XCode 12 & RN 0.63 Issues & Fixes #30

Open
@milos1290

Description

@milos1290

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions