XCODE 11.0 beta 5中没有此类模块“ Firebase”错误

时间:2019-08-28 17:34:57

标签: ios xcode firebase

我一直在寻找与该特定问题类似/相同的每个网站,以了解早期版本Xcode的错误,并且我已经尝试了一切,但没有任何效果。我已经清理,然后尝试构建该项目,但是没有用。

终端显示firebase pod已成功安装,但是当尝试导入firebase时,xcode表示没有此类模块Firebase

enter image description here

然后我尝试使用手动添加框架,但是当我尝试构建时,xcode表示未找到firebasecore框架。

enter image description here enter image description here

我被困在那里。.下一步我该怎么办?

2 个答案:

答案 0 :(得分:0)

注释pod文件中的所有pod,然后仅安装

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',

]

对于Firebase通知,因为有时xcode不会安装Pod文件的框架。

答案 1 :(得分:0)

从项目目录打开您的pod文件并添加

`SELECT DISTINCT ON (screen_id) screen_id,
          user_screens.id,
          s.description,
          user_screens.screen_id,
          user_screens.allow_read,
          user_screens.allow_create,
          user_screens.allow_update,
          user_screens.allow_delete
          FROM
          (SELECT id,
            screen_id,
            allow_read,
            allow_create,
            allow_update,
            allow_delete
          FROM user_screens
          WHERE user_id = ?
          order by screen_id, (id is not null) desc
          UNION ALL SELECT
                      NULL AS id,
                      s.id,
                      'f' :: BOOLEAN AS allow_read,
                      'f' :: BOOLEAN AS allow_create,
                      'f' :: BOOLEAN AS allo_update,
                      'f' :: BOOLEAN AS allow_delete
          FROM users u
          LEFT JOIN user_companies uc ON uc.user_id = u.id
          LEFT JOIN companies c ON c.id = uc.company_id
          LEFT JOIN segments seg ON seg.id = c.segment_id
          LEFT JOIN segment_screens segscreen ON segscreen.segment_id = seg.id
          LEFT JOIN screens s ON s.id = segscreen.screen_id) user_screens
          LEFT JOIN screens s ON s.id = user_screens.screen_id
          ORDER BY s.description ASC
      `

然后转到终端并再次安装pod

pod 'Firebase/Core'

之后,请确保在使用之前构建项目(⌘+ B)。 确保从项目目录中打开.xcworkspace文件。