- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在通过 cocoapods
将 firebase
添加到我的 ios
项目中。然而在表演之后
`pod install`
我收到架构 arm64 的 undefined symbol :错误:
完整的错误列表:
`Undefined symbols for architecture arm64:
"___ubsan_handle_add_overflow", referenced from:
_ReadRawVarInt32 in
FirebaseMessaging(FIRMessagingCodedInputStream.o)
-[FIRMessagingConnection willProcessProto:] in FirebaseMessaging(FIRMessagingConnection.o)
-[FIRMessagingConnection willSendProto:] in FirebaseMessaging(FIRMessagingConnection.o)
-[FIRMessagingDelayedMessageQueue queueMessage:] in FirebaseMessaging(FIRMessagingDelayedMessageQueue.o)
-[FIRMessagingDataMessageManager handleExpirationForDataMessage:] in FirebaseMessaging(FIRMessagingDataMessageManager.o)
+[FIRMessagingReceiver nextMessageID] in FirebaseMessaging(FIRMessagingReceiver.o)
-[FIRMessagingRmqManager loadInitialOutgoingPersistentId] in FirebaseMessaging(FIRMessagingRmqManager.o)
...
"___ubsan_handle_divrem_overflow", referenced from:
_FIRMessagingGetFreeDiskSpaceInMB in
FirebaseMessaging(FIRMessagingUtilities.o)
"___ubsan_handle_float_cast_overflow", referenced from:
-[FIRMessaging setupSyncMessageManager] in
FirebaseMessaging(FIRMessaging.o)
-[FIRMessagingDelayedMessageQueue calculateTimeoutInMillisWithDelayInSeconds:] in
FirebaseMessaging(FIRMessagingDelayedMessageQueue.o)
-[FIRMessagingClient retryConnectionImmediately:] in
FirebaseMessaging(FIRMessagingClient.o)
_FIRMessagingCurrentTimestampInSeconds in
FirebaseMessaging(FIRMessagingUtilities.o)
_FIRMessagingCurrentTimestampInMilliseconds in
FirebaseMessaging(FIRMessagingUtilities.o)
_FIRMessagingGetFreeDiskSpaceInMB in
FirebaseMessaging(FIRMessagingUtilities.o)
"___ubsan_handle_load_invalid_value", referenced from:
-[FIRApp setDataCollectionDefaultEnabled:] in
FirebaseCore(FIRApp.o)
-[FIRApp isAppIDValid] in FirebaseCore(FIRApp.o)
-[FIRApp alreadyOutputDataCollectionFlag] in
FirebaseCore(FIRApp.o)
-[FIRApp setAlreadyOutputDataCollectionFlag:] in
FirebaseCore(FIRApp.o)
-[FIRApp isDefaultApp] in FirebaseCore(FIRApp.o)
+[FIRDependency dependencyWithProtocol:isRequired:] in
FirebaseCore(FIRDependency.o)
-[FIRDependency initWithProtocol:isRequired:] in
FirebaseCore(FIRDependency.o)
...
"___ubsan_handle_negate_overflow", referenced from:
-[FIRMessagingConnection logMessage:messageType:isOut:] in
FirebaseMessaging(FIRMessagingConnection.o)
"___ubsan_handle_nonnull_arg", referenced from:
+[FIRApp registerAsConfigurable:] in FirebaseCore(FIRApp.o)
+[FIRApp readDataCollectionSwitchFromPlist] in
FirebaseCore(FIRApp.o)
+[FIRConfiguration sharedInstance] in
FirebaseCore(FIRConfiguration.o)
+[FIRAnalyticsConfiguration sharedInstance] in
FirebaseCore(FIRAnalyticsConfiguration.o)
+[FIRComponentContainer registerAsComponentRegistrant:] in
FirebaseCore(FIRComponentContainer.o)
_FIRLoggerInitializeASL in FirebaseCore(FIRLogger.o)
+[FIRMessaging messaging] in FirebaseMessaging(FIRMessaging.o)
...
"___ubsan_handle_pointer_overflow", referenced from:
_ReadRawByte in FirebaseMessaging(FIRMessagingCodedInputStream.o)
-[FIRMessagingSecureSocket performRead] in
FirebaseMessaging(FIRMessagingSecureSocket.o)
"___ubsan_handle_shift_out_of_bounds", referenced from:
_ReadRawVarInt32 in
FirebaseMessaging(FIRMessagingCodedInputStream.o)
_LogicalRightShift32 in
FirebaseMessaging(FIRMessagingSecureSocket.o)
-[FIRMessagingClient nextRetryInterval] in
FirebaseMessaging(FIRMessagingClient.o)
"___ubsan_handle_sub_overflow", referenced from:
+[FIRMessagingPendingTopicsList pruneTopicBatches:] in
FirebaseMessaging(FIRMessagingPendingTopicsList.o)
-[FIRMessagingConnection willProcessProto:] in
FirebaseMessaging(FIRMessagingConnection.o)
-[FIRMessagingDelayedMessageQueue scheduleTimeoutInMillis:] in
FirebaseMessaging(FIRMessagingDelayedMessageQueue.o)
-[FIRMessagingDataMessageManager sendDelayedMessages:] in
FirebaseMessaging(FIRMessagingDataMessageManager.o)
"___ubsan_handle_type_mismatch_v1", referenced from:
-[FIRApp initInstanceWithName:options:] in FirebaseCore(FIRApp.o)
-[FIRApp configureCore] in FirebaseCore(FIRApp.o)
-[FIRApp options] in FirebaseCore(FIRApp.o)
+[FIRApp registerAsConfigurable:] in FirebaseCore(FIRApp.o)
-[FIRApp isAppIDValid] in FirebaseCore(FIRApp.o)
-[FIRApp expectedBundleID] in FirebaseCore(FIRApp.o)
+[FIRApp readDataCollectionSwitchFromPlist] in
FirebaseCore(FIRApp.o)
...
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)`
我已尝试清理项目、清除缓存并移除 pod 并重新安装。
platform :ios, '11.0'
使用框架!
抑制所有警告!
目标'通用查看器'做
pod 'VatomicSDK', :path => '../ios-vatoms-sdk', :inhibit_warnings => false # Locally reference our SDK (i.e. not pulled from Cocoapods)
pod 'Crashlytics'
pod 'Fabric'
pod 'FBSDKLoginKit'
pod 'Firebase/Core', '~> 5.0'
pod 'AFNetworking', '~> 2.0' # CraftAR framework
pod 'libPhoneNumber-iOS'
pod 'Stripe', '~> 13.0'
pod 'NSAttributedString-DDHTML' # HTML string parsing
pod 'PromiseKit', '~> 4.0'
pod 'PureLayout'
pod 'UIAlertController+Show'
pod 'ReachabilitySwift'
pod 'DateToolsSwift'
pod 'SwiftQRCode'
pod 'GPUImage' # Camera motion detection
pod 'Cheers' # Confetti
# Required for the 3D face in VatomicSDK
# NOTE: Once the author has fixed the versioning issue in their repo, these should be removed.
# See: https://stackoverflow.com/questions/22447062/how-do-i-create-a-cocoapods-podspec-that-has-a-dependency-that-exists-outside-of/22475228#22475228
pod 'GLTF', :git => "https://github.com/warrenm/GLTFKit.git", :commit => "e1939408bcd6990f477541915d5652d20e0f9edd"
pod 'GLTFSCN', :git => "https://github.com/warrenm/GLTFKit.git", :commit => "e1939408bcd6990f477541915d5652d20e0f9edd"
pod 'Permission/Notifications'
pod 'Permission/Bluetooth'
pod 'Permission/Contacts'
pod 'Permission/Location'
pod 'Permission/Camera'
# Unit tests
target 'GV Unit Tests' do
end
# Developer Signed distribution target
# target 'Generic Viewer (Developer Signed)' do
# end
# Run code after project has been set up
post_install do |installer|
# Some pods have not yet been updated to Swift 4.
# As a temporary workaround, set their build version to Swift 3.2.
myTargets = ['SwiftQRCode', 'Permission']
installer.pods_project.targets.each do |target|
if myTargets.include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end
结束
最佳答案
我设法解决了这个问题:
1) 编辑方案
2) 确保 Undefined Behavior Sanitiser 已关闭(如果它是灰色的,您必须通过右键单击项目文件/Show Package Contents/xcsharedata/xcschemes 来手动编辑它)
3) 删除 pod - pod deintegrate && pod cache clean --all
4)安装pods——pod install
关于ios - Firebase undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54309505/
我们的开发环境是这样配置的,当我们运行代码的调试版本时,它会在崩溃或 ^C 时进入 gdb。随着最近的一些更改,这种情况不再发生(退出程序而不是进入 gdb),我怀疑符号大小的增加导致了这个问题。 有
刚刚浏览了一个教程,想到了我看到的地方 first_name: 还有一个地方 :first_name 这样对吗?有什么区别? 最佳答案 哈希语法在 Ruby 1.9.2 中发生了变化,以更接近 jso
这里是一个相当抽象的问题,因为我不知道从哪里开始我自己的调查。 我有一个用 CMake 构建的 C 包,它生成 librpdb.so;我为同一个库设置了一个 Ruby Gem,它生成 rpdb.bun
我尝试使用 Symbol 创建对象键并用 Symbol.for 找到对应的值,但它不起作用: const sym = Symbol("x"); let obj = { [sym]: "val" }
这可能是一个愚蠢的问题,但我很高兴知道为什么我们使用带有一些标志的短形式的单符号和带有完整标志的双符号? 例子: 1) -h & --help 2) -f & --force 谁能解释一下原因? 最
我们希望能够在删除物理构建区域时删除符号服务器内容,symstore del 命令对事务 ID 起作用。这是未知的。 How to extract the transaction ID based o
我在一个我不太理解的小程序上遇到这个问题(我对节点红色有点陌生),代码是 var profile = msg.user.profile; var cart = profile.cart = pr
我正在尝试创建一种工资单以在控制台中打印,但我从代码中收到以下错误。很多时候它实际上只是一个错误,但我认为我没有足够的 java 知识来自己修复它。 import java.io.*; import
在 C# 项目中,我在 UnhandledException 中创建了小型转储。在我的 Dev 机器中,项目源和 bin 位于路径 K:\projects\*MYPROJECT* 下,如果我设法让它在
我正在尝试针对另一个使用 libcurl 共享库的共享库 (libtheirstuff.so) 交叉编译我自己的共享库 (libmystuff.so),但出现以下错误: libmystuff.so:
我试图遍历一个数组来检查它是否包含任何通过指定函数的项目。我通过向 Array 对象添加一个 .any() 原型(prototype)来做到这一点: Array.prototype.any = (co
除了这个 undefined symbol 错误外,一切正常: bash-3.2$ make g++ -Wall -g solvePlanningProblem.o Position.o AStarN
我 rsync 目录“Promotion”包含两台具有不同目录结构的机器之间的绝对符号链接(symbolic link)。因此绝对符号链接(symbolic link)在两台机器上都不起作用。为了使它
我有以下 JSX - What is your e-mail address? setStateForProperties(e)}
根据 SVG 的 symbol文档,我可以添加 refX/refY属性给它。 如果我理解正确,我可以使用这些属性来定义符号坐标系中的引用点,因此当我使用 引用它时元素,它将相对于该引用点(而不是默认
请解释以下有关“找不到符号”,“无法解析符号”或“找不到符号”错误的信息: 是什么意思? 什么原因可以导致它们? 程序员如何解决它们? 该问题旨在对Java中的这些常见编译错误进行全面的问答。 最佳答
请解释以下有关“找不到符号”,“无法解析符号”或“找不到符号”错误的信息: 是什么意思? 什么原因可以导致它们? 程序员如何解决它们? 该问题旨在对Java中的这些常见编译错误进行全面的问答。 最佳答
请解释以下有关“找不到符号”,“无法解析符号”或“找不到符号”错误的信息: 是什么意思? 什么原因可以导致它们? 程序员如何解决它们? 该问题旨在对Java中的这些常见编译错误进行全面的问答。 最佳答
请解释以下有关“找不到符号”,“无法解析符号”或“找不到符号”错误的信息: 是什么意思? 什么原因可以导致它们? 程序员如何解决它们? 该问题旨在对Java中的这些常见编译错误进行全面的问答。 最佳答
请解释以下有关“找不到符号”,“无法解析符号”或“找不到符号”错误的信息: 是什么意思? 什么原因可以导致它们? 程序员如何解决它们? 该问题旨在对Java中的这些常见编译错误进行全面的问答。 最佳答
我是一名优秀的程序员,十分优秀!