godot/platform/iphone
Alexandru Croitor 3624644630 Pass -isysroot to compiler / linker when doing a macOS build
Previously the compiler would use system headers located at
/System/Library/Frameworks, which could result in compilation failures
due to the headers not always being up-to-date in regards to the
latest installed macOS SDK headers that come with Xcode.

Fix the issue by passing the SDK path via the -isysroot option to the
compiler and linker invocations.

If no custom SDK path is given, the build system queries the SDK path
via xcrun --show-sdk-path, which returns something similar to

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
 /Developer/SDKs/MacOSX.sdk/

Querying via xcrun is now also done for iphone (and simulator)
platforms as well.

Here is an example of a compilation failure message due to outdated
headers:

platform/osx/os_osx.mm:1421:41: error: use of undeclared identifier 'NSAppKitVersionNumber10_12'; did you mean 'NSAppKitVersionNumber'?
                                if (floor(NSAppKitVersionNumber) >= NSAppKitVersionNumber10_12) {
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    NSAppKitVersionNumber
/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:26:28: note: 'NSAppKitVersionNumber' declared here
2018-08-27 18:01:05 +02:00
..
export Make some debug prints verbose-only, remove others 2018-08-24 14:59:01 +02:00
globals Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
app_delegate.h Resume audio on iOS after phone call or alarm 2018-05-07 15:48:46 +07:00
app_delegate.mm Fix keep screen on property path for Android/iOS/UWP 2018-07-17 18:45:57 +09:00
detect.py Pass -isysroot to compiler / linker when doing a macOS build 2018-08-27 18:01:05 +02:00
game_center.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
game_center.mm Style: Format code with clang-format 6.0.1 2018-07-18 16:27:03 +02:00
gl_view.h iPhone X support and iOS-related fixes 2018-04-11 14:53:24 +07:00
gl_view.mm Implement universal translation of touch to mouse 2018-04-30 19:03:38 +02:00
godot_iphone.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
icloud.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
icloud.mm Add missing return statements (iOS and server). 2018-02-25 01:11:03 +02:00
in_app_store.h add restore purchases for iOS 2018-02-22 14:28:37 -05:00
in_app_store.mm Provide error details when in-app purchase fails 2018-04-19 21:04:20 +07:00
ios.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
ios.mm Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
logo.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
main.m Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
os_iphone.cpp Fall back to GLES2 if GLES3 is not working 2018-08-26 16:40:46 +02:00
os_iphone.h -Project/Editor settings now use new inspector 2018-07-19 19:02:04 -03:00
platform_config.h fix iOS build - error due to GLES2 missing include (with the advice from bruvzg[m] on irc) 2018-03-13 10:42:23 +01:00
platform_refcount.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
power_iphone.cpp Fix UpdatePowerInfo method implementation in PowerIphone class 2018-03-31 02:52:37 +03:00
power_iphone.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub Fix IPhone and OSX cross compilation 2018-03-28 19:08:20 +02:00
sem_iphone.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sem_iphone.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
view_controller.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
view_controller.mm Respect window/handheld/orientation setting in iOS 2018-07-01 22:08:37 +03:00