/Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp:219:70: error: no viable conversion from ‘std::unordered_map<std::string, JS::PersistentRootedScript *> *’ (aka ‘unordered_map<basic_string<char, char_traits, allocator >, PersistentRooted<JSScript *> *> *’) to ‘std::unordered_map<std::string, JS::PersistentRootedScript *>’ (aka 'unordered_map<basic_string<char, char_traits, allocator >, PersistentRooted<JSScript *> >’)
std::unordered_map<std::string, JS::PersistentRootedScript> filenameScript = ScriptingCore::getInstance()->getFileScript();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp
In file included from /Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.ios_mac/…/…/…/…/…/cocos/base/CCDirector.h:38:
In file included from /Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.ios_mac/…/…/…/…/…/cocos/2d/CCScene.h:32:
In file included from /Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.ios_mac/…/…/…/…/…/cocos/2d/CCNode.h:35:
In file included from /Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.ios_mac/…/…/…/…/…/cocos/base/CCProtocols.h:34:
In file included from /Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.ios_mac/…/…/…/…/…/cocos/renderer/CCTexture2D.h:32:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/unordered_map:823
note: candidate constructor not viable: no known conversion from ‘std::unordered_map<std::string, JS::PersistentRootedScript *> *’ (aka ‘unordered_map<basic_string<char, char_traits, allocator >, PersistentRooted<JSScript *> *> *’) to ‘const std::__1::unordered_map<std::__1::basic_string, JS::PersistentRooted<JSScript *> *, std::__1::hash<std::__1::basic_string >, std::__1::equal_to<std::__1::basic_string >, std::__1::allocator<std::__1::pair<const std::__1::basic_string, JS::PersistentRooted<JSScript *> *> > > &’ for 1st argument; dereference the argument with *
unordered_map(const unordered_map& __u);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/unordered_map:826
note: candidate constructor not viable: no known conversion from ‘std::unordered_map<std::string, JS::PersistentRootedScript *> *’ (aka ‘unordered_map<basic_string<char, char_traits, allocator >, PersistentRooted<JSScript *> *> *’) to ‘std::__1::unordered_map<std::__1::basic_string, JS::PersistentRooted<JSScript *> *, std::__1::hash<std::__1::basic_string >, std::__1::equal_to<std::__1::basic_string >, std::__1::allocator<std::__1::pair<const std::__1::basic_string, JS::PersistentRooted<JSScript *> *> > > &&’ for 1st argument
unordered_map(unordered_map&& __u)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/unordered_map:831
note: candidate constructor not viable: no known conversion from ‘std::unordered_map<std::string, JS::PersistentRootedScript *> *’ (aka ‘unordered_map<basic_string<char, char_traits, allocator >, PersistentRooted<JSScript *> *> *’) to ‘initializer_list<value_type>’ (aka ‘initializer_list<pair<const std::__1::basic_string, JS::PersistentRooted<JSScript *> *> >’) for 1st argument
unordered_map(initializer_list<value_type> __il);
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/simulator.build/Debug/Simulator\ Mac.build/Objects-normal/x86_64/RuntimeJsImpl.o /Users/moonwalker/Desktop/dkd_dig/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
编译失败:请从上面的输出中查看错误细节