应用程序崩溃将My框架集成到项目中

时间:2017-06-14 08:51:25

标签: ios objective-c swift

我在将Framework集成到My Project

时遇到以下错误
  

dyld:未加载库:@ rpath / HelperFrameWork.framework / HelperFrameWork
  参考自:   /Users/searchnative-ios1/Library/Developer/CoreSimulator/Devices/ADD59725-025E-4016-934C-B3584877176F/data/Containers/Bundle/Application/3836A80A-1260-49E8-A08F-373A19CC4A76/TestApplication.app/TestApplication   原因:找不到合适的图像。找到了:     /Users/searchnative-ios1/Library/Developer/CoreSimulator/Devices/ADD59725-025E-4016-934C-B3584877176F/data/Containers/Bundle/Application/3836A80A-1260-49E8-A08F-373A19CC4A76/TestApplication.app/Frameworks/HelperFrameWork .framework / HelperFrameWork:   缺少所需的代码签名   ' /Users/searchnative-ios1/Library/Developer/CoreSimulator/Devices/ADD59725-025E-4016-934C-B3584877176F/data/Containers/Bundle/Application/3836A80A-1260-49E8-A08F-373A19CC4A76/TestApplication.app /Frameworks/HelperFrameWork.framework/HelperFrameWork'

我还添加了嵌入式二进制文件和链接框架和库:

enter image description here

如果在目标的“常规”选项卡下将框架状态更改为“可选”而不是“必需”。然后我得到了以下错误。

  

dyld:懒惰符号绑定失败:无法解析符号   _PMaC15HelperFrameWork12UtilityClass in /Users/searchnative-ios1/Library/Developer/CoreSimulator/Devices/ADD59725-025E-4016-934C-B3584877176F/data/Containers/Bundle/Application/236D6027-1420-4BEC-9383-47C5853E3011/TestApplication.app/TestApplication   因为无法加载依赖的dylib#1 dyld:无法解决   符号__TMaC15HelperFrameWork12UtilityClass in   /Users/searchnative-ios1/Library/Developer/CoreSimulator/Devices/ADD59725-025E-4016-934C-B3584877176F/data/Containers/Bundle/Application/236D6027-1420-4BEC-9383-47C5853E3011/TestApplication.app/TestApplication   因为无法加载依赖的dylib#1

任何人都可以帮我解决这个问题吗?

0 个答案:

没有答案