gpt4 book ai didi

ios - XCode 8,Swift 2.3 返回错误 Could not build module

转载 作者:可可西里 更新时间:2023-10-31 23:14:29 24 4
gpt4 key购买 nike

在我更新到 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

enter image description here

最佳答案

请从项目的根目录(或存储 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com