【问题标题】:AppAuth not signed at all when adding firebase to xcode project将firebase添加到xcode项目时,AppAuth根本没有签名
【发布时间】: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


【解决方案1】:

在这里找到我的问题的答案:https://stackoverflow.com/a/62172769/14828440

简而言之,即使我没有任何 swift 文件,我也缺少桥接头。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-11-16
    • 1970-01-01
    • 2021-11-09
    • 2011-03-14
    • 2010-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多