Unable to generate universal binary

Hi,

I'm maintaining two apps for internal need's.

One of the app is generated as universal binary and executes as arm on the M1 chips . .perfect, but the second one is only executing in rosetta and I don't see why !

I have no dependency, only apple framework library, the only fancy libraries are some low-level network libs, but I have tried whiteout and no change.

The build settings arch are "Standard architecture (Apple Silicon , intel) and everything other is on default.

When I run the code my only choice is "My Mac (rosetta)" or any Mac intel.

Any idea where I'm going wrong ?

Regard's Claude

Replies

The shiny new TN3117 Resolving Architecture Build Errors on Apple Silicon has a bunch o’ good advice on this topic.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi,

thank's .. it was in the Build Settings / User-Defined Setting => Valid-Arch X86.

I don't know wy this was here, I don't remember having setting this, but at least removing it solves my problem !

Regard's Claude