我已经将我的项目从NME转换到Openfl,它运行得很好,但是当我试图运行munit时,我收到了错误...
“目标cpp时无法访问闪存包”。
我该如何解决这个问题呢?这是hxcpp问题还是Munit问题?
发布于 2013-06-14 02:26:59
我改变了策略,我现在有以下设置作为变通方法。
project.nmml
test.nmml //project.nmml +测试依赖项+两个haxeflag...
<haxeflag name="-D testDebug" if="debug"/>
<haxeflag name="-D debug" if="debug"/>test.hxml
-swf-version 10
-cmd openfl build test.nmml flash
-cmd mv build/flash/bin/TestMain.swf build/as3_test.swf
-swf build/as3_test.swftestDebug.hxml
-swf-version 10
-cmd openfl build test.nmml flash -Ddebug
-cmd mv build/flash/bin/TestMain.swf build/as3_test.swf
-swf build/as3_test.swfhaxelib运行通用测试testDebug.hxml -as3
haxelib run munit test test.hxml -as3
haxelib run openfl test.nmml cpp
发布于 2013-06-13 06:34:18
在Sublime Text中使用Haxe包构建时,我遇到了这个问题,并且能够通过更改构建项目的方法来解决这个问题。
现在我点击shift-control-B并从弹出的弹出窗口中选择我的项目xml文件,然后从下一个弹出窗口中选择目标和构建模式。
如果您不是在Sublime Text中构建,请忽略此解决方案。但也许它会帮助其他人搜索相同的错误;)
https://stackoverflow.com/questions/17071977
复制相似问题