如何在ios模拟器中运行openfl
问题描述:
我安装了最新版本的Haxe 3以及最新版本的Xcode和OpenFL。如何在ios模拟器中运行openfl
我在终端我OpenFl项目中,我运行以下命令:
openfl test ios -simulator
我收到以下错误:
/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
答
它窒息单词“通过”,这将来自插入在生成的C++源文件顶部的“由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