iphonesim: use ios_simulator_version_min

The linker expects ios_simulator_version_min rather than -iphoneos_version_min
when targeting the iOS simulator platform. Fixes compilation with Xcode 11
toolchains, which is more strict about this.

(cherry picked from commit 3263e12a3e)
This commit is contained in:
Jonas Maebe 2021-10-27 20:47:39 +02:00
parent 29d0a2a70a
commit 383c4a8e04

View File

@ -365,7 +365,10 @@ implementation
end
else if iPhoneOSVersionMin<>'' then
begin
LinkRes.Add('-iphoneos_version_min');
if target_info.system in [system_i386_iphonesim,system_x86_64_iphonesim] then
LinkRes.Add('-ios_simulator_version_min')
else
LinkRes.Add('-iphoneos_version_min');
LinkRes.Add(iPhoneOSVersionMin);
end;