| @@ -2724,7 +2724,9 @@ private: | |||||
| String addFramework (const String& frameworkName) const | String addFramework (const String& frameworkName) const | ||||
| { | { | ||||
| auto path = frameworkName; | auto path = frameworkName; | ||||
| if (! File::isAbsolutePath (path)) | |||||
| auto isRelativePath = path.startsWith ("../"); | |||||
| if (! File::isAbsolutePath (path) && ! isRelativePath) | |||||
| path = "System/Library/Frameworks/" + path; | path = "System/Library/Frameworks/" + path; | ||||
| if (! path.endsWithIgnoreCase (".framework")) | if (! path.endsWithIgnoreCase (".framework")) | ||||
| @@ -2732,7 +2734,7 @@ private: | |||||
| auto fileRefID = createFileRefID (path); | auto fileRefID = createFileRefID (path); | ||||
| addFileReference ((File::isAbsolutePath (frameworkName) ? "" : "${SDKROOT}/") + path); | |||||
| addFileReference (((File::isAbsolutePath (frameworkName) || isRelativePath) ? "" : "${SDKROOT}/") + path); | |||||
| frameworkFileIDs.add (fileRefID); | frameworkFileIDs.add (fileRefID); | ||||
| return addBuildFile (path, fileRefID, false, false); | return addBuildFile (path, fileRefID, false, false); | ||||