iOS,Xcode:如何嵌入框架但不链接框架?

时间:2019-04-27 09:34:35

标签: ios swift xcode frameworks

我正在应用中实现一些自定义框架,其中一项要求是“ 嵌入但不链接”。 我该怎么办?

我在 Target>嵌入式二进制文件 中用+添加了框架,但该框架自动出现在下面的“链接的框架和库”中。

现在,当我运行应用程序时-我崩溃了。我读了一些主题,发现崩溃是由于我的框架位于链接框架中。

我正在使用工作区,豆荚。该框架为https://github.com/holzschu/ios_system/tree/8b33137d830c041482bf86cec5cf06d4d1aa19d4

说明:

 Integration with your app:
 Link your application with the ios_system.framework framework.
 Embed (but don't link) the frameworks corresponding to the commands you need (libtar.dylib if you need tar, libfiles.dylib for cp, rm, mv...).
 Add the two dictionaries, Resources/commandDictionary.plist and Resources/extraCommandsDictionary.plist to the "Copy Bundle Resources" step in your Xcode project.

我通过脚本将文件下载到项目中。将框架的位置添加到“目标”>“构建设置”>“框架搜索路径”

0 个答案:

没有答案
相关问题