编辑:无法用重复问题中的答案和此处发布的其他答案来解决,但最终直接在我的项目中复制了库的源代码。这样,就可以了。

尝试使用AnyFormatKit库运行我的应用程序时出现以下运行时错误:


  dyld:未加载库:@ rpath / AnyFormatKit.framework / AnyFormatKit
  引用自:
  /Users/recruta/Library/Developer/CoreSimulator/Devices/1DA80144-E533-42D4-AD37-330F4DC051C0/data/Containers/Bundle/Application/E1D7058C-7D21-47F5-B513-180EC649B14D/IPS.app/IPS
  原因:未找到合适的图像。确实找到了:
    /Users/recruta/Library/Developer/CoreSimulator/Devices/1DA80144-E533-42D4-AD37-330F4DC051C0/data/Containers/Bundle/Application/E1D7058C-7D21-47F5-B513-180EC649B14D/IPS.app/Frameworks/AnyFormatKit.framework / AnyFormatKit:
  缺少所需的代码签名
  '/Users/recruta/Library/Developer/CoreSimulator/Devices/1DA80144-E533-42D4-AD37-330F4DC051C0/data/Containers/Bundle/Application/E1D7058C-7D21-47F5-B513-180EC649B14D/IPS.app/Frameworks/AnyFormatKit。 framework / AnyFormatKit'
  
  /Users/recruta/Library/Developer/CoreSimulator/Devices/1DA80144-E533-42D4-AD37-330F4DC051C0/data/Containers/Bundle/Application/E1D7058C-7D21-47F5-B513-180EC649B14D/IPS.app/Frameworks/AnyFormatKit.framework / AnyFormatKit:
  缺少所需的代码签名
  '/Users/recruta/Library/Developer/CoreSimulator/Devices/1DA80144-E533-42D4-AD37-330F4DC051C0/data/Containers/Bundle/Application/E1D7058C-7D21-47F5-B513-180EC649B14D/IPS.app/Frameworks/AnyFormatKit。 framework / AnyFormatKit'
  
  /Users/recruta/Library/Developer/CoreSimulator/Devices/1DA80144-E533-42D4-AD37-330F4DC051C0/data/Containers/Bundle/Application/E1D7058C-7D21-47F5-B513-180EC649B14D/IPS.app/Frameworks/AnyFormatKit.framework / AnyFormatKit:
  缺少所需的代码签名
  '/Users/recruta/Library/Developer/CoreSimulator/Devices/1DA80144-E533-42D4-AD37-330F4DC051C0/data/Containers/Bundle/Application/E1D7058C-7D21-47F5-B513-180EC649B14D/IPS.app/Frameworks/AnyFormatKit。 framework / AnyFormatKit'


我似乎无法解决这个问题。有什么想法可能导致此问题吗?

最佳答案

观看此附件的视频Demo

在安装好xcode的pod并从.xworkSpace打开后,和我一起运行

ios - dyld:未加载库:@ rpath/AnyFormatKit.framework/AnyFormatKit-LMLPHP

10-08 06:08