Ric*_*ues 6 ios firebase swift google-cloud-firestore
尝试构建我的应用程序,但它总是给我带来 FirebaseFirestore 的问题。
\n\n它似乎可以很好地识别 FirebaseStorage 和 Firebase,但不能识别 FireStore。
\n\n以下是有问题的图像和一些代码:
\n\n\n\n代码:
\n\nimport UIKit\nimport FirebaseFirestore //No such module \'FirebaseFirestore\' \nvar docRefIm: DocumentReference!\nvar docRefImC: CollectionReference!\n\nclass carregar: UIViewController,UINavigationControllerDelegate, UIImagePickerControllerDelegate {\n @IBOutlet weak var upload: UIButton!\n @IBOutlet weak var myImage: UIImageView!\n @IBAction func uploadBt(_ sender: Any) {\n\n let image = UIImagePickerController()\n image.delegate = self\n image.allowsEditing = true\n image.sourceType = UIImagePickerControllerSourceType.photoLibrary\n self.present(image, animated: true){\n\n }\n }\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试删除并重新安装 Pod、删除模块、添加方案,但似乎没有任何效果。
\n\n这是 pod 文件:
\n\n# Uncomment the next line to define a global platform for your project\n# platform :ios, \xe2\x80\x998.0\xe2\x80\x99\n\ntarget \'MarisaeRui\' do\n # Comment the next line if you\'re not using Swift and don\'t want to use dynamic frameworks\n\n use_frameworks!\n\n # Pods for MarisaeRui\npod \'Firebase/Core\'\npod \'Firebase/Firestore\'\npod \'Firebase/Storage\'\n\n target \'MarisaeRuiTests\' do\n inherit! :search_paths\n # Pods for testing\n\n end\n\n target \'MarisaeRuiUITests\' do\n inherit! :search_paths\n # Pods for testing\n\n end\n\nend\nRun Code Online (Sandbox Code Playgroud)\n\n\n
这是在 Xcode 8.3.3 上使用 Firestore 时出现的问题。
最简单的解决方法是迁移到 Xcode 9 -本月提交到 App Store 时需要使用 Xcode 9。
或者,您可以修复 Firestore 源中的构建错误。关注本期,了解更多详情。
| 归档时间: |
|
| 查看次数: |
8931 次 |
| 最近记录: |