From 2281ba469264ab8a7605955ae511b795d37d371e Mon Sep 17 00:00:00 2001 From: Dimitre Date: Thu, 27 Mar 2025 20:28:37 -0300 Subject: [PATCH] framework to copy phase --- commandLine/src/defines.h | 4 ++-- commandLine/src/projects/xcodeProject.cpp | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/commandLine/src/defines.h b/commandLine/src/defines.h index 3b22c6f4..92e3fe42 100644 --- a/commandLine/src/defines.h +++ b/commandLine/src/defines.h @@ -1,5 +1,5 @@ -#define OFPROJECTGENERATOR_MAJOR_VERSION "0" -#define OFPROJECTGENERATOR_MINOR_VERSION "99" +#define OFPROJECTGENERATOR_MAJOR_VERSION "1" +#define OFPROJECTGENERATOR_MINOR_VERSION "0" #define OFPROJECTGENERATOR_PATCH_VERSION "0" #define PG_VERSION (OFPROJECTGENERATOR_MAJOR_VERSION "." OFPROJECTGENERATOR_MINOR_VERSION "." OFPROJECTGENERATOR_PATCH_VERSION) diff --git a/commandLine/src/projects/xcodeProject.cpp b/commandLine/src/projects/xcodeProject.cpp index dd41317d..2206a7bb 100644 --- a/commandLine/src/projects/xcodeProject.cpp +++ b/commandLine/src/projects/xcodeProject.cpp @@ -790,8 +790,13 @@ string xcodeProject::addFile(const fs::path & path, const fs::path & folder, con addCommand("Add :objects:" + copyBundleResourcesUUID + ":files: string " + buildUUID); } -// if (fp.copyFilesBuildPhase) { -// // If we are going to add xcframeworks to copy files -> destination frameworks, we should include here + if (fp.copyFilesBuildPhase) { + // // If we are going to add xcframeworks to copy files -> destination frameworks, we should include here + if (path.extension() == ".framework") { + addCommand("# ---- copyPhase Frameworks " + buildUUID); + addCommand("Add :objects:E4C2427710CC5ABF004149E2:files: string " + buildUUID); + } + } // // if (path.extension() == ".framework" || path.extension() == ".xcframework") { // // This now includes both .framework and .xcframework // if (fileType == "wrapper.framework" || fileType == ".xcframework") {