ionic build ios时设备报错multiple devices matched the request

可以看到有这么一句话,简单翻译就是:找不到请求的设备,因为多个设备与请求匹配。

The requested device could not be found because multiple devices matched the request.
ionic build ios时设备报错multiple devices matched the request

让我们看下设备列表

xcrun simctl list
ionic build ios时设备报错multiple devices matched the request

我们看到有多个iphone8 8p X,
接下来我们就要删除这些多余的设备。
1. 在Xcode中随便打开一个工程,没有就新建一个空白的。
2. 打开选择设备列表下面会有add additional simulators,打开。
ionic build ios时设备报错multiple devices matched the request
3. 此时我们就看到所有设备了。删除重复的就解决了。
ionic build ios时设备报错multiple devices matched the request
ionic build ios时设备报错multiple devices matched the request
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。