|
@@ -16,12 +16,18 @@ function buildProjForDetox() {
|
16
|
16
|
|
17
|
17
|
shellUtils.exec.execSync(`./scripts/detoxDebugFix.rb ${release ? '' : 'debug'}`);
|
18
|
18
|
|
19
|
|
- shellUtils.exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
|
|
19
|
+ const cmd = `RCT_NO_LAUNCH_PACKAGER=true
|
20
|
20
|
cd ios && xcodebuild
|
21
|
21
|
-scheme ${scheme} build
|
22
|
22
|
-project playground.xcodeproj
|
23
|
23
|
-sdk iphonesimulator
|
24
|
|
- -derivedDataPath ./DerivedData/playground`);
|
|
24
|
+ -derivedDataPath ./DerivedData/playground`;
|
|
25
|
+
|
|
26
|
+ if (shellUtils.exec.execSyncRead(`which xcpretty`)) {
|
|
27
|
+ shellUtils.exec.execSync(`${cmd} | xcpretty && exit ${PIPESTATUS[0]}`);
|
|
28
|
+ } else {
|
|
29
|
+ shellUtils.exec.execSync(`${cmd}`);
|
|
30
|
+ }
|
25
|
31
|
}
|
26
|
32
|
|
27
|
33
|
function e2e() {
|