除了Cocoapods之外,还有其他方法可以将Firebase整合到我的iOS应用程序中吗? [英] Is There an Alternative Way to Incorporate Firebase into my iOS App Other Than Cocoapods?

查看:101
本文介绍了除了Cocoapods之外,还有其他方法可以将Firebase整合到我的iOS应用程序中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iPhone最近自动更新为iOS 13.3.1,直到我很晚才知道,直到苹果显然在Xcode内的物理设备上测试应用程序时才阻止使用某些外部框架。

My iPhone recently automatically updated to iOS 13.3.1, and unknown to me until it was to late apparently Apple blocked the use of some external frameworks when testing apps on a physical device within Xcode.

我无法再在iPhone上运行我的应用程序(尽管模拟器仍然可以运行,但是非常不方便)。我正在使用cocoapods,导致此问题的是Firebase。我需要Firebase,所以我的问题是:是否有另一种无需使用Pod即可将Firebase集成到我的应用程序的方法?我仍在使用cocoapods做其他事情,它们似乎工作正常,但对于Firebase,有没有一种方法可以手动添加框架,以便仍然能够在我的物理设备上启动它?

I can no longer run my app on my iPhone (although the simulator still works but it's SO much more inconvenient). I'm using cocoapods and the one that's causing the issue is Firebase. I need Firebase, so my question is: Is there another way to integrate Firebase into my app without using pods? I'm still using cocoapods for other things and they seem to work fine, but for Firebase is there a way to manually add the frameworks so as to still be able to launch it on my physical device?

作为参考,这是另一个在StackOverflow上问的问题,它显示了我遇到的确切问题:未加载的库:@ rpath / FBLPromises.framework / FBLPromises iOS 13.3.1

For reference, here's another question that was asked on StackOverflow that shows my exact issue I'm having: Library not loaded: @rpath/FBLPromises.framework/FBLPromises iOS 13.3.1

建议包括:


  • 我的podfile中的 use_frameworks! use_modular_headers!,但这不适用于Firebase,因为很多其他事情都中断了……像它需要动态的以便Firebase起作用。

  • 从13.3.1恢复到iOS 13.3。我当然愿意这样做,但我尝试了好几天,但看起来Apple现在已停止签名13.3,所以我无法使用13.3固件将iPhone还原到以前的版本...意味着我坚持使用13.3.1

  • 升级到付费开发者帐户。有人说这个问题仅与免费的开发者帐户有关,但由于两个原因,我现在不愿意冒险升级我的帐户: 1)我无从得知确保可以通过升级帐户来解决此问题,并且我不想无担保地花费现金,并且 2)我距离向App Store提交我的应用还有一段路要走,所以在我不确定的时间内,无需向Apple支付费用。

  • Exchanging use_frameworks! in my podfile with use_modular_headers!, but that doesn't work with Firebase as many other things break... like it NEEDS to be dynamic in order for Firebase to work.
  • Reverting back to iOS 13.3 from 13.3.1. I'd be willing to do this of course and I tried for several days, but looks like Apple stopped signing 13.3 now so I'm unable to use the 13.3 firmware in order to restore my iPhone to the previous version... meaning I'm stuck with 13.3.1
  • Upgrading to a paid developer account. Some people are saying that this issue is only with free developer accounts, but I'm not willing to take the risk of upgrading my account right now for 2 reasons: 1) I have no way of knowing for sure that this issue will be fixed by upgrading my account and I don't want to spend the cash without a guarantee and 2) I'm still a ways away from submitting my app the the App Store so there's no need to pay a fee to Apple while I'm still in development for an indefinite amount of time.

返回问题手边:我是否可以手动将Firebase框架添加到我的应用程序,而不会遇到通过cocoapods进行添加的相关问题,例如上面的链接问题?

编辑1

这是我的Podfile供参考:

This is my Podfile for reference:

    # Uncomment the next line to define a global platform for your project

platform :ios, '8.0'

target 'JeegO' do
  # Comment the next line if you don't want to use dynamic frameworks

#use_frameworks!

use_modular_headers!

  # Pods for JeegO

pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'SVProgressHUD'
pod 'ReachabilitySwift'
pod 'SendGrid', :git => 'https://github.com/scottkawai/sendgrid-swift.git'
pod 'iCarousel'
#pod 'PromisesSwift'

end

编辑2

我最终删除了我的Firebase容器尝试使用Firebase的zip二进制分发版,如下所示,但是不幸的是,由于我的一生,我无法正常使用它,因此我将其归因于丢失的原因。按照自述文件进行集成静态Firebase SDK似乎很简单,但是它仅添加了大约50个未定义符号问题,因此我最终重新添加了Pod,可能只需要硬着头皮并注册付费的Apple开发人员程序即可进行调试在我的设备上...向苹果滚来滚去...

I ultimately removed my Firebase pods and tried using Firebase's zip binary distribution as suggested below, but for the life of me I can't get it to work so I'm chalking it up to a lost cause, unfortunately. Following the readme to integrate the static Firebase SDKs seemed straightforward but it just added about 50 "undefined symbol" issues among other things, so I ended up adding the pods back in and will probably just have to bite the bullet and register for the paid apple developer program in order to debug on my device... eye roll to Apple...

推荐答案

Firebase确实支持 use_modular_headers!如果遇到问题,请提交问题详细信息。

Firebase does support use_modular_headers! If you're seeing a problem, please file an issue with the details.

或者,Firebase还提供了 zip二进制发行版实验性迦太基分布

Alternatively, Firebase also provides a zip binary distribution and an experimental Carthage distribution.

这篇关于除了Cocoapods之外,还有其他方法可以将Firebase整合到我的iOS应用程序中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆