我想将Firebase与Swift 5一起使用,但出现错误消息。
I want to use Firebase with Swift 5, but error message appears.
无法构建Objective-C模块 Firebase
Could not build Objective-C module 'Firebase'
我尝试了以下页面上的所有分辨率,但无法解决:
I tried all resolutions on below pages, but I can't solve it:
错误:无法构建Objective-C模块 Firebase
https: //github/firebase/quickstart-ios/issues/672
import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { FirebaseApp.configure() return true } }我希望构建成功,但实际上构建失败。
I expect Build Success, but actually Build Failed.
构建错误消息为:
未找到'FirebaseCore / FirebaseCore.h'文件无法构建Objective-C模块'Firebase'
'FirebaseCore/FirebaseCore.h' file not found Could not build Objective-C module 'Firebase'
而且,xcode在以下位置显示错误消息
And, xcode shows Error message at
import Firebase在AppDelegate.swift中
in AppDelegate.swift
推荐答案我的业务伙伴解决了
解决方法如下:
更多推荐
错误:无法使用Swift 5构建Objective
发布评论