Skip to content

Commit

Permalink
Merge pull request #1325 from BranchMetrics/SDK-1711-fix-old-linker-i…
Browse files Browse the repository at this point in the history
…ssue-for-iOS-12

SDK-1711 fix crash on iOS 12 when using the pre-built xcframework
  • Loading branch information
echo-branch authored Dec 2, 2023
2 parents 9f4c4c8 + b955e8c commit 0102d94
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
24 changes: 24 additions & 0 deletions BranchSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1954,6 +1954,10 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.0.1;
OTHER_LDFLAGS = (
"-weak_framework",
LinkPresentation,
);
PRODUCT_BUNDLE_IDENTIFIER = io.branch.BranchSDK;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1985,6 +1989,10 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.0.1;
OTHER_LDFLAGS = (
"-weak_framework",
LinkPresentation,
);
PRODUCT_BUNDLE_IDENTIFIER = io.branch.BranchSDK;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -2187,6 +2195,10 @@
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 3.0.1;
OTHER_LDFLAGS = (
"-weak_framework",
LinkPresentation,
);
PRODUCT_BUNDLE_IDENTIFIER = io.branch.BranchSDK;
PRODUCT_MODULE_NAME = BranchSDK;
PRODUCT_NAME = BranchSDK;
Expand Down Expand Up @@ -2222,6 +2234,10 @@
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 3.0.1;
OTHER_LDFLAGS = (
"-weak_framework",
LinkPresentation,
);
PRODUCT_BUNDLE_IDENTIFIER = io.branch.BranchSDK;
PRODUCT_MODULE_NAME = BranchSDK;
PRODUCT_NAME = BranchSDK;
Expand Down Expand Up @@ -2255,6 +2271,10 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.0.1;
OTHER_LDFLAGS = (
"-weak_framework",
LinkPresentation,
);
PRODUCT_BUNDLE_IDENTIFIER = io.branch.BranchSDK;
PRODUCT_NAME = BranchSDK;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -2286,6 +2306,10 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.0.1;
OTHER_LDFLAGS = (
"-weak_framework",
LinkPresentation,
);
PRODUCT_BUNDLE_IDENTIFIER = io.branch.BranchSDK;
PRODUCT_NAME = BranchSDK;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ v.3.0.0
- pre-iOS 10 locale support
- Device carrier. This was used for fraud analysis, but is no longer available on new iOS versions.

v.2.3.1
This version is for a hotfix on Xamarin, it will not ship as a general iOS release.

- SDK-2179 Fix LinkPresentation linker issue causing crash on Xamarin when run on iOS 12 or iOS 13. Thanks @LeadAssimilator.

v.2.2.1

Branch iOS SDK 2.2.1 adds parameter for current SKAN 4.0 Window in /v1/open and /v2/event requests.
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if [[ $update ]]; then
sed -i '' -e "/^[[:space:]]*s\.version/ {s/\".*\"/\"$version\"/; }" ../BranchSDK.podspec

# Update framework version
sed -ie 's/MARKETING_VERSION = '"$prev_version"'/MARKETING_VERSION = '"$version"'/g' ../BranchSDK.xcodeproj/project.pbxproj
sed -i '' -e 's/MARKETING_VERSION = '"$prev_version"'/MARKETING_VERSION = '"$version"'/g' ../BranchSDK.xcodeproj/project.pbxproj
fi


Expand Down

0 comments on commit 0102d94

Please sign in to comment.