我安装了最新版本的Haxe 3,以及最新版本的Xcode和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发布于 2016-10-01 23:09:04
它被" by“这个词呛住了,这个词来自插入在生成的C++源文件顶部的"Generated”。
因此,尝试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
https://stackoverflow.com/questions/39811587
复制相似问题