我的Unity版本 2018.4.3
首先就是网上随处可以搜到的第一步
1.在PlayerSetting-Other Setting中将TargetSDK设置为Simulator SDK
接下来有可能会遇到如下问题
In order to build the Xcode project for SImulator make sure that either GLES2 or GLES3 is added to the 'Graphics APIs' list because currently Metal is not supported in the Simulator
2.回到OtherSetting,找到Auto Graphics API,取消勾选,并在下面添加相应内容即可
发布出来,直接使用Xcode打开并使用模拟器运行即可