ios - Xcode 10 构建错误 : 'must declare at least one output file'

标签 ios swift xcode compiler-errors

我正在尝试使用 Xcode 10 构建一个稍微复杂的应用程序,以便我可以很快将其提交到商店,但我收到以下错误(为了简单起见,路径已更改)。

仅显示所有错误 :-1: '/Uses/Desktop/ios/app/Vendor/QMServices/QMContactListCache/QMContactListCache/CoreData/QMContactListModel.xcdatamodeld' 的 shell 脚本构建规则必须声明至少一个输出文件(在目标 'QMContactListCache' 中)

我真的不知道这意味着什么,我什至不知道如何在项目中找到目标,因为我没有看到它。它在 Xcode 9 中构建没有问题。

如有任何帮助,我们将不胜感激。

最佳答案

Error removed by deleting duplicate files in the copy bundle resources

Click on Build phase and click on Copy Bundle Resources In my case i have info.pllist duplicate file in bundle,now working fine for me

1.通过删除副本捆绑资源中的重复文件消除了错误。 2.单击“构建阶段”,然后单击“复制捆绑资源”。 3.就我而言,我在 bundle 中有 info.pllist 重复文件,现在对我来说工作正常。

关于ios - Xcode 10 构建错误 : 'must declare at least one output file' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52910771/

相关文章:

ios - didUpdateToLocation 未在应用程序中调用

ios - 为什么 Apple 建议在串行后台队列中分派(dispatch) OpenGL 命令,因为这不可避免地会导致崩溃?

swift - Swift 中的 Firebase 实时数据库

ios - URLSession.shared.dataTask 中带有 JSON 和字典的 Swift 3 编译器错误

swift - Swift Package Manager 在本地实用吗?

iphone - 通过 Jenkins shell 脚本更改 Xcode 的代码

ios - 点击 super View 中嵌入的自定义 UIView 中未收到的手势识别器

ios - UIscrollview 不快速滚动

ios - 如何在 Xcode 7 中动态更改单元测试的目标?

ios - 如何在 Swift 4 中使用 CAShapeLayer 和 UIBezierPath 绘制曲线?