一. ionic/cordova打包编译
1. xcode10, cordova 8.0.0, ionic 3.20.0 编译 IOS 出错:
error: archive not found at path '/Users/ankon/Documents/vcp-ionic2/platforms/ios/***.xcarchive'
解决方案:
ionic cordova build ios --prod --release -- --buildFlag='-UseModernBuildSystem=0'
注意 ionic cordova build 如果要增加额外的参数传递,则需要多加 "--" 来分割。
二. 安装物理机
1. 在 IOS 开发者中心中,给 dev 的 profile 添加了某台手机uuid之后,依旧不能安装到该手机,如下图:
可能原因是该手机没有安装对应的证书,操作方式如下(xcode10):
1). 依次点击window/devices and semulators 打开设备信息
2). 在目标设备上单击右键,选择 show provisioning profiles,如下图:
3). 弹出框中点击目标设备的 “+” 号,如下图:
4). 选择目标 profile(需要预先在 IOS 开发者中心中下载,就是自己定义的添加了目标设备的 profile),点击 done 即可。之后就可以直接安装到手机了。
有时候,安装证书死活装不上去,可以尝试如下方法:
xcode中选择 File/Workspace Settings, Build System 选择 Legacy Build System