我遵循了有关在firebase上集成新的ios发行版的所有说明:

  • 我下载了文件GoogleService-Info.plist并将其包含在项目中。
  • 我用cocoapods
  • 安装了框架

    问题在于此行:
    @import Firebase;
    

    Xcode显示此错误:



    解决办法是什么?

    我的代码:
    #import "AppDelegate.h"
    
    @import Firebase
    
    @interface AppDelegate ()
    
    @end
    
    @implementation AppDelegate
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        [FIRApp configure];
    
        // Override point for customization after application launch.
        return YES;
    }
    

    最佳答案

    我最终通过使用修复它
    #import <Firebase/Firebase.h>
    代替
    @import Firebase

    关于ios - 在iOS上安装Firebase模块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37322473/

    10-14 20:02
    查看更多