用的黑苹果,又是N卡,系统卡在10.13.6上,能装的xcode最高版是10.2
但是xamarin不断更新版本,对xcode的要求也越来越高
最近的xamarin.ios 13.10居然要求xcode11.3了
换机器是不可能换的,这辈子也不会换白苹果
升级系统又不会,只能想办法绕过去了

仔细看xamarin.ios build log,发现对xcode版本的要求只是warning,真正需要的是高版本的iossdk
于是试着手动下载xcode11.3后,将其内的sdk13.2复制到老版xcode里对应的目录下,再运行build居然就通过了!

记录备忘一下,总共有3个位置:

  • ios真机sdk, 编译用

/Applications/Xcode10.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/

  • ios模拟器sdk, 编译用

/Applications/Xcode10.2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/

  • ios设备支持文件,调试用

/Applications/Xcode10.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2/


高版本xcode的下载地址:(一般需要先登录apple开发者账号) > https://download.developer.apple.com/Developer_Tools/Xcode_11.3/Xcode_11.3.xip