1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[apple embedded] Replace individual iOS/visionOS Xcode templates by Apple embedded template

This commit is contained in:
Ricardo Sanchez-Saez
2025-06-30 20:02:21 -07:00
parent 3defc856b0
commit 6d9983e958
55 changed files with 609 additions and 1197 deletions

View File

@@ -199,7 +199,7 @@ def generate_bundle_apple_embedded(platform, framework_dir, framework_dir_sim, u
dbg_target_bin_sim = lipo(bin_dir + "/" + dbg_prefix, ".simulator" + extra_suffix + ".a")
# Assemble Xcode project bundle.
app_dir = env.Dir("#bin/" + platform + "_xcode").abspath
templ = env.Dir("#misc/dist/" + platform + "_xcode").abspath
templ = env.Dir("#misc/dist/apple_embedded_xcode").abspath
if os.path.exists(app_dir):
shutil.rmtree(app_dir)
shutil.copytree(templ, app_dir)
@@ -226,6 +226,14 @@ def generate_bundle_apple_embedded(platform, framework_dir, framework_dir_sim, u
app_dir + "/libgodot." + platform + ".debug.xcframework/" + framework_dir_sim + "/libgodot.a",
)
# Remove other platform xcframeworks
for entry in os.listdir(app_dir):
if entry.startswith("libgodot.") and entry.endswith(".xcframework"):
parts = entry.split(".")
if len(parts) >= 3 and parts[1] != platform:
full_path = os.path.join(app_dir, entry)
shutil.rmtree(full_path)
if use_mkv:
mvk_path = detect_mvk(env, "ios-arm64")
if mvk_path != "":