openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
749 stars 362 forks source link

can I set the default architecture of lime? #1713

Closed I-am-someone-sh closed 10 months ago

I-am-someone-sh commented 10 months ago

is it possible? help me

player-03 commented 10 months ago

Try the <architecture /> tag:

<architecture name="armv7" />
<architecture name="arm64" />
<architecture exclude="x86" />
<architecture exclude="x64" />

Not sure you need all of those, but I'm guessing you at least want arm64.

Edit: oh wait, you said you're using x86? Then maybe invert it.

<architecture exclude="armv7" />
<architecture exclude="arm64" />
<architecture name="x86" />
<architecture name="x64" />
I-am-someone-sh commented 10 months ago

thanks I will try it

I-am-someone-sh commented 10 months ago

Try the <architecture /> tag:

<architecture name="armv7" />
<architecture name="arm64" />
<architecture exclude="x86" />
<architecture exclude="x64" />

Not sure you need all of those, but I'm guessing you at least want arm64.

Edit: oh wait, you said you're using x86? Then maybe invert it.

<architecture exclude="armv7" />
<architecture exclude="arm64" />
<architecture name="x86" />
<architecture name="x64" />

is not work, I build as x86_64 but is now the default is arm64 although I add "architecture" to the project.xml there is my old screenshot of my first time to build macos as x86_64 Screen Shot 2023-09-08 at 07 08 53