Generating .App file for Swift Macros fails

We are having a setup , where we generates .app file from our iOS project using this command

 xcodebuild -scheme MyApp -project ./MyApp.xcodeproj -configuration Release\ \(Development\) -derivedDataPath build/derived_data -destination 'generic/platform=iOS' -archivePath build/MyApp.xcarchive archive 

which is work fine. but we have a new library that uses new swift Macros, that we can’t anymore use this command without errors. so we switched to

-destination 'platform=iOS Simulator,name=iPhone' 

now it compile fine. but when adding the .app file to simulator , it just crash the app.

is there a better way to generate such file that can work on simulator without try to enforce x86_64. cause it seems that macros are not supporting that.

This is more a question for Apple Developer Forums:

https://developer.apple.com/forums/

Appium doesn’t compile apps.