把配置选择为device才能选build and archive的,模拟器的肯定不能build and anchive
转载于:https://www.cnblogs.com/yipingios/p/5714129.html