运行iOS应用会导致框架“代码签名无效"的运行时错误,并且会导致运行时错误. [英] Running iOS apps causes runtime error for frameworks "code signature invalid"

查看:306
本文介绍了运行iOS应用会导致框架“代码签名无效"的运行时错误,并且会导致运行时错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试运行此应用程序时,它都会生成OK,然后安装,但是一旦运行该应用程序就会中断并打印此错误消息. XCode 11和iOS 13.

Every time I try to run this app it builds OK, and installs but as soon as it runs the app breaks and prints this error message. XCode 11 and iOS 13.

dyld: Library not loaded: @rpath/StandardCyborgFusion.framework/StandardCyborgFusion
  Referenced from: /private/var/containers/Bundle/Application/2292CCF2-800F-4E28-AF10-A1B98081DD0A/StandardCyborgExample.app/StandardCyborgExample
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/2292CCF2-800F-4E28-AF10-A1B98081DD0A/StandardCyborgExample.app/Frameworks/StandardCyborgFusion.framework/StandardCyborgFusion: code signature invalid for '/private/var/containers/Bundle/Application/2292CCF2-800F-4E28-AF10-A1B98081DD0A/StandardCyborgExample.app/Frameworks/StandardCyborgFusion.framework/StandardCyborgFusion'

我在这里和App Developer论坛上都看到过许多类似的帖子,但都没有一个解释或有效的解决方法.我已经尝试过

I've seen many similar posts on here and on App Developer forums about this problem but not one has an explanation or a valid fix. I've tried

  • 清洁和建筑
  • 重新启动XCode
  • 重新启动Mac
  • 完全重置钥匙串
  • 验证所有钥匙串证书的信任设置位于使用系统默认值"上
  • 工厂重置我的Mac

更新1: 我的iOS设备似乎有问题.该应用程序可以在模拟器上启动,但是该模拟器不能满足我的开发目的,因此我需要在设备上进行这项工作.我最近将iPhone XR更新为iOS 13.3.1.

UPDATE 1: It appears to be an issue with my iOS device. The app can start up on a simulator, but the simulator is not good for my development purposes so I need to make this work on my device. I recently updated my iPhone XR to iOS 13.3.1.

更新2: 发现另一个似乎有相同问题的小组 https://github.com/flutter/flutter/issues/49504 .

UPDATE 2: Found another group seeming to have the same issue https://github.com/flutter/flutter/issues/49504.

推荐答案

我正在使用CocoaPods,对我来说,这可以修复错误(Wasa22对github问题的回答):

I'm using CocoaPods, and for me this fixes the error (Wasa22's Answer on github issue):

  1. 打开Podfile
  2. 评论use_frameworks!
  3. 添加use_modular_headers!
  4. 在终端中,进行Pod更新-> Pod安装
  5. 在Xcode中,清理(Command-Shift-K)->构建并运行.

来源: https://github.com/Alamofire/Alamofire/issues/3051

这篇关于运行iOS应用会导致框架“代码签名无效"的运行时错误,并且会导致运行时错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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