Skip to content

Commit dfc5c08

Browse files
authored
Static linking fix (#422)
* allow static linking fix resources when using static linking * update example proj after changing resources and added support for static linking * remove static_framework = true flag from podspec
1 parent fe51d4b commit dfc5c08

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Example/Leanplum-SDK.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@
572572
6003F586195388D20070C39A /* Sources */,
573573
6003F587195388D20070C39A /* Frameworks */,
574574
6003F588195388D20070C39A /* Resources */,
575-
5678219E174A2369ECF6240C /* [CP] Embed Pods Frameworks */,
575+
1A9686B1D1C63A099A060299 /* [CP] Embed Pods Frameworks */,
576576
);
577577
buildRules = (
578578
);
@@ -724,7 +724,7 @@
724724
/* End PBXResourcesBuildPhase section */
725725

726726
/* Begin PBXShellScriptBuildPhase section */
727-
5678219E174A2369ECF6240C /* [CP] Embed Pods Frameworks */ = {
727+
1A9686B1D1C63A099A060299 /* [CP] Embed Pods Frameworks */ = {
728728
isa = PBXShellScriptBuildPhase;
729729
buildActionMask = 2147483647;
730730
files = (

Leanplum-iOS-SDK.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Analytics.
2828
s.library = 'sqlite3'
2929
s.documentation_url = 'https://docs.leanplum.com/'
3030
s.source_files = 'Leanplum-SDK/Classes/**/*'
31-
s.resources = ['Leanplum-SDK/Resources/**/*']
3231
s.module_name = 'Leanplum'
3332
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
33+
s.ios.resource_bundle = {
34+
'Leanplum-iOS-SDK' => 'Leanplum-SDK/Resources/**/*'
35+
}
3436
end

0 commit comments

Comments
 (0)