在连接的设备上构建和运行带有 Firebase 框架错误的 swiftUI ios 应用程序的修复方法是啥?
Posted
技术标签:
【中文标题】在连接的设备上构建和运行带有 Firebase 框架错误的 swiftUI ios 应用程序的修复方法是啥?【英文标题】:What is the fix for a swiftUI ios app with Firebase framework error to build and run on a connected device?在连接的设备上构建和运行带有 Firebase 框架错误的 swiftUI ios 应用程序的修复方法是什么? 【发布时间】:2020-02-04 02:08:34 【问题描述】:对于 SwiftUI ios 应用程序出现 Firebase 框架错误不允许在连接的设备上构建和运行的修复方法是什么?
Xcode 可以在 Canvas 面板和模拟器中完美地构建和运行代码,但不能在连接的设备上构建和运行。
(在一个新项目上)
错误信息:
线程 1 #0 0x00000001029172ac in __abort_with_payload ()
dyld`__abort_with_payload:
0x1029172a4 <+0>: mov x16, #0x209
0x1029172a8 <+4>: svc #0x80
-> 0x1029172ac <+8>: b.lo 0x1029172c8 ; <+36>
0x1029172b0 <+12>: stp x29, x30, [sp, #-0x10]!
0x1029172b4 <+16>: mov x29, sp
0x1029172b8 <+20>: bl 0x1029157d8 ; cerror_nocancel
0x1029172bc <+24>: mov sp, x29
0x1029172c0 <+28>: ldp x29, x30, [sp], #0x10
0x1029172c4 <+32>: ret
0x1029172c8 <+36>: ret'
调试区
dyld: Library not loaded: @rpath/FBLPromises.framework/FBLPromises
Referenced from: /private/var/containers/Bundle/Application/1ECE175B-46E5-4FC0-A28A-
BC3255C9F124/Bennett Application.app/Bennett Application
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/1ECE175B-46E5-4FC0-A28A-BC3255C9F124/Bennett
Application.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for
'/private/var/containers/Bundle/Application/1ECE175B-46E5-4FC0-A28A-BC3255C9F124/Bennett
Application.app/Frameworks/FBLPromises.framework/FBLPromises'
还有,你在部署iOS应用到商店的时候,会不会遇到和上面类似的问题?
【问题讨论】:
你能把你的代码贴在这里吗?您在设备上运行的是哪个版本的 iOS? 【参考方案1】:升级到 Apple Developers Program 即可解决此错误。
【讨论】:
以上是关于在连接的设备上构建和运行带有 Firebase 框架错误的 swiftUI ios 应用程序的修复方法是啥?的主要内容,如果未能解决你的问题,请参考以下文章
带有一个适用于android、ios、web的插件的flutter firebase(实时)数据库? [复制]