我试图导入CoreData,它发出警告“文件viewController.swift是模块的一部分”coreData“忽略导入” A Screen Shot
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.
}
}
答案 0 :(得分:67)
您的项目名称是" CoreData" ?您无法使用模块名称调用项目。尝试使用其他名称创建另一个项目