meg*_*har 11 xcode realm ios cocoapods firebase
错误:
{ 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)
}
Run Code Online (Sandbox Code Playgroud)
小智 22
我对领域有同样的问题,它可以在模拟器上运行,但在实际设备上立即崩溃。似乎在更新到 iOS 13.3.1 时,Apple 改变了免费苹果开发者帐户的行为,不再允许他们使用嵌入式框架。
解决方案是删除use_frameworks!
Podfile 中的 并将其替换为use_modular_headers!
例如
target 'your_project_name' do
use_modular_headers!
pod 'RealmSwift'
end
Run Code Online (Sandbox Code Playgroud)
这将包括它们作为静态库。我在这个 GitHub 问题中偶然发现了解决方案:https : //github.com/Alamofire/Alamofire/issues/3051
归档时间: |
|
查看次数: |
3909 次 |
最近记录: |