Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 4db90d2

Browse files
Fix iOS tests after migration to react-native 0.71 (#2479)
Remove dependence of CFBundleShortVersionString from project.pbxproj
1 parent 95a471b commit 4db90d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ class RNIOS extends Platform.IOS implements RNPlatform {
187187
"<key>CodePushDeploymentKey</key>\n\t<string>" + this.getDefaultDeploymentKey() + "</string>\n\t<key>CodePushServerURL</key>\n\t<string>" + this.getServerUrl() + "</string>\n\t</dict>\n</plist>"))
188188
// Set the app version to 1.0.0 instead of 1.0 in the Info.plist
189189
.then(TestUtil.replaceString.bind(undefined, infoPlistPath, "1.0", "1.0.0"))
190+
// Remove dependence of CFBundleShortVersionString from project.pbxproj
191+
.then(TestUtil.replaceString.bind(undefined, infoPlistPath, "\\$\\(MARKETING_VERSION\\)", "1.0.0"))
190192
// Fix the linker flag list in project.pbxproj (pod install adds an extra comma)
191193
.then(TestUtil.replaceString.bind(undefined, path.join(iOSProject, TestConfig.TestAppName + ".xcodeproj", "project.pbxproj"),
192194
"\"[$][(]inherited[)]\",\\s*[)];", "\"$(inherited)\"\n\t\t\t\t);"))

0 commit comments

Comments
 (0)