herzbube / littlego

Little Go. An iOS application that lets you play the game of Go on the iPhone or iPad.
https://littlego.herzbube.ch/
Apache License 2.0
138 stars 53 forks source link

Use latest iOS SDK in 3rd party build script #351

Closed dingbat closed 3 years ago

dingbat commented 3 years ago

./script/build-3rdparty-software.sh does not work on Xcode 12.4 / iOS SDK 14.4 (as you mentioned here https://github.com/herzbube/littlego/issues/346#issuecomment-770309284).

This simply changes IPHONEOS_BASESDK_VERSION and IPHONE_SIMULATOR_BASESDK_VERSION in build-env.sh to dynamically use the user's latest SDK version, using xcrun --sdk iphoneos --show-sdk-version. Took this from some of the other scripts around.

Also added an option to the script (-v for "verbose" mode) to be able to see the build output from the scripts - this was useful for me to be able to debug what was failing.

herzbube commented 3 years ago

In build-3rdparty-software.sh there's this line:

echo "$SCRIPT_NAME: No arguments supported."

Could you please change this so that it shows a usage line with the new -q option?

dingbat commented 3 years ago

Good catch @herzbube, updated.