问题描述
我已经做了一些搜索未加载库的答案,我发现几乎每个答案都与在Application中使用框架相关但我的问题不同。它实际上在框架中使用框架,然后在App中使用。
假设我有框架 A 和 B ,框架 A 使用框架 B 然后框架库未加载在App中使用所以最终我只想在app中使用或公开框架 A 而不是并且没有直接需要未在App中加载的Framework Library。
到目前为止我做了什么:
在应用程序中添加了框架 A 并添加到嵌入式二进制文件中并使用了一些框架代码 A 但没有框架 B 即可。构建并运行
问题
构建成功但是在将应用程序安装到设备后生成问题。
注意:框架名称根据A和B更改。
要求
我只想与客户而不是框架 B 共享框架 A ,因为App会与框架 A 进行通信只是,所以需要一些建议如何解决这个问题,也请不要把那些与单帧相关的答案添加到app中。谢谢
花了一些时间后阅读
现在构建框架 A ,转到产品文件夹并单击显示在finder Framework A 中,您将看到框架 B 将被添加并在屏幕截图中显示 A 。
这一切都来自框架方面,现在添加框架 A 。现在再次尝试在Embedded部分添加另一个框架并单击Add Others按钮,单击Framework A - >单击Framework文件夹选择Framework B ,如屏幕截图所示。
这将解决问题。如果有人没有理解随意评论我会尽力说清楚。希望这也会对其他人有所帮助。
I've done some search for answer of Library not loaded and I found almost every answer related to using framework in Application but my problem is different. Its actually using framework in framework and then use in App.
Lets say I have framework A and B, framework A use framework B and then framework Library not loaded use in App so eventually I only want to use or expose frame A in app rather than both and there is no directly need of Framework Library not loaded in App.
What I've done so far:
Added Framework A into App and added also into Embedded Binaries and use some code of Framework A but no Framework B. Build and Run
Issue
Build succeeded but right after installing app into device this generate issue.
note: Frameworks name changed according to A and B.
RequirementI only want to share framework A with client instead of framework B, because App will communicate with framework A only, so need some suggestion how to resolve this, also please don't refer me those answer that relate to single frame add into app. Thanks
After spending some time and read this answer, which clearly says
So I just used some trick, in Framework A go to Target -> Add New Copy File Phase -> Changed destination to Framework -> add Framework B as shown in screen shot.
Now build Framework A, go to Product folder and click on show in finder Framework A, you will see Framework B will be added and expose inside A as show in screenshot.
This all from framework side, Now add framework A in Embedded section inside App. Now again try to add another framework in Embedded section and click Add Others button, click on Framework A -> click on Framework folder choose Framework B as shown in screenshot.
This will resolve issue.If someone not understand feel free to comment I'll try to make it clear. Hope this will help others too.
这篇关于库中未加载Xcode中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!