无法构建Objective-C模块“ cocoaMQTT”

时间:2018-08-12 11:35:36

标签: ios swift mqtt

我正在构建一个应连接到我的树莓派的应用程序,但是在通过cocoaPods安装MQTT之后,导入CocoaMQTT给了我这个错误 “无法构建Objective-C模块'CocoaMQTT'” 我已经删除了自己的衍生数据,但是那也不起作用。

我该如何解决?

import UIKit
import CocoaMQTT -> Could not build Objective-C module 'CocoaMQTT'

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()
    }

    @IBAction func test(_ sender: UISwitch) {
    }

}

1 个答案:

答案 0 :(得分:1)

好吧,我已经通过为较低的iOS部署进行编译来解决此问题。