Getting device type in `PostProcessBuild`?

Hi there,

I have a project, which has a custom build process that compiles a native library and bundles it into the Xcode project.

Is there a way to detect if the device being build for is the simulator or an actual device? I need to set the SDK as an argument for xcode-build, and it differes from device and the simulator.

So you want to change the XCode project structure? Since AFAIK Unity does not have any Simulator selection, it is only done from XCode