How can I run openfl in ios simulator

I have the latest version of Haxe 3 installed, along with the latest version of Xcode and OpenFL.

I am in my OpenFl project in a terminal, and I run the following command:

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 
+6
source share
1 answer

It chokes on the word โ€œby,โ€ which will be from โ€œGenerated by Haxe,โ€ inserted at the beginning of the generated C ++ source files.

So try haxelib run openfl build ios -simulator -Dsource-header=haxe (or the equivalent of hxcpp ) to replace the default header with "haxe", it should work without spaces in the title bar.

Check this problem with OpenFL, it seems like the same problem: https://github.com/openfl/openfl/issues/1132

After that, you may also encounter this problem: https://github.com/openfl/openfl/issues/1153

+5
source

All Articles