Skip to content

Commit

Permalink
Xcode 11.3 support (#426)
Browse files Browse the repository at this point in the history
Since Xcode 11.3 is packed with SDK 13.2, we need another constant to
  indicate base SDK.

Co-authored-by: Shawn Chen <swchen@swchen-md1.linkedin.biz>
  • Loading branch information
chenxiao0228 and Shawn Chen authored Mar 24, 2020
1 parent e1627ea commit c59e6a4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 11.2
run: sudo xcode-select -s /Applications/Xcode_11.2.app
- name: Select Xcode 11.3
run: sudo xcode-select -s /Applications/Xcode_11.3.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh instance_tests

Expand All @@ -22,8 +22,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 11.2
run: sudo xcode-select -s /Applications/Xcode_11.2.app
- name: Select Xcode 11.3
run: sudo xcode-select -s /Applications/Xcode_11.3.app
- name: Run BP tests
run: ./scripts/bluepill.sh runner_tests
- name: Build and Package
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
steps:
# actions/checkout@v2 but we use the sha because tags can be rewritten in git
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Select Xcode 11.2
run: sudo xcode-select -s /Applications/Xcode_11.2.app
- name: Select Xcode 11.3
run: sudo xcode-select -s /Applications/Xcode_11.3.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh instance_tests

Expand All @@ -27,8 +27,8 @@ jobs:
steps:
# actions/checkout@v2 but we use the sha because tags can be rewritten in git
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Select Xcode 11.2
run: sudo xcode-select -s /Applications/Xcode_11.2.app
- name: Select Xcode 11.3
run: sudo xcode-select -s /Applications/Xcode_11.3.app
- name: Run BP tests
run: ./scripts/bluepill.sh runner_tests
- name: Build and Package
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
steps:
# actions/checkout@v2 but we use the sha because tags can be rewritten in git
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Select Xcode 11.2
run: sudo xcode-select -s /Applications/Xcode_11.2.app
- name: Select Xcode 11.3
run: sudo xcode-select -s /Applications/Xcode_11.3.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh instance_tests

Expand All @@ -28,8 +28,8 @@ jobs:
- name: Report event trigger data
run: |
echo "Event ${{ github.event_name }}, ref: ${{ github.ref }}"
- name: Select Xcode 11.2
run: sudo xcode-select -s /Applications/Xcode_11.2.app
- name: Select Xcode 11.3
run: sudo xcode-select -s /Applications/Xcode_11.3.app
- name: Run Bluepill tests
run: ./scripts/bluepill.sh runner_tests
- name: Build Bluepill
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ A full list supported options are listed here.

## Requirements

Bluepill only works with **Xcode 11.2**. If you're looking for old Xcode support, please check out the other branches:
Bluepill only works with **Xcode 11.3**. If you're looking for old Xcode support, please check out the other branches:

* [Xcode-8](https://github.com/linkedin/bluepill/tree/xcode8)
* [Xcode-9.0](https://github.com/linkedin/bluepill/tree/xcode-9.0)
Expand All @@ -108,6 +108,7 @@ Bluepill only works with **Xcode 11.2**. If you're looking for old Xcode support
* [Xcode-10.3](https://github.com/linkedin/bluepill/tree/xcode-10.3)
* [Xcode-11.0](https://github.com/linkedin/bluepill/tree/xcode-11.0)
* [Xcode-11.1](https://github.com/linkedin/bluepill/tree/xcode-11.1)
* [Xcode-11.2](https://github.com/linkedin/bluepill/tree/xcode-11.2)

## Acknowledgement

Expand Down
4 changes: 2 additions & 2 deletions bluepill/tests/BPIntegrationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ - (void)testTwoBPInstancesWithXCTestRunFile {
config.numSims = @2;
config.testBundlePath = nil;
config.testRunnerAppPath = nil;
NSString *runtime = [[NSString stringWithUTF8String:BP_DEFAULT_RUNTIME] stringByReplacingOccurrencesOfString:@"iOS " withString:@""];
NSString *xcTestRunFile = [NSString stringWithFormat:@"Build/Products/BPSampleApp_iphonesimulator%@-x86_64.xctestrun", runtime];
NSString *baseSDK = [[NSString stringWithUTF8String:BP_DEFAULT_BASE_SDK] stringByReplacingOccurrencesOfString:@"iOS " withString:@""];
NSString *xcTestRunFile = [NSString stringWithFormat:@"Build/Products/BPSampleApp_iphonesimulator%@-x86_64.xctestrun", baseSDK];
config.xcTestRunPath = [[[BPTestHelper derivedDataPath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:xcTestRunFile];
NSError *err;
[config validateConfigWithError:&err];
Expand Down
10 changes: 6 additions & 4 deletions bp/src/BPConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@

#import <Foundation/Foundation.h>

#define BP_DEFAULT_RUNTIME "iOS 13.2"
#pragma mark - Version Constants
#define BP_DEFAULT_XCODE_VERSION "11.3"
#define BP_DEFAULT_RUNTIME "iOS 13.3"
#define BP_DEFAULT_BASE_SDK "13.2"

#define BP_DEFAULT_DEVICE_TYPE "iPhone 8"
#define BP_TM_PROTOCOL_VERSION 17

#define BP_DAEMON_PROTOCOL_VERSION 26
#define BP_DEFAULT_XCODE_VERSION "11.2"
#define BP_MAX_PROCESSES_PERCENT 0.75
#define BP_TM_PROTOCOL_VERSION 17


extern NSString * const kCFBundleIdentifier;
extern NSString * const kOptionsArgumentsKey;
extern NSString * const kOptionsEnvironmentKey;
Expand Down

0 comments on commit c59e6a4

Please sign in to comment.