Skip to content

Commit 371153e

Browse files
authored
fix(tvos): fixing tvos build (#61)
1 parent fbb46a0 commit 371153e

File tree

7 files changed

+126
-31
lines changed

7 files changed

+126
-31
lines changed

Example/Leanplum-SDK.xcodeproj/project.pbxproj

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
07E5C8F41F052DD000A4B092 /* SingleMessage.json in Resources */ = {isa = PBXBuildFile; fileRef = 07E5C8A81F052B7800A4B092 /* SingleMessage.json */; };
7575
07E5C8F51F052DD000A4B092 /* TiedPriorities1.json in Resources */ = {isa = PBXBuildFile; fileRef = 07E5C8A91F052B7800A4B092 /* TiedPriorities1.json */; };
7676
07E5C8F61F052DD000A4B092 /* TiedPriorities2.json in Resources */ = {isa = PBXBuildFile; fileRef = 07E5C8AA1F052B7800A4B092 /* TiedPriorities2.json */; };
77+
0ADAE7C0E4626C7508D4F51F /* Pods_Leanplum_SDK_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6AF083E55AE0487017CBBD40 /* Pods_Leanplum_SDK_Tests.framework */; };
7778
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
7879
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
7980
6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
@@ -86,18 +87,17 @@
8687
6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
8788
6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
8889
6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
89-
7EB62201F9933A5796D4A2FE /* Pods_Leanplum_SDK_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66C5FAC1828A41289CE29EF5 /* Pods_Leanplum_SDK_Example.framework */; };
9090
873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
91+
943CD7A9FF2D3B6F5C05407D /* Pods_Leanplum_tvOS_SDK_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B7AA729189F43717597200B /* Pods_Leanplum_tvOS_SDK_Example.framework */; };
9192
9CB691DE1F15FFF5002D83D8 /* batch_response.json in Resources */ = {isa = PBXBuildFile; fileRef = 9CB691DD1F15FFF5002D83D8 /* batch_response.json */; };
9293
9CB691DF1F15FFFF002D83D8 /* batch_response.json in Resources */ = {isa = PBXBuildFile; fileRef = 9CB691DD1F15FFF5002D83D8 /* batch_response.json */; };
9394
9CB691E11F1601BA002D83D8 /* EventCallbackManagerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9CB691E01F1601BA002D83D8 /* EventCallbackManagerTest.m */; };
94-
B08587C9AF0FCE5835E853EA /* Pods_Leanplum_SDK_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7849230A3D5C6DE5929ED1C8 /* Pods_Leanplum_SDK_Tests.framework */; };
9595
B5CCCA2D1D74B64D005ADEE1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B5CCCA2C1D74B64D005ADEE1 /* main.m */; };
9696
B5CCCA301D74B64D005ADEE1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B5CCCA2F1D74B64D005ADEE1 /* AppDelegate.m */; };
9797
B5CCCA331D74B64D005ADEE1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B5CCCA321D74B64D005ADEE1 /* ViewController.m */; };
9898
B5CCCA361D74B64D005ADEE1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B5CCCA341D74B64D005ADEE1 /* Main.storyboard */; };
9999
B5CCCA381D74B64D005ADEE1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B5CCCA371D74B64D005ADEE1 /* Assets.xcassets */; };
100-
E1B1B1940FC870B25684ED7D /* Pods_Leanplum_tvOS_SDK_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9EE2D840C30124E373ADF721 /* Pods_Leanplum_tvOS_SDK_Example.framework */; };
100+
D5C6A8D65B481CDF4A0A2F18 /* Pods_Leanplum_SDK_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05E32100A0C2ED8AC080239C /* Pods_Leanplum_SDK_Example.framework */; };
101101
/* End PBXBuildFile section */
102102

103103
/* Begin PBXContainerItemProxy section */
@@ -111,6 +111,7 @@
111111
/* End PBXContainerItemProxy section */
112112

113113
/* Begin PBXFileReference section */
114+
05E32100A0C2ED8AC080239C /* Pods_Leanplum_SDK_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum_SDK_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
114115
0723D6CA1ED8CCAA004AE3A5 /* Leanplum-iOS-SDK-source.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "Leanplum-iOS-SDK-source.podspec"; path = "../Leanplum-iOS-SDK-source.podspec"; sourceTree = "<group>"; };
115116
0723D6CB1ED8CCAA004AE3A5 /* Leanplum-iOS-SDK.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "Leanplum-iOS-SDK.podspec"; path = "../Leanplum-iOS-SDK.podspec"; sourceTree = "<group>"; };
116117
0723D6CC1ED8CCAA004AE3A5 /* Leanplum-tvOS-SDK.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "Leanplum-tvOS-SDK.podspec"; path = "../Leanplum-tvOS-SDK.podspec"; sourceTree = "<group>"; };
@@ -163,6 +164,7 @@
163164
07E5C8A81F052B7800A4B092 /* SingleMessage.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = SingleMessage.json; sourceTree = "<group>"; };
164165
07E5C8A91F052B7800A4B092 /* TiedPriorities1.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = TiedPriorities1.json; sourceTree = "<group>"; };
165166
07E5C8AA1F052B7800A4B092 /* TiedPriorities2.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = TiedPriorities2.json; sourceTree = "<group>"; };
167+
0B7AA729189F43717597200B /* Pods_Leanplum_tvOS_SDK_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum_tvOS_SDK_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
166168
1982CE36FE54461D3A24D6B5 /* Pods-Leanplum-tvOS-SDK_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-tvOS-SDK_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-tvOS-SDK_Example/Pods-Leanplum-tvOS-SDK_Example.debug.xcconfig"; sourceTree = "<group>"; };
167169
29ABF5FA9E1826C5BBE433C9 /* Pods-Leanplum-SDK_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-SDK_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-SDK_Tests/Pods-Leanplum-SDK_Tests.debug.xcconfig"; sourceTree = "<group>"; };
168170
6003F58A195388D20070C39A /* Leanplum-SDK_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Leanplum-SDK_Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -183,15 +185,13 @@
183185
6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
184186
6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
185187
606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
186-
66C5FAC1828A41289CE29EF5 /* Pods_Leanplum_SDK_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum_SDK_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
188+
6AF083E55AE0487017CBBD40 /* Pods_Leanplum_SDK_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum_SDK_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
187189
73B565AA61D6B6A4E92607C4 /* Pods-Leanplum-SDK_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-SDK_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-SDK_Tests/Pods-Leanplum-SDK_Tests.release.xcconfig"; sourceTree = "<group>"; };
188190
74C2EA3F2D53CAE77A03BFFA /* Pods-Leanplum-tvOS-SDK_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-tvOS-SDK_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-tvOS-SDK_Example/Pods-Leanplum-tvOS-SDK_Example.release.xcconfig"; sourceTree = "<group>"; };
189-
7849230A3D5C6DE5929ED1C8 /* Pods_Leanplum_SDK_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum_SDK_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
190191
84A3C33C701600A874B8C63F /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
191192
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
192193
9CB691DD1F15FFF5002D83D8 /* batch_response.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = batch_response.json; sourceTree = "<group>"; };
193194
9CB691E01F1601BA002D83D8 /* EventCallbackManagerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EventCallbackManagerTest.m; sourceTree = "<group>"; };
194-
9EE2D840C30124E373ADF721 /* Pods_Leanplum_tvOS_SDK_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum_tvOS_SDK_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
195195
A54ACCFCB36AE8C874708A7F /* libPods-Leanplum-SDK_Example-Leanplum-SDK_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Leanplum-SDK_Example-Leanplum-SDK_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
196196
B5CCCA291D74B64D005ADEE1 /* Leanplum-tvOS-SDK_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Leanplum-tvOS-SDK_Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
197197
B5CCCA2C1D74B64D005ADEE1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
@@ -215,7 +215,7 @@
215215
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
216216
6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
217217
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
218-
7EB62201F9933A5796D4A2FE /* Pods_Leanplum_SDK_Example.framework in Frameworks */,
218+
D5C6A8D65B481CDF4A0A2F18 /* Pods_Leanplum_SDK_Example.framework in Frameworks */,
219219
);
220220
runOnlyForDeploymentPostprocessing = 0;
221221
};
@@ -226,15 +226,15 @@
226226
6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
227227
6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
228228
6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
229-
B08587C9AF0FCE5835E853EA /* Pods_Leanplum_SDK_Tests.framework in Frameworks */,
229+
0ADAE7C0E4626C7508D4F51F /* Pods_Leanplum_SDK_Tests.framework in Frameworks */,
230230
);
231231
runOnlyForDeploymentPostprocessing = 0;
232232
};
233233
B5CCCA261D74B64D005ADEE1 /* Frameworks */ = {
234234
isa = PBXFrameworksBuildPhase;
235235
buildActionMask = 2147483647;
236236
files = (
237-
E1B1B1940FC870B25684ED7D /* Pods_Leanplum_tvOS_SDK_Example.framework in Frameworks */,
237+
943CD7A9FF2D3B6F5C05407D /* Pods_Leanplum_tvOS_SDK_Example.framework in Frameworks */,
238238
);
239239
runOnlyForDeploymentPostprocessing = 0;
240240
};
@@ -384,10 +384,10 @@
384384
6003F58F195388D20070C39A /* CoreGraphics.framework */,
385385
6003F591195388D20070C39A /* UIKit.framework */,
386386
6003F5AF195388D20070C39A /* XCTest.framework */,
387-
7849230A3D5C6DE5929ED1C8 /* Pods_Leanplum_SDK_Tests.framework */,
388387
A54ACCFCB36AE8C874708A7F /* libPods-Leanplum-SDK_Example-Leanplum-SDK_Tests.a */,
389-
66C5FAC1828A41289CE29EF5 /* Pods_Leanplum_SDK_Example.framework */,
390-
9EE2D840C30124E373ADF721 /* Pods_Leanplum_tvOS_SDK_Example.framework */,
388+
05E32100A0C2ED8AC080239C /* Pods_Leanplum_SDK_Example.framework */,
389+
6AF083E55AE0487017CBBD40 /* Pods_Leanplum_SDK_Tests.framework */,
390+
0B7AA729189F43717597200B /* Pods_Leanplum_tvOS_SDK_Example.framework */,
391391
);
392392
name = Frameworks;
393393
sourceTree = "<group>";
@@ -1076,7 +1076,8 @@
10761076
MTL_ENABLE_DEBUG_INFO = YES;
10771077
PRODUCT_BUNDLE_IDENTIFIER = "com.leanplum.Leanplum-tvOS-SDK-Example";
10781078
PRODUCT_NAME = "$(TARGET_NAME)";
1079-
SDKROOT = appletvos9.2;
1079+
SDKROOT = appletvos;
1080+
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
10801081
TARGETED_DEVICE_FAMILY = 3;
10811082
TVOS_DEPLOYMENT_TARGET = 9.2;
10821083
};
@@ -1099,7 +1100,8 @@
10991100
MTL_ENABLE_DEBUG_INFO = NO;
11001101
PRODUCT_BUNDLE_IDENTIFIER = "com.leanplum.Leanplum-tvOS-SDK-Example";
11011102
PRODUCT_NAME = "$(TARGET_NAME)";
1102-
SDKROOT = appletvos9.2;
1103+
SDKROOT = appletvos;
1104+
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
11031105
TARGETED_DEVICE_FAMILY = 3;
11041106
TVOS_DEPLOYMENT_TARGET = 9.2;
11051107
};

Example/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ end
1919
target 'Leanplum-tvOS-SDK_Example' do
2020
platform :tvos, '8.0'
2121

22-
pod 'Leanplum-tvOS-SDK', :path => '../'
22+
pod 'Leanplum-tvOS-SDK-source', :path => '../'
2323
end

Leanplum-iOS-SDK-source.podspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Analytics.
2222
s.requires_arc = true
2323
s.source = { :git => 'https://github.com/Leanplum/Leanplum-SDK-Internal.git', :tag => s.version.to_s }
2424
s.ios.deployment_target = '7.0'
25-
s.tvos.deployment_target = '7.0'
2625
s.frameworks = 'CFNetwork', 'Foundation', 'Security', 'SystemConfiguration', 'UIKit'
2726
s.weak_frameworks = 'AdSupport', 'StoreKit'
2827
s.library = 'sqlite3'

Leanplum-iOS-SDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Pod::Spec.new do |s|
77
s.license = { :type => 'Commercial', :text => 'See https://www.leanplum.com/tos' }
88
s.author = { 'Leanplum' => 'support@leanplum.com' }
99
s.social_media_url = 'https://twitter.com/leanplum'
10-
s.platform = :ios, '8.0'
10+
s.ios.deployment_target = '8.0'
1111
s.requires_arc = true
1212
s.source = { :git => 'https://github.com/Leanplum/Leanplum-iOS-SDK.git', :tag => s.version.to_s }
1313
s.frameworks = 'CFNetwork', 'Foundation', 'Security', 'SystemConfiguration', 'UIKit'

Leanplum-tvOS-SDK-source.podspec

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Be sure to run `pod lib lint Leanplum-SDK.podspec' to ensure this is a
3+
# valid spec before submitting.
4+
#
5+
# Any lines starting with a # are optional, but their use is encouraged
6+
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7+
#
8+
9+
Pod::Spec.new do |s|
10+
s.name = 'Leanplum-tvOS-SDK-source'
11+
s.version = '2.0.3-SNAPSHOT'
12+
s.summary = 'Mobile Marketing Platform. Integrated. ROI Engine.'
13+
s.description = 'Leanplum delivers meaningful engagement across channels through Automation, Personalization, A/B Testing, and Analytics.'
14+
s.homepage = 'https://www.leanplum.com'
15+
s.license = { :type => 'Commercial', :text => 'See https://www.leanplum.com/tos' }
16+
s.author = { 'Leanplum' => 'support@leanplum.com' }
17+
s.social_media_url = 'https://twitter.com/leanplum'
18+
s.requires_arc = true
19+
s.source = { :git => 'https://github.com/Leanplum/Leanplum-tvOS-SDK-Internal.git', :tag => s.version.to_s }
20+
s.tvos.deployment_target = '8.0'
21+
s.frameworks = 'CFNetwork', 'Foundation', 'Security', 'SystemConfiguration', 'UIKit'
22+
s.weak_frameworks = 'AdSupport', 'StoreKit'
23+
s.library = 'sqlite3'
24+
s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC', 'BITCODE_GENERATION_MODE' => 'bitcode' }
25+
s.documentation_url = 'https://www.leanplum.com/docs#/docs'
26+
s.source_files = 'Leanplum-SDK/Classes/**/*'
27+
s.module_name = 'LeanplumTV'
28+
end

Leanplum-tvOS-SDK.podspec

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
Pod::Spec.new do |s|
22
s.name = 'Leanplum-tvOS-SDK'
3-
s.version = '1.7.0'
3+
s.version = '2.0.2'
44
s.summary = 'Mobile Marketing Platform. Integrated. ROI Engine.'
5-
s.description = 'Leanplum’s integrated solution delivers meaningful engagement across messaging and the in-app experience. We offer Messaging, Automation, App Editing, Personalization, A/B Testing, and Analytics.'
5+
s.description = 'Leanplum delivers meaningful engagement across channels through Automation, Personalization, A/B Testing, and Analytics.'
66
s.homepage = 'https://www.leanplum.com'
77
s.license = { :type => 'Commercial', :text => 'See https://www.leanplum.com/tos' }
88
s.author = { 'Leanplum' => 'support@leanplum.com' }
99
s.social_media_url = 'https://twitter.com/leanplum'
10-
s.platform = :tvos, '8.0'
10+
s.tvos.deployment_target = '8.0'
1111
s.requires_arc = true
12-
s.source = { :git => 'https://github.com/Leanplum/Leanplum-iOS-SDK.git', :tag => s.version.to_s }
12+
s.source = { :git => 'https://github.com/Leanplum/Leanplum-tvOS-SDK.git', :tag => s.version.to_s }
1313
s.frameworks = 'CFNetwork', 'Foundation', 'Security', 'SystemConfiguration', 'UIKit'
1414
s.weak_frameworks = 'AdSupport', 'StoreKit'
15+
s.library = 'sqlite3'
1516
s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
1617
s.preserve_paths = 'LeanplumTV.framework'
1718
s.documentation_url = 'https://www.leanplum.com/docs#/docs'

0 commit comments

Comments
 (0)