美文网首页React Native开发经验集
xcodebuild: error: Unable to fin

xcodebuild: error: Unable to fin

作者: 超级红豆牛奶冰 | 来源:发表于2020-06-11 10:02 被阅读0次

问题

xcodebuild: error: Unable to find a destination matching the provided destination specifier:

{id:AB4E23AF-99E0-4223-B359-CD260C6D8C44} 这个是模拟器的唯一id

解决办法

分组查看-终端中运行

xcrun simctl list devices

会出现如下列表

iPad Pro (11-inch) (2nd generation) (920C81A9-5DCA-40B2-B7B9-83A619486FA8) (Booted)

iPhone 7 (11.2) [730D0B4A-65C7-40C2-8BF9-F42114FFA41A] (Simulator)

iPhone 7 (11.2) + Apple Watch Series 2 - 38mm (4.2) [CA0DD4A2-A03C-4B65-85BF-B329929BCFDC] (Simulator)

iPhone 7 Plus (11.2) [601F0F70-72BF-4E3C-B7C4-CB0D93CD8DCB] (Simulator)

iPhone 7 Plus (11.2) + Apple Watch Series 2 - 42mm (4.2) [A3D58728-B26A-415A-B82B-AF0F4B5D5C49] (Simulator)

iPhone 8 (11.2) [E6EF973F-2470-4644-875F-6D2422764F60] (Simulator)

iPhone 8 (11.2) + Apple Watch Series 3 - 38mm (4.2) [AF04DA7E-32B4-4484-8C31-AE50AE0962DD] (Simulator)

iPhone 8 Plus (11.2) [3C50694A-55A2-42F4-B2D2-06A0F29B8C2D] (Simulator)

iPhone 8 Plus (11.2) + Apple Watch Series 3 - 42mm (4.2) [62AC89B9-E8E5-4CBF-9AFA-514AC3BD8105] (Simulator)

iPhone SE (11.2) [9C15AC46-816E-4A85-9F21-A693CE34D542] (Simulator)

iPhone X (11.2) [626866A7-B843-4CCF-B27D-00420F5F16DB] (Simulator)

从上述列表中选择一个,更改package.json中放在红色的位置

package.json

运行命令

npm run ipad:no-auth

相关文章

网友评论

    本文标题:xcodebuild: error: Unable to fin

    本文链接:https://www.haomeiwen.com/subject/agvvtktx.html