@@ -411,33 +411,19 @@ jobs:
411411 run : |
412412 set -euo pipefail
413413
414- PLATFORM_PACKAGE_JSON="$(node -p "require.resolve('@react-native-harness/platform-apple/package.json')")"
415- PLATFORM_APPLE_ROOT="$(dirname "$PLATFORM_PACKAGE_JSON")"
416-
417- DERIVED_DATA="apps/simple-camera/ios/build/devicefarm/HarnessXCTestAgentDerivedData"
414+ PROJECT_ROOT="apps/simple-camera"
415+ DERIVED_DATA="$PROJECT_ROOT/.harness/xctest-agent/device"
418416 IPA_PATH="apps/simple-camera/ios/build/devicefarm/HarnessXCTestAgentUITests.ipa"
419- PROJECT_PATH="$PLATFORM_APPLE_ROOT/xctest-agent/HarnessXCTestAgent.xcodeproj"
420-
421417 PAYLOAD_ROOT="$(mktemp -d)"
422418 PAYLOAD_DIR="$PAYLOAD_ROOT/Payload"
423419
424420 rm -rf "$DERIVED_DATA" "$IPA_PATH"
425- mkdir -p "$DERIVED_DATA" "$ (dirname "$IPA_PATH")" "$PAYLOAD_DIR"
421+ mkdir -p "$(dirname "$IPA_PATH")" "$PAYLOAD_DIR"
426422
427- xcodebuild \
428- -project "$PROJECT_PATH" \
429- -scheme HarnessXCTestAgent \
430- -configuration Debug \
431- -sdk iphoneos \
432- -destination generic/platform=iOS \
433- -derivedDataPath "$DERIVED_DATA" \
434- -showBuildTimingSummary \
435- build-for-testing \
436- CODE_SIGNING_ALLOWED=NO \
437- CODE_SIGNING_REQUIRED=NO \
438- CODE_SIGN_IDENTITY= \
439- DEVELOPMENT_TEAM= \
440- COMPILER_INDEX_STORE_ENABLE=NO | xcbeautify --renderer github-actions
423+ (
424+ cd "$PROJECT_ROOT"
425+ node ../../node_modules/react-native-harness/bin.js xctest build --destination device
426+ )
441427
442428 RUNNER_APP="$(find "$DERIVED_DATA/Build/Products/Debug-iphoneos" -maxdepth 1 -type d -name '*UITests-Runner.app' -print -quit)"
443429 test -n "$RUNNER_APP"
0 commit comments