Browse Source

RCT_NO_LAUNCH_PACKAGER=true will solves port problems

Daniel Zlotin 7 years ago
parent
commit
ba186d648c
2 changed files with 11 additions and 9 deletions
  1. 3
    3
      scripts/test.e2e.ios.js
  2. 8
    6
      scripts/test.unit.ios.js

+ 3
- 3
scripts/test.e2e.ios.js View File

@@ -7,9 +7,9 @@ function buildProjForDetox() {
7 7
   const scheme = release ? `playground_release` : `playground`;
8 8
   const conf = release ? `Release` : `Debug`;
9 9
 
10
-  exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
11
-            cd ./playground/ios && xcodebuild
12
-            build
10
+  exec.execSync(`cd ./playground/ios &&
11
+            RCT_NO_LAUNCH_PACKAGER=true
12
+            xcodebuild build
13 13
             -scheme ${scheme}
14 14
             -project playground.xcodeproj
15 15
             -sdk iphonesimulator

+ 8
- 6
scripts/test.unit.ios.js View File

@@ -5,18 +5,20 @@ const release = _.includes(process.argv, 'release');
5 5
 
6 6
 function run() {
7 7
   const conf = release ? `Release` : `Debug`;
8
-  exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
9
-          cd ./playground/ios && xcodebuild
10
-            build build-for-testing
8
+
9
+  exec.execSync(`cd ./playground/ios &&
10
+            RCT_NO_LAUNCH_PACKAGER=true
11
+            xcodebuild build build-for-testing
11 12
             -scheme "ReactNativeNavigation"
12 13
             -project playground.xcodeproj
13 14
             -sdk iphonesimulator
14 15
             -configuration ${conf}
15 16
             -derivedDataPath ./DerivedData/playground
16 17
             ONLY_ACTIVE_ARCH=YES`);
17
-  exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
18
-          cd ./playground/ios && xcodebuild
19
-            test-without-building
18
+
19
+  exec.execSync(`cd ./playground/ios &&
20
+            RCT_NO_LAUNCH_PACKAGER=true
21
+            xcodebuild test-without-building
20 22
             -scheme "ReactNativeNavigation"
21 23
             -project playground.xcodeproj
22 24
             -sdk iphonesimulator