Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 2fa91c2

Browse files
committed
Fixed error when building for iOS device with min_ios_version = 12
1 parent 51afb41 commit 2fa91c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

engine/src/deploy_macosx.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ struct load_command {
386386
// MM-2014-09-30: [[ iOS 8 Support ]] Used by iOS 8 simulator builds.
387387
#define LC_MAIN (0x28|LC_REQ_DYLD) /* replacement for LC_UNIXTHREAD */
388388

389+
// PM-2018-10-02: [[ iOS 12 Support ]] Used by iOS device builds when min_version=12
390+
#define LC_BUILD_VERSION 0x32 /* build for platform min OS version */
391+
389392
/*
390393
* A variable length string in a load command is represented by an lc_str
391394
* union. The strings are stored just after the load command structure and
@@ -1047,6 +1050,7 @@ static void swap_load_command(bool p_to_network, uint32_t p_type, load_command*
10471050

10481051
case LC_VERSION_MIN_MACOSX:
10491052
case LC_VERSION_MIN_IPHONEOS:
1053+
case LC_BUILD_VERSION:
10501054
swap_version_min_command(p_to_network, *(version_min_command *)x);
10511055
break;
10521056

@@ -1408,6 +1412,7 @@ template<typename T> bool MCDeployToMacOSXMainBody(const MCDeployParameters& p_p
14081412
case LC_ENCRYPTION_INFO_64:
14091413
case LC_SOURCE_VERSION:
14101414
case LC_MAIN:
1415+
case LC_BUILD_VERSION:
14111416
break;
14121417

14131418
// We rewrite the contents of these commands as appropriate to

0 commit comments

Comments
 (0)