diff options
-rw-r--r-- | devtools/create_project/xcode.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp index 90eea39aaf..66fd8c49f3 100644 --- a/devtools/create_project/xcode.cpp +++ b/devtools/create_project/xcode.cpp @@ -443,8 +443,10 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) { std::string absoluteOutputDir; #ifdef POSIX - absoluteOutputDir = realpath(setup.outputDir.c_str(), NULL); + char *c_path = realpath(setup.outputDir.c_str(), NULL); + absoluteOutputDir = c_path; absoluteOutputDir += "/lib"; + free(c_path); #else absoluteOutputDir = "lib"; #endif |