代码旅行

Unable to boot device because it cannot be located on disk.

昨天做了下磁盘清理,导致今天在用 xcode 编译一个应用时出现了两个问题

问题一

错误提示如下

Multiple commands produce '/Users/HB/Library/Developer/Xcode/DerivedData/ProjectName-fuzydagfygwvdbaaesbqgyxhuvgh/Build/Products/Debug-iphonesimulator/ProjectName.app/Assets.car':
1) Target 'ProjectName' (project 'ProjectName') has compile command with input '/Users/HB/workspace/ProjectName/Assets.xcassets'
2) That command depends on command in Target 'ProjectName' (project 'ProjectName'): script phase “[CP] Copy Pods Resources”

解决的办法:

xcode 中选择 File->Workspace settings 会弹出如下图片

xcode001

选择其中的 Legacy Build System 即可解决问题。

问题二

错误提示如下

Unable to boot device because it cannot be located on disk.

解决办法:

在终端中输入 xcrun simctl erase all 完成该命令即可。

--- EOF ---

请注意:这里的内容都是原创,你可以免费阅读,但拒绝所有其他任何形式的转载,谢谢配合。如果你发现文章中有错误,请发邮件给我,非常感谢。

The Copyright of all posts & photos posted in tourcoder.com is belong to tourcoder.com. You can read them for free, but you may not reuse anything therein without my permission.

更多内容