aboutsummaryrefslogtreecommitdiffhomepage
path: root/objectivec/Tests/CocoaPods/run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'objectivec/Tests/CocoaPods/run_tests.sh')
-rwxr-xr-xobjectivec/Tests/CocoaPods/run_tests.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/objectivec/Tests/CocoaPods/run_tests.sh b/objectivec/Tests/CocoaPods/run_tests.sh
index edf0fe81..749f413c 100755
--- a/objectivec/Tests/CocoaPods/run_tests.sh
+++ b/objectivec/Tests/CocoaPods/run_tests.sh
@@ -119,9 +119,18 @@ do_test() {
# Put the right Podfile in place.
cp -f "Podfile-${TEST_MODE}" "Podfile"
+ xcodebuild_args=( "-workspace" "${TEST_NAME}.xcworkspace" "-scheme" "${TEST_NAME}" )
+
+ # 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" )
+ fi
+
# Do the work!
pod install --verbose
- xcodebuild -workspace "${TEST_NAME}.xcworkspace" -scheme "${TEST_NAME}" build
+
+ xcodebuild "${xcodebuild_args[@]}" build
# Clear the hook and manually run cleanup.
trap - EXIT