Skip to content

Commit

Permalink
Build examples on Xcode 11.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amorde committed Mar 1, 2020
1 parent f9d3354 commit 4d21f1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.0
jobs:
build:
macos:
xcode: "10.2.0"
xcode: "11.3.1"
shell: /bin/bash --login -eo pipefail
steps:
- checkout
Expand Down
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ begin

project = Xcodeproj::Project.open(project_path)
target = project.targets.first
scheme_target = project.targets.find { |t| t.name == scheme_name }
target = scheme_target unless scheme_target.nil?

xcodebuild_args = %W(
xcodebuild -workspace #{workspace_path} -scheme #{scheme_name} clean #{build_action}
Expand All @@ -304,8 +306,10 @@ begin
when :osx
execute_command(*xcodebuild_args)
when :ios
xcodebuild_args.concat ['ONLY_ACTIVE_ARCH=NO', '-destination', 'platform=iOS Simulator,name=iPhone Xs']
xcodebuild_args.concat ['ONLY_ACTIVE_ARCH=NO', '-destination', 'platform=iOS Simulator,name=iPhone 11 Pro']
execute_command(*xcodebuild_args)
when :watchos
xcodebuild_args.concat ['ONLY_ACTIVE_ARCH=NO', '-destination', 'platform=watchOS Simulator,name=Apple Watch Series 5 - 40mm']
else
raise "Unknown platform #{platform}"
end
Expand Down

0 comments on commit 4d21f1c

Please sign in to comment.