【发布时间】:2021-03-25 20:24:44
【问题描述】:
我正在尝试将 firebase 添加到现有项目中,但在构建时不断出现错误,并且在互联网上搜索了几天后,我还没有解决这个问题 :(
我尝试将 --deep 添加到签名标志,锁定和解锁钥匙串,在 Podfile 中切换到 use_modular_headers!。
我没有可以测试的物理设备。
我的 Podfile 看起来像这样:
# Uncomment the next line to define a global platform for your project
#platform :ios, '12.0'
target 'EyeArtifact' do
# Comment the next line if you don't want to use dynamic frameworks
#use_frameworks!
use_modular_headers!
# Pods for EyeArtifact
pod 'Firebase'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'FirebaseUI'
pod 'FirebaseUI/Google'
pod 'FirebaseUI/Facebook'
pod 'FirebaseUI/OAuth'
pod 'FirebaseUI/Phone'
pod 'FirebaseFirestoreSwift'
# Facebook pods
pod 'FBSDKCoreKit', :modular_headers => true
pod 'FBSDKLoginKit', :modular_headers => true
end
我的错误是:
/Users/jvines/Library/Developer/Xcode/DerivedData/***-bgaqkzrrqevduaadrswisdyouwqv/Build/Products/Debug-iphonesimulator/***.app/Frameworks/AppAuth.framework: replacing existing signature
/Users/jvines/Library/Developer/Xcode/DerivedData/***-bgaqkzrrqevduaadrswisdyouwqv/Build/Products/Debug-iphonesimulator/***.app/Frameworks/AppAuth.framework: code object is not signed at all
In architecture: x86_64
如果我在 use_frameworks! 和 use_modular_headers! 之间切换,我会收到另一个错误:BoringSSL-GRPC.modulemap' not found 构建时
我尝试在构建时禁用签名脚本,但如果我运行应用程序,我会收到此错误:dyld: Library not loaded: @rpath/AppAuth.framework/AppAuth
模拟器运行 iOS 14.2,我使用的是 Xcode 12
我还尝试了一个全新的项目并从头开始添加框架,但遇到了同样的错误。
我是 iOS 开发新手,非常感谢任何帮助!
谢谢你:)
【问题讨论】:
-
试试
use_frameworks! :linkage => :static -
这会产生一堆错误,说找不到或使用 'swiftXXXX',这会导致大约 100 条未定义的符号消息 :( 我在这里错过了一步吗??
标签: ios firebase firebase-authentication cocoapods xcode12