Skip to content

Commit

Permalink
Merge pull request SwiftGit2#69 from mattrubin/xcode-8.2
Browse files Browse the repository at this point in the history
Xcode 8.2
  • Loading branch information
mdiep authored Dec 16, 2016
2 parents de0cee0 + 9bae557 commit 0218aa1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: objective-c

osx_image: xcode8.1
osx_image: xcode8.2

sudo: false # Enable container-based builds

Expand Down
11 changes: 10 additions & 1 deletion script/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,21 @@ elif [ "$SCHEME" == "SwiftGit2-iOS" ]; then
echo "*** Prebuilding OpenSSL"
"$SCRIPT_DIR/update_libssl_ios"

echo "*** Creating a simulator for testing..."
# Create a new simulator device and reference it by id to avoid xcodebuild exit status 70 with the following errors:
# "The requested device could not be found because no available devices matched the request."
# "The requested device could not be found because multiple devices matched the request."
SIMULATOR_NAME="Custom Simulator"
DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.iPhone-5
RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.iOS-10-2
DESTINATION_ID=$(xcrun simctl create "$SIMULATOR_NAME" $DEVICE_ID $RUNTIME_ID)

echo "*** Building and testing $SCHEME..."
echo

xcodebuild -workspace "$XCWORKSPACE" \
-scheme "$SCHEME" \
-destination "platform=iOS Simulator,name=iPhone 5" \
-destination "id=$DESTINATION_ID" \
-sdk iphonesimulator \
${XCODE_OPTIONS[*]} \
build test \
Expand Down

0 comments on commit 0218aa1

Please sign in to comment.