@@ -598,7 +598,10 @@ void xcodeProject::addFramework(string name, string path, string folder){
598
598
599
599
// we add the second to a final build phase for copying the framework into app. we need to make sure we *don't* do this for system frameworks
600
600
601
- if (folder.size () != 0 ){
601
+
602
+
603
+ if (folder.size () != 0 && !ofIsStringInString (path, " /System/Library/Frameworks" )
604
+ && target != " ios" ){
602
605
603
606
string buildUUID2 = generateUUID (name + " -build2" );
604
607
pbxbuildfile = string (PBXBuildFile);
@@ -607,8 +610,6 @@ void xcodeProject::addFramework(string name, string path, string folder){
607
610
fileRefDoc.load_buffer (pbxbuildfile.c_str (), strlen (pbxbuildfile.c_str ()));
608
611
doc.select_single_node (" /plist[1]/dict[1]/dict[2]" ).node ().prepend_copy (fileRefDoc.first_child ().next_sibling ()); // UUID FIRST
609
612
doc.select_single_node (" /plist[1]/dict[1]/dict[2]" ).node ().prepend_copy (fileRefDoc.first_child ()); // DICT SECOND
610
-
611
-
612
613
613
614
pugi::xpath_node xpathResult = doc.select_node (" //string[contains(.,'PBXCopyFilesBuildPhase')]/../array" );
614
615
pugi::xml_node node = xpathResult.node ();
@@ -638,7 +639,7 @@ void xcodeProject::addFramework(string name, string path, string folder){
638
639
639
640
// finally, this is for making folders based on the frameworks position in the addon. so it can appear in the sidebar / file explorer
640
641
641
- if (folder.size () > 0 ){
642
+ if (folder.size () > 0 && ! ofIsStringInString (folder, " /System/Library/Frameworks " ) ){
642
643
643
644
vector < string > folders = ofSplitString (folder, " /" , true );
644
645
0 commit comments