Skip to content

Commit 8ec272f

Browse files
committed
Merge pull request godotengine#92519 from mihe/stop-xcframework-embed
Prevent static XCFramework bundles from being embedded on iOS
2 parents adbc4b0 + b6e5e16 commit 8ec272f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

platform/ios/export/export_plugin.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,12 @@ void EditorExportPlatformIOS::_add_assets_to_project(const String &p_out_dir, co
13701370

13711371
type = "wrapper.framework";
13721372
} else if (asset.exported_path.ends_with(".xcframework")) {
1373-
if (asset.should_embed) {
1373+
int total_libs = 0;
1374+
int static_libs = 0;
1375+
int dylibs = 0;
1376+
int frameworks = 0;
1377+
_check_xcframework_content(p_out_dir.path_join(asset.exported_path), total_libs, static_libs, dylibs, frameworks);
1378+
if (asset.should_embed && static_libs != total_libs) {
13741379
additional_asset_info_format += "$framework_id = {isa = PBXBuildFile; fileRef = $ref_id; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };\n";
13751380
framework_id = (++current_id).str();
13761381
pbx_embeded_frameworks += framework_id + ",\n";

0 commit comments

Comments
 (0)