Skip to content

Commit

Permalink
Adds destination flag to xcodebuild to avoid possible flake errors (p…
Browse files Browse the repository at this point in the history
…rotocolbuffers#1697)

Adds destination flag to xcodebuild to avoid possible flake errors
  • Loading branch information
sergiocampama authored and thomasvl committed Jun 20, 2016
1 parent 4f93098 commit 1a5333b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion objectivec/Tests/CocoaPods/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ do_test() {
# For iOS, if the SDK is not provided it tries to use iphoneos, and the test
# fail on Travis since those machines don't have a Code Signing identity.
if [[ "${TEST_NAME}" == iOS* ]] ; then
xcodebuild_args+=( "-sdk" "iphonesimulator" "ONLY_ACTIVE_ARCH=NO" )
# Apparently the destination flag is required to avoid "Unsupported architecture"
# errors.
xcodebuild_args+=(
-sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
-destination "platform=iOS Simulator,name=iPad 2,OS=9.3"
)
fi

# Do the work!
Expand Down

0 comments on commit 1a5333b

Please sign in to comment.