如何在iOS模拟器中运行openfl?

6

我已经安装了最新版本的Haxe 3、Xcode和OpenFL。

我在终端中进入了我的OpenFl项目,并运行了以下命令:

openfl test ios -simulator

I get the following error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make
Haxe device build: Release-iphoneos-v7
haxe Build.hxml -D HXCPP_ARMV7 -cpp build/Release-iphoneos-v7
cd build/Release-iphoneos-v7; export HXCPP_NO_COLOR=1; haxelib run hxcpp Build.xml -Dios -Diphone -DHXCPP_ARMV7 -DHXCPP_CPP11  -DHXCPP_CLANG -DOBJC_ARC `cat Options.txt | while read LINE; do printf " -D$LINE"; done`
Error: Could not find build target "by"
make: *** [build-haxe-armv7] Error 1
Command /Applications/Xcode.app/Contents/Developer/usr/bin/make failed with exit code 2
1个回答

5
它卡在单词“by”上,这个单词来自于生成的C ++源文件顶部插入的“Generated by Haxe”。
因此,请尝试使用haxelib run openfl build ios -simulator -Dsource-header=haxe(或hxcpp等效命令)将默认标题替换为“haxe”,它应该可以在标题行中不包含空格的情况下正常工作。
检查这个OpenFL问题,看起来是相同的问题:https://github.com/openfl/openfl/issues/1132 之后,您可能也会遇到这个问题:https://github.com/openfl/openfl/issues/1153

你建议我查看的第二个链接,问题1153非常有帮助。希望他们能尽快找到一个真正的解决方案。 - mattwallace

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接