Skip to content

Commit b6e5e16

Browse files
committed
Prevent static XCFramework bundles from being embedded on iOS
1 parent 8bf8f41 commit b6e5e16

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
@@ -1332,7 +1332,12 @@ void EditorExportPlatformIOS::_add_assets_to_project(const String &p_out_dir, co
13321332

13331333
type = "wrapper.framework";
13341334
} else if (asset.exported_path.ends_with(".xcframework")) {
1335-
if (asset.should_embed) {
1335+
int total_libs = 0;
1336+
int static_libs = 0;
1337+
int dylibs = 0;
1338+
int frameworks = 0;
1339+
_check_xcframework_content(p_out_dir.path_join(asset.exported_path), total_libs, static_libs, dylibs, frameworks);
1340+
if (asset.should_embed && static_libs != total_libs) {
13361341
additional_asset_info_format += "$framework_id = {isa = PBXBuildFile; fileRef = $ref_id; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };\n";
13371342
framework_id = (++current_id).str();
13381343
pbx_embeded_frameworks += framework_id + ",\n";

0 commit comments

Comments
 (0)