嵌入到私有iOS框架中的Firebase框架

嵌入到私有iOS框架中的Firebase框架,ios,swift,xcode,firebase,frameworks,Ios,Swift,Xcode,Firebase,Frameworks,我想在我的XCode工作区中创建带有嵌入式Firebase框架的私有框架,用于该工作区中的两个应用程序 我的工作区结构是: MyApps.xcworkspace ----FirebaseKit.xcodeproj --------FirebaseKit --------斯威夫特经理 --------产品 --------FirebaseKit.framework --------框架 --------FirebaseAnalytics.framework --------FirebaseData

我想在我的XCode工作区中创建带有嵌入式Firebase框架的私有框架,用于该工作区中的两个应用程序

我的工作区结构是:

MyApps.xcworkspace

----FirebaseKit.xcodeproj

--------FirebaseKit

--------斯威夫特经理

--------产品

--------FirebaseKit.framework

--------框架

--------FirebaseAnalytics.framework

--------FirebaseDatabase.framework

--------FirebaseStorage.framework

----MyApp1.xcodeproj

--------MyApp1

--------AppDelegate.swift

--------框架

--------FirebaseKit.framework

----MyApp2.xcodeproj

--------MyApp2

-------------AppDelegate.swift

--------框架

--------FirebaseKit.framework

我的FirebaseKit.Manager.swift文件是:

import Firebase

public struct Manager {
    public static func configure() {
        FIRApp.configure()
    }
}
然后我构建FirebaseKit-成功

MyApp1.AppDelegate.swift(和MyApp2.AppDelegate.swift)代码为:

导入FirebaseKit//Bool{
FirebaseKit.Manager.configure()
返回真值
}
}
当我尝试构建MyApp1或MyApp2时,会出现错误“缺少必需的模块‘Firebase’”

我试了两种方法:

  • 在FirebaseKit中使用CoCoapod

  • 没有CoCoapod(手动添加Firebase框架)

是否可以将框架嵌入到其他框架中,以便在相同(或不同)的工作空间中使用?
我试图找到文档或其他答案,但没有成功。

我也有同样的问题,你解决了吗?
import FirebaseKit     //<-- error is here "Missing required module 'Firebase'"

class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionKey: Any]?) -> Bool {
        FirebaseKit.Manager.configure()
        return true
    }
}