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
   const scheme = release ? `playground_release` : `playground`;
7
   const scheme = release ? `playground_release` : `playground`;
8
   const conf = release ? `Release` : `Debug`;
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
             -scheme ${scheme}
13
             -scheme ${scheme}
14
             -project playground.xcodeproj
14
             -project playground.xcodeproj
15
             -sdk iphonesimulator
15
             -sdk iphonesimulator

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

5
 
5
 
6
 function run() {
6
 function run() {
7
   const conf = release ? `Release` : `Debug`;
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
             -scheme "ReactNativeNavigation"
12
             -scheme "ReactNativeNavigation"
12
             -project playground.xcodeproj
13
             -project playground.xcodeproj
13
             -sdk iphonesimulator
14
             -sdk iphonesimulator
14
             -configuration ${conf}
15
             -configuration ${conf}
15
             -derivedDataPath ./DerivedData/playground
16
             -derivedDataPath ./DerivedData/playground
16
             ONLY_ACTIVE_ARCH=YES`);
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
             -scheme "ReactNativeNavigation"
22
             -scheme "ReactNativeNavigation"
21
             -project playground.xcodeproj
23
             -project playground.xcodeproj
22
             -sdk iphonesimulator
24
             -sdk iphonesimulator