简体   繁体   English

没有这样的模块“ PackageDescription” Swift 3 Xcode 8

[英]No such module “PackageDescription” Swift 3 Xcode 8

I am trying to use this cocoapod for calendar functionality, but I am running into an error. 我正在尝试将此 cocoapod用于日历功能,但是遇到了错误。 I properly installed the cocoapod, but the tutorial also had me drag and drop some files into my xcode project. 我正确安装了cocoapod,但是本教程还让我将一些文件拖放到我的xcode项目中。 Among those files is Package.Swift. 这些文件中有Package.Swift。 At the top, it has me import PackageDescription and I am getting this error. 在顶部,它让我导入PackageDescription,并且收到此错误。 这个错误 . If I get rid of this file I get many more errors throughout the project. 如果我摆脱了这个文件,在整个项目中将会遇到更多错误。 What should I do? 我该怎么办?

Try to: 1) delete these entered lines with import, etc. 2) reopen the Xcode 3) press Cmd + B 4) write import PackageDescription again 尝试执行以下操作:1)使用import删除这些输入的行,等等。2)重新打开Xcode 3)按Cmd + B 4)再次写入import PackageDescription

It helped me many times. 它帮助了我很多次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM