gpt4 book ai didi

ios - 更新iOS后,所有使用该框架的应用程序都停止在设备上运行,而是在模拟器上运行

转载 作者:行者123 更新时间:2023-12-01 15:16:49 26 4
gpt4 key购买 nike

错误:
{
dyld:库未加载:@rpath/Realm.framework/Realm
引用自:/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Favorite Places
原因:没有找到合适的图片。发现:
/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm:代码签名对'/private/var/containers/Bundle/Application/无效43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm'

    /private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm: stat() failed with errno=25
/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm: code signature invalid for '/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm'

/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm: stat() failed with errno=1
/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm: code signature invalid for '/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm'

/private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF618/Favorite Places.app/Frameworks/Realm.framework/Realm: stat() failed with errno=1
(lldb)
}

最佳答案

我对 Realm 有同样的问题,它可以在模拟器上运行,但在实际设备上会立即崩溃。
似乎在更新到 iOS 13.3.1 时,Apple 改变了免费苹果开发者帐户的行为,不再允许他们使用嵌入式框架。

解决方案是删除 use_frameworks!在您的 Podfile 中并将其替换为 use_modular_headers!
例如

target 'your_project_name' do
use_modular_headers!
pod 'RealmSwift'
end

这会将它们包含为静态库。
我偶然发现了这个 GitHub 问题中的解决方案:
https://github.com/Alamofire/Alamofire/issues/3051

关于ios - 更新iOS后,所有使用该框架的应用程序都停止在设备上运行,而是在模拟器上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60045282/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com