Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
::ADDL_PBX_COPY_FILES_BUILD_PHASE::
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
1D6058910D05DD3D006BFB54 /* ::APP_TITLE::.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "::APP_TITLE::.app"; sourceTree = BUILT_PRODUCTS_DIR; };
1E2E17A5131E8B5D0048F3C7 /* ::APP_FILE::/assets */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "::APP_FILE::/assets"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -179,7 +183,7 @@
buildPhases = (
1D60588D0D05DD3D006BFB54 /* Resources */,
1D60588E0D05DD3D006BFB54 /* Sources */,
1D60588F0D05DD3D006BFB54 /* Frameworks */,
1D60588F0D05DD3D006BFB54 /* Frameworks */,::ADDL_PBX_BUILD_PHASE_LIST::
);
buildRules = (
);
Expand Down Expand Up @@ -370,6 +374,7 @@
GCC_PREFIX_HEADER = "::APP_FILE::/::APP_FILE::-Prefix.pch";
INFOPLIST_FILE = "::APP_FILE::/::APP_FILE::-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = ::DEPLOYMENT::;
::ADDL_PBX_RUNPATH_SEARCH_PATHS::
"LIBRARY_SEARCH_PATHS[arch=arm64]" = (
"$(inherited)",
"\"$(SRCROOT)/::APP_FILE::/lib/arm64-debug\"",
Expand Down Expand Up @@ -428,6 +433,7 @@
GCC_PREFIX_HEADER = "::APP_FILE::/::APP_FILE::-Prefix.pch";
INFOPLIST_FILE = "::APP_FILE::/::APP_FILE::-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = ::DEPLOYMENT::;
::ADDL_PBX_RUNPATH_SEARCH_PATHS::
"LIBRARY_SEARCH_PATHS[arch=arm64]" = (
"$(inherited)",
"\"$(SRCROOT)/::APP_FILE::/lib/arm64\"",
Expand Down
19 changes: 19 additions & 0 deletions tools/platforms/IOSPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ class IOSPlatform extends PlatformTarget
context.ADDL_PBX_FILE_REFERENCE = "";
context.ADDL_PBX_FRAMEWORKS_BUILD_PHASE = "";
context.ADDL_PBX_FRAMEWORK_GROUP = "";
context.ADDL_PBX_COPY_FILES_BUILD_PHASE = "";
context.ADDL_PBX_BUILD_PHASE_LIST = "";
context.ADDL_PBX_RUNPATH_SEARCH_PATHS = "";

context.frameworkSearchPaths = [];

Expand Down Expand Up @@ -401,6 +404,22 @@ class IOSPlatform extends PlatformTarget
+ "\"; name = \"" + name + "\"; path = \"" + path + "\"; sourceTree = SDKROOT; };\n";
context.ADDL_PBX_FRAMEWORKS_BUILD_PHASE += " " + frameworkID + " /* " + name + " in Frameworks */,\n";
context.ADDL_PBX_FRAMEWORK_GROUP += " " + fileID + " /* " + name + " */,\n";

if (dependency.embed)
{
var copyID = StringTools.getUniqueID();
var copyFileID = "37E717FD2D8D9CDF" + copyID;
var copyPhaseID = "37E717FC2D8D9CCB" + copyID;
context.ADDL_PBX_BUILD_FILE += " " + copyFileID + " /* " + name + " in CopyFiles */ = {isa = PBXBuildFile; fileRef = " + fileID + " /* "
+ name + " */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n";

context.ADDL_PBX_COPY_FILES_BUILD_PHASE += " " + copyPhaseID + " /* CopyFiles */ = {\n isa = PBXCopyFilesBuildPhase;\n buildActionMask = 2147483647;\n dstPath = \"\";\n dstSubfolderSpec = 10;\n files = (\n "
+ copyFileID + " /* " + name + " in CopyFiles */,\n );\n runOnlyForDeploymentPostprocessing = 0;\n };\n";

context.ADDL_PBX_BUILD_PHASE_LIST += "\n " + copyPhaseID + " /* CopyFiles */,";

context.ADDL_PBX_RUNPATH_SEARCH_PATHS = "LD_RUNPATH_SEARCH_PATHS = (\n\"$(LD_RUNPATH_SEARCH_PATHS_$(IS_MACCATALYST))\",\n\"@executable_path/Frameworks\",\n);";
}
}
}

Expand Down