diff --git a/legacy/templates/iphone/PROJ.xcodeproj/project.pbxproj b/legacy/templates/iphone/PROJ.xcodeproj/project.pbxproj index 7741ab46e..61fcca661 100644 --- a/legacy/templates/iphone/PROJ.xcodeproj/project.pbxproj +++ b/legacy/templates/iphone/PROJ.xcodeproj/project.pbxproj @@ -303,6 +303,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = ::if (ENABLE_BITCODE)::YES::else::NO::end::; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", ::foreach frameworkSearchPaths:: "\"::__current__::\"", @@ -355,6 +356,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = ::if (ENABLE_BITCODE)::YES::else::NO::end::; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", ::foreach frameworkSearchPaths:: "\"::__current__::\"", diff --git a/lime/tools/platforms/IOSPlatform.hx b/lime/tools/platforms/IOSPlatform.hx index 0c15db677..6c269f631 100644 --- a/lime/tools/platforms/IOSPlatform.hx +++ b/lime/tools/platforms/IOSPlatform.hx @@ -222,6 +222,7 @@ class IOSPlatform extends PlatformTarget { } + context.ENABLE_BITCODE = (project.config.getFloat ("ios.deployment", 5.1) >= 6); context.IOS_COMPILER = project.config.getString ("ios.compiler", "clang"); context.CPP_BUILD_LIBRARY = project.config.getString ("cpp.buildLibrary", "hxcpp"); diff --git a/templates/iphone/PROJ.xcodeproj/project.pbxproj b/templates/iphone/PROJ.xcodeproj/project.pbxproj index 7741ab46e..61fcca661 100644 --- a/templates/iphone/PROJ.xcodeproj/project.pbxproj +++ b/templates/iphone/PROJ.xcodeproj/project.pbxproj @@ -303,6 +303,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = ::if (ENABLE_BITCODE)::YES::else::NO::end::; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", ::foreach frameworkSearchPaths:: "\"::__current__::\"", @@ -355,6 +356,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = ::if (ENABLE_BITCODE)::YES::else::NO::end::; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", ::foreach frameworkSearchPaths:: "\"::__current__::\"",