【问题标题】:How do I get openfl running in the ios simulator如何让 openfl 在 ios 模拟器中运行
【发布时间】:2016-10-01 21:22:24
【问题描述】:

我安装了最新版本的 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

【问题讨论】:

    标签: ios haxe openfl


    【解决方案1】:

    “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 非常有帮助。希望他们能尽快找到真正的解决方案。
    猜你喜欢
    • 2011-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-15
    • 2022-08-18
    • 1970-01-01
    • 2014-07-23
    • 2014-06-29
    相关资源
    最近更新 更多