错误:“没有这样的模块'AVFoundation'”

时间:2015-09-25 03:00:55

标签: swift import avfoundation watchkit

这里有什么问题?我搜索了网络,并没有任何其他实例。我尝试清理并重新启动Xcode,我删除了代码并再次尝试,我已经将二进制文件与项目中的库AVFoundation相关联。 。 。怎么了?我知道它应该可以工作,因为我是从当前Watch OS和Xcode版本的视频教程中完成的,并且没有其他学生使用相同问题的教程。但它只是不能正常工作。

Screenshot of Xcode

以下是我的文字代码:

import WatchKit
import Foundation
import AVFoundation


class InterfaceController: WKInterfaceController {

    override func awakeWithContext(context: AnyObject?) {
        super.awakeWithContext(context)

        // Configure interface objects here.
    }

    override func willActivate() {
        // This method is called when watch view controller is about to be visible to user
        super.willActivate()
    }

    override func didDeactivate() {
        // This method is called when watch view controller is no longer visible
        super.didDeactivate()
    }

}

希望你们能帮忙!

0 个答案:

没有答案
相关问题