How to sign a .app for simulator?

We don’t now how to build the .app for simulator.
After running the code the app is installed however it fails to launch.

Can someone help with good info on how to sign it via xcode?

Thanks!!!

The Xcode Simulator runs on your native architecture, so therefore you need to build it with those arguments to the ‘.app’ directory. When running Xcode build pass in ‘-sdk iphonesimulator -arch x86_64 -arch i386’

Not sure I follow.

Is there a guide/URL that can help us?

we have signed it using all available options however all apps fails to launch.