Lines Matching +full:xcode +full:- +full:version
6 set -eu
9 readonly ScriptDir=$(dirname "$(echo $0 | sed -e "s,^\([^/]\),$(pwd)/\1,")")
23 -h, --help
25 -c, --clean
27 -a, --autogen
29 -r, --regenerate-descriptors
32 -j #, --jobs #
34 --core-only
36 --skip-xcode
37 Skip the invoke of Xcode to test the runtime on both iOS and OS X.
38 --skip-xcode-ios
39 Skip the invoke of Xcode to test the runtime on iOS.
40 --skip-xcode-debug
41 Skip the Xcode Debug configuration.
42 --skip-xcode-release
43 Skip the Xcode Release configuration.
44 --skip-xcode-osx | --skip-xcode-macos
45 Skip the invoke of Xcode to test the runtime on OS X.
46 --skip-xcode-tvos
47 Skip the invoke of Xcode to test the runtime on tvOS.
48 --skip-objc-conformance
50 --xcode-quiet
51 Pass -quiet to xcodebuild.
69 if [ ${MAKE_EXIT_STATUS} -ne 0 ]; then
73 set -e
76 NUM_MAKE_JOBS=$(/usr/sbin/sysctl -n hw.ncpu)
77 if [[ "${NUM_MAKE_JOBS}" -lt 2 ]] ; then
94 -h | --help )
98 -c | --clean )
101 -a | --autogen )
104 -r | --regenerate-descriptors )
107 -j | --jobs )
111 --core-only )
114 --skip-xcode )
119 --skip-xcode-ios )
122 --skip-xcode-osx | --skip-xcode-macos)
125 --skip-xcode-tvos )
128 --skip-xcode-debug )
131 --skip-xcode-release )
134 --skip-objc-conformance )
137 --xcode-quiet )
140 -*)
158 if [[ ! -f Makefile ]] ; then
166 CPPFLAGS="-mmacosx-version-min=10.9 -Wunused-const-variable -Wunused-function"
175 -project objectivec/ProtocolBuffers_iOS.xcodeproj
176 -scheme ProtocolBuffers
179 "${XCODEBUILD_CLEAN_BASE_IOS[@]}" -configuration Debug clean
182 "${XCODEBUILD_CLEAN_BASE_IOS[@]}" -configuration Release clean
188 -project objectivec/ProtocolBuffers_OSX.xcodeproj
189 -scheme ProtocolBuffers
192 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Debug clean
195 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Release clean
201 -project objectivec/ProtocolBuffers_tvOS.xcodeproj
202 -scheme ProtocolBuffers
205 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Debug clean
208 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Release clean
215 ./generate_descriptor_proto.sh -j "${NUM_MAKE_JOBS}"
220 wrapped_make -j "${NUM_MAKE_JOBS}"
225 wrapped_make -j "${NUM_MAKE_JOBS}" all
226 wrapped_make -j "${NUM_MAKE_JOBS}" check
229 wrapped_make -j "${NUM_MAKE_JOBS}" test_cpp
234 objectivec/generate_well_known_types.sh --check-only -j "${NUM_MAKE_JOBS}"
244 if ! "${LOCAL_PYTHON}" objectivec/DevTools/pddm.py --dry-run objectivec/*.[hm] objectivec/Tests/*.[…
251 readonly XCODE_VERSION_LINE="$(xcodebuild -version | grep Xcode\ )"
252 readonly XCODE_VERSION="${XCODE_VERSION_LINE/Xcode /}" # drop the prefix.
257 -project objectivec/ProtocolBuffers_iOS.xcodeproj
258 -scheme ProtocolBuffers
261 XCODEBUILD_TEST_BASE_IOS+=( -quiet )
265 # NOTE: Different Xcode have different simulated hardware/os support.
267 [6-8].* )
269 …echo "ERROR: Xcode 9.0 or higher is required to build the test suite, but the library works with X…
272 9.[0-2]* )
274 -destination "platform=iOS Simulator,name=iPhone 4s,OS=8.1" # 32bit
275 -destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
276 # 9.0-9.2 all seem to often fail running destinations in parallel
277 -disable-concurrent-testing
280 9.[3-4]* )
282 # Xcode 9.3 chokes targeting iOS 8.x - http://www.openradar.me/39335367
283 -destination "platform=iOS Simulator,name=iPhone 4s,OS=9.0" # 32bit
284 -destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
286 -disable-concurrent-testing
291 -destination "platform=iOS Simulator,name=iPhone 4s,OS=8.1" # 32bit
292 -destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
295 -disable-concurrent-destination-testing
301 -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" # 64bit
306 echo "ATTENTION: Time to update the simulator targets for Xcode ${XCODE_VERSION}"
313 header "Doing Xcode iOS build/tests - Debug"
314 "${XCODEBUILD_TEST_BASE_IOS[@]}" -configuration Debug test
317 header "Doing Xcode iOS build/tests - Release"
318 "${XCODEBUILD_TEST_BASE_IOS[@]}" -configuration Release test
326 -project objectivec/ProtocolBuffers_OSX.xcodeproj
327 -scheme ProtocolBuffers
329 -destination "platform=OS X,arch=x86_64" # 64bit
332 XCODEBUILD_TEST_BASE_OSX+=( -quiet )
335 [6-8].* )
337 …echo "ERROR: Xcode 9.0 or higher is required to build the test suite, but the library works with X…
342 header "Doing Xcode OS X build/tests - Debug"
343 "${XCODEBUILD_TEST_BASE_OSX[@]}" -configuration Debug test
346 header "Doing Xcode OS X build/tests - Release"
347 "${XCODEBUILD_TEST_BASE_OSX[@]}" -configuration Release test
353 -project objectivec/ProtocolBuffers_tvOS.xcodeproj
354 -scheme ProtocolBuffers
357 [6-9].* )
358 echo "ERROR: Xcode 10.0 or higher is required to build the test suite." 1>&2
363 -destination "platform=tvOS Simulator,name=Apple TV 4K,OS=latest"
368 -destination "platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=latest"
373 echo "ATTENTION: Time to update the simulator targets for Xcode ${XCODE_VERSION}"
380 XCODEBUILD_TEST_BASE_TVOS+=( -quiet )
383 header "Doing Xcode tvOS build/tests - Debug"
384 "${XCODEBUILD_TEST_BASE_TVOS[@]}" -configuration Debug test
387 header "Doing Xcode tvOS build/tests - Release"
388 "${XCODEBUILD_TEST_BASE_TVOS[@]}" -configuration Release test
395 wrapped_make -j "${NUM_MAKE_JOBS}" test_objc