【问题标题】:Import DisplaySwitcher in my xcode9 project - not working在我的 xcode9 项目中导入 DisplaySwitcher - 不工作
【发布时间】:2018-01-07 10:49:11
【问题描述】:

为了安全起见,我已经安装了 pod 并更新了我的 pod,但我敢打赌“没有这样的模块 'DisplaySwitcher'”错误。我是 swift 新手,所以这可能是我的菜鸟,但我们将不胜感激。

import UIKit
import DisplaySwitcher

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

Image 1 image 2

【问题讨论】:

    标签: swift xcode cocoapods xcode9


    【解决方案1】:

    我安装 pod。它工作正常。我还在我的 Xcode 9.2 和 Swift 4 中导入。确保在 pod 文件中安装正确的 pod。 检查 GitHub 链接

    https://github.com/khawar512/DisplaySwticher

    pod 安装图。

    【讨论】:

      【解决方案2】:

      尝试构建。来自 CocoaPods 的模块直到第一次构建后才能被 Xcode 识别。

      【讨论】:

        猜你喜欢
        • 2021-01-02
        • 1970-01-01
        • 2021-10-02
        • 1970-01-01
        • 2012-10-24
        • 1970-01-01
        • 1970-01-01
        • 2014-06-05
        • 1970-01-01
        相关资源
        最近更新 更多