热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

适用于iOS应用程序的Firebase3.7.0上的链接错误-LinkingerroronFirebase3.7.0foriOSApplication

ImtryingtouseFirebaseSDK3.7.0inmyiOSapplication,butitgiveslinkingerrors.我正在尝试在我的iOS

I'm trying to use Firebase SDK 3.7.0 in my iOS application, but it gives linking errors.

我正在尝试在我的iOS应用程序中使用Firebase SDK 3.7.0,但它会产生链接错误。

I've followed the steps described on the README.md that it's included on the framework SDK downloaded from https://firebase.google.com/docs/ios/setup, on integration without CocoaPods section.

我已经按照README.md中描述的步骤进行了操作,它包含在从https://firebase.google.com/docs/ios/setup下载的框架SDK上,不包含CocoaPods部分。

On linking, appears these errors:

在链接时,出现以下错误:

Undefined symbols for architecture armv7:
  "_sqlite3_bind_double", referenced from:
      ___48-[FIRASqliteStore bindValues:toStatement:error:]_block_invoke in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_bind_null", referenced from:
      ___48-[FIRASqliteStore bindValues:toStatement:error:]_block_invoke in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_column_type", referenced from:
      -[FIRASqliteStore valueAtColumn:forStatement:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_column_double", referenced from:
      -[FIRASqliteStore valueAtColumn:forStatement:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_open_v2", referenced from:
      -[FIRASqliteStore openAndValidateDatabase:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_clear_bindings", referenced from:
      -[FIRASqliteStore cleanUpStatement:forQuery:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
      -[FIRASqliteStore bindValues:toStatement:error:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_column_count", referenced from:
      -[FIRASqliteStore recordsForQuery:parameterValues:error:withFilter:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
      -[FIRASqliteStore validateDatabaseWithError:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_OBJC_CLASS_$_SSReadingList", referenced from:
      objc-class-ref in GoogleSignIn(please_link_SafariServices.framework_.o)
  "_OBJC_CLASS_$_MFMessageComposeViewController", referenced from:
      objc-class-ref in FirebaseInvites(GINInviteController_af66380ba390cf14b066932397806d20.o)
      objc-class-ref in FirebaseInvites(GPPACLSearchViewController_3fc71921176f5b855c444ab9ce9260c7.o)
      objc-class-ref in FirebaseInvites(GINInviteScrollView_5b90efc8e1a69f9dfe581b021e7f869b.o)
  "_OBJC_CLASS_$_CMMotionManager", referenced from:
      objc-class-ref in FirebaseDynamicLinks(GPPSpamSignal_a0a54565a3243ede865cc9b2724bc7a8.o)
  "_sqlite3_column_bytes", referenced from:
      -[FIRMessagingRmq2PersistentStore scanOutgoingRmqMessagesWithHandler:] in FirebaseMessaging(FIRMessagingRmq2PersistentStore_66612bb0cdda59e6a475d66db9ec25d4.o)
      -[FIRASqliteStore valueAtColumn:forStatement:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_reset", referenced from:
      -[FIRASqliteStore cleanUpStatement:forQuery:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_changes", referenced from:
      -[FIRMessagingRmq2PersistentStore deleteMessagesFromTable:withRmqIds:] in FirebaseMessaging(FIRMessagingRmq2PersistentStore_66612bb0cdda59e6a475d66db9ec25d4.o)
      -[FIRMessagingRmq2PersistentStore deleteExpiredOrFinishedSyncMessages:] in FirebaseMessaging(FIRMessagingRmq2PersistentStore_66612bb0cdda59e6a475d66db9ec25d4.o)
      -[FIRASqliteStore deleteRecordsFromTableWithName:condition:parameterValues:error:] in FirebaseAnalytics(FIRASqliteStore_2e8a0f466f3be880241569cb2066f73b.o)
  "_sqlite3_errmsg", referenced from:
      -[FIRMessagingRmq2PersistentStore saveMessageWithRmqId:tag:data:error:] in FirebaseMessaging(FIRMessagingRmq2PersistentStore_66612bb0cdda59e6a475d66db9ec25d4.o)
      -[FIRMessagingRmq2PersistentStore lastErrorMessage] in FirebaseMessaging(FIRMessagingRmq2PersistentStore_66612bb0cdda59e6a475d66db9ec25d4.o)

The XCode version is 7.0.1

XCode版本是7.0.1

4 个解决方案

#1


8  

You need to add this framework as you are not using pods

您需要添加此框架,因为您没有使用pod

libicucore.tbd

CFNetwork.framework

Security.framework

SystemConfiguration.framework

libc++.tbd

libsqlite3.tbd

#2


0  

Dissapears these errors but appears anothers:

消除这些错误,但似乎是另一个:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_MFMessageComposeViewController", referenced from:
      objc-class-ref in FirebaseInvites(GINInviteController_af66380ba390cf14b066932397806d20.o)
      objc-class-ref in FirebaseInvites(GPPACLSearchViewController_3fc71921176f5b855c444ab9ce9260c7.o)
      objc-class-ref in FirebaseInvites(GINInviteScrollView_5b90efc8e1a69f9dfe581b021e7f869b.o)
  "_OBJC_CLASS_$_CMMotionManager", referenced from:
      objc-class-ref in FirebaseDynamicLinks(GPPSpamSignal_a0a54565a3243ede865cc9b2724bc7a8.o)
  "_OBJC_CLASS_$_WKWebView", referenced from:
      objc-class-ref in FirebaseDynamicLinks(GINDurableDeepLinkService_82b7f4fe1b45fd4080e08dd3f5cc12a1.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

#3


0  

Not sure why you have to add all those frameworks, even if you're not using pods. I sorted that out adding just libsqlite3.dylb and libs.1.dylib

不确定为什么你必须添加所有这些框架,即使你没有使用pods。我只是添加了libsqlite3.dylb和libs.1.dylib

#4


-2  

Using Firebase through manual installation must add the frameworks bellow:

通过手动安装使用Firebase必须添加下面的框架:

libicucore.tbd

CFNetwork.framework

Security.framework

SystemConfiguration.framework

libc++.tbd

libsqlite3.tbd


推荐阅读
author-avatar
mobiledu2502916347
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有