diff --git a/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp b/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp index 2d345dfe8c..4e4fa64850 100644 --- a/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp +++ b/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp @@ -43,7 +43,7 @@ void ConfigParser::readConfig(const string &filepath) #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) // revert search path - searchPathArray.erase(searchPathArray.end() - 1); + searchPathArray.erase(searchPathArray.begin()); FileUtils::getInstance()->setSearchPaths(searchPathArray); #endif