IOS: Fixes a crash of the create_project tool when the lib directory is not found

This commit is contained in:
Vincent Bénony 2015-12-04 10:27:48 +01:00
parent 3b5d14b51a
commit 43f02471ea

View file

@ -443,7 +443,8 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) {
std::string absoluteOutputDir;
#ifdef POSIX
absoluteOutputDir = realpath((setup.outputDir + "/lib").c_str(), NULL);
absoluteOutputDir = realpath(setup.outputDir.c_str(), NULL);
absoluteOutputDir += "/lib";
#else
absoluteOutputDir = "lib";
#endif