文件视图控制器.swift是模块的一部分"coreData"忽略导入



我尝试导入CoreData,它出现警告"file viewController.swift是模块"coreData"的一部分,忽略导入"屏幕截图

import UIKit
import CoreData
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.
    }

}

你的项目名称是"CoreData"吗?不能使用模块的名称调用项目。尝试使用其他名称创建另一个项目

最新更新