Archive xcode project originated from unity simulator build

hello,
am trying to archive my game on xcode. the game was built in unity for simulator as i dont have iphone device.
the archive button is always disabled in xcode, what can i do?

thanks

Applications built for the simulator cannot be archived nor submitted to the App Store. Set the run destination to iOS Device to enable archiving for your application.TN3109: Resolving common archiving issues | Apple Developer Documentation

Build with Target SDK set to Device SDK and select Generic iOS device in Xcode

Might be worth to look at ios - Archive button grayed out in Xcode - Stack Overflow