diff options
author | Sergio Campamá <kaipi@google.com> | 2016-06-20 10:44:38 -0700 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-06-20 13:44:38 -0400 |
commit | 1a5333b8c176df60a30d8dce77bb35abdabff905 (patch) | |
tree | 313bc05f4e0050fde11d2c409f60312ad128d37f /objectivec/Tests | |
parent | 4f93098eb35b4868543b73d6023b07cb169c5a3a (diff) | |
download | protobuf-1a5333b8c176df60a30d8dce77bb35abdabff905.tar.gz protobuf-1a5333b8c176df60a30d8dce77bb35abdabff905.tar.bz2 protobuf-1a5333b8c176df60a30d8dce77bb35abdabff905.zip |
Adds destination flag to xcodebuild to avoid possible flake errors (#1697)
Adds destination flag to xcodebuild to avoid possible flake errors
Diffstat (limited to 'objectivec/Tests')
-rwxr-xr-x | objectivec/Tests/CocoaPods/run_tests.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/objectivec/Tests/CocoaPods/run_tests.sh b/objectivec/Tests/CocoaPods/run_tests.sh index 749f413c..6d3e12be 100755 --- a/objectivec/Tests/CocoaPods/run_tests.sh +++ b/objectivec/Tests/CocoaPods/run_tests.sh @@ -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! |