From 2b72a9151d2a4ebbbaf9b5256b17cba6bc8b85eb Mon Sep 17 00:00:00 2001 From: Yoshi Sugawara Date: Wed, 19 Sep 2018 22:09:29 -1000 Subject: [PATCH] Comment out unsupported code for iOS for now, so that it does not crash on startup; fix for building in Xcode 10 --- gfx/drivers_context/macos_ctx.m | 3 ++- pkg/apple/code-sign-cores.sh | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_context/macos_ctx.m b/gfx/drivers_context/macos_ctx.m index c69301a4f9..329fc062cf 100644 --- a/gfx/drivers_context/macos_ctx.m +++ b/gfx/drivers_context/macos_ctx.m @@ -299,7 +299,8 @@ static void *cocoagl_gfx_ctx_init(video_frame_info_t *video_info, void *video_dr { #if defined(HAVE_COCOATOUCH) case GFX_CTX_OPENGL_ES_API: - [apple_platform setViewType:APPLE_VIEW_TYPE_OPENGL_ES]; + // setViewType is not (yet?) defined for iOS + // [apple_platform setViewType:APPLE_VIEW_TYPE_OPENGL_ES]; break; #elif defined(HAVE_COCOA) case GFX_CTX_OPENGL_API: diff --git a/pkg/apple/code-sign-cores.sh b/pkg/apple/code-sign-cores.sh index b2f2402a7f..21c36146e9 100755 --- a/pkg/apple/code-sign-cores.sh +++ b/pkg/apple/code-sign-cores.sh @@ -43,7 +43,9 @@ echo "${ITEMS}" # Change the Internal Field Separator (IFS) so that spaces in paths will not cause problems below. SAVED_IFS=$IFS -IFS=$(echo -en "\n\b") +# Doing IFS=$(echo -en "\n") does not work on Xcode 10 for some reason +IFS=" +" # Loop through all items. for ITEM in $ITEMS;