作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在我更新到 XCode 8 并尝试迁移到 Swift 2.3 之后,我尝试编译和构建我的项目,但几乎没有错误。我设法让所有其他库都正常工作,只有 PubNub 无法编译。
我用 Google 搜索并尝试了不同的解决方案,但没有任何效果。我可以从 GitHub 的测试项目构建项目
https://github.com/pubnub/SwiftExample
错误是:
pleasurreApp/AppDelegate/AppDelegate.swift:14:8: Could not build Objective-C module 'PubNub'
Pods/PubNub/PubNub/Core/PubNub+CorePrivate.h:1:9: 'PubNub+Core.h' file not found
最佳答案
请从项目的根目录(或存储 Podfile
的位置)运行 pod update
。当前 PubNub SDK 版本为 4.5.3。
退出 Xcode 并删除 DerivedData 文件夹。重新启动后,构建应该会顺利完成。
最好的问候,
谢尔盖
关于ios - XCode 8,Swift 2.3 返回错误 Could not build module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39717202/
我是一名优秀的程序员,十分优秀!