@@ -49,7 +49,12 @@ def test_001_PluginAdd_Pod_GoogleMaps_Before_PlatformAdd_iOS(self):
49
49
assert ("location = \" group:TNSApp.xcodeproj\" >" in output )
50
50
assert ("location = \" group:Pods/Pods.xcodeproj\" >" in output )
51
51
52
- assert FileExists ("TNS_App/platforms/ios/Pods/Pods.xcodeproj" )
52
+ # This deployment target comes from the CLI
53
+ output = runAUT ("cat TNS_App/platforms/ios/TNSApp.xcodeproj/project.pbxproj | grep \" DEPLOYMENT\" " )
54
+ assert ("IPHONEOS_DEPLOYMENT_TARGET = 8.0;" in output )
55
+ # This deployment target comes from the Podfile - platform :ios, '8.1'
56
+ output = runAUT ("cat TNS_App/platforms/ios/Pods/Pods.xcodeproj/project.pbxproj | grep \" DEPLOYMENT\" " )
57
+ assert ("IPHONEOS_DEPLOYMENT_TARGET = 8.1;" in output )
53
58
Build (platform = "ios" , path = "TNS_App" )
54
59
55
60
def test_002_PluginAdd_Pod_GoogleMaps_After_PlatformAdd_iOS (self ):
@@ -81,6 +86,13 @@ def test_002_PluginAdd_Pod_GoogleMaps_After_PlatformAdd_iOS(self):
81
86
assert ("location = \" group:Pods/Pods.xcodeproj\" >" in output )
82
87
assert FileExists ("TNS_App/platforms/ios/Pods/Pods.xcodeproj" )
83
88
89
+ # This deployment target comes from the CLI
90
+ output = runAUT ("cat TNS_App/platforms/ios/TNSApp.xcodeproj/project.pbxproj | grep \" DEPLOYMENT\" " )
91
+ assert ("IPHONEOS_DEPLOYMENT_TARGET = 8.0;" in output )
92
+ # This deployment target comes from the Podfile - platform :ios, '8.1'
93
+ output = runAUT ("cat TNS_App/platforms/ios/Pods/Pods.xcodeproj/project.pbxproj | grep \" DEPLOYMENT\" " )
94
+ assert ("IPHONEOS_DEPLOYMENT_TARGET = 8.1;" in output )
95
+
84
96
def test_003_PluginAdd_MultiplePods (self ):
85
97
CreateProjectAndAddPlatform (projName = "TNS_App" , platform = "ios" , frameworkPath = iosRuntimeSymlinkPath , symlink = True )
86
98
@@ -149,7 +161,7 @@ def test_401_PluginAdd_InvalidPod(self):
149
161
150
162
output = Prepare (platform = "ios" , path = "TNS_App" , assertSuccess = False )
151
163
assert ("Installing pods..." in output )
152
- assert ("Processing node_modules failed. Error:Error: Command failed: /bin/sh -c pod install " in output )
164
+ assert ("Processing node_modules failed. Error:Error: Command pod failed with exit code 1 " in output )
153
165
154
166
output = runAUT ("cat TNS_App/platforms/ios/Podfile" )
155
167
assert ("pod 'InvalidPod'" in output )
0 commit comments