libiconv。在Xcode7 GM中没有发现dylib

时间:2022-03-19 22:18:54

libiconv.dylib is missing in Xcode7 GM, But found in Xcode6.4 release
My OS version: OS X EI Capitan GM

libiconv。dylib在Xcode7 GM中不存在,但在Xcode6.4中发现发布了我的OS版本:OS X EI Capitan GM

libiconv。在Xcode7 GM中没有发现dylib

1 个解决方案

#1


20  

Oh, you are fast.

哦,你是快。

Since Xcode 7 and iOS 9, Apple did a lot to strip the size of apps, including changing .dylib to .tbd.

自从Xcode 7和ios9以来,苹果做了很多事情来缩减应用程序的大小,包括将.dylib改成.tbd。

To solve your problem, you don't need to add library & framework. Instead, you can add the library by changing the following option:

要解决这个问题,不需要添加库和框架。相反,您可以通过更改以下选项来添加库:

Other Linker Flags > Add "-l{yourlibraryname} (no space after -l)

其他链接标志>添加“-l{yourlibraryname}”(在-l之后没有空格)

In your case, you can add -liconv in Other Linker Flags.

在您的示例中,可以在其他链接器标志中添加-liconv。

For those who are curious, the .tbd files are new "text-based stub libraries", that provide a much more compact version of the stub libraries for use in the SDK, and help significantly reduce its download size.

对于那些好奇的人来说,.tbd文件是新的“基于文本的存根库”,它为SDK中使用的存根库提供了一个更紧凑的版本,并有助于显著降低下载大小。

Reference: https://forums.developer.apple.com/message/8609#8609

参考:https://forums.developer.apple.com/message/8609 # 8609

#1


20  

Oh, you are fast.

哦,你是快。

Since Xcode 7 and iOS 9, Apple did a lot to strip the size of apps, including changing .dylib to .tbd.

自从Xcode 7和ios9以来,苹果做了很多事情来缩减应用程序的大小,包括将.dylib改成.tbd。

To solve your problem, you don't need to add library & framework. Instead, you can add the library by changing the following option:

要解决这个问题,不需要添加库和框架。相反,您可以通过更改以下选项来添加库:

Other Linker Flags > Add "-l{yourlibraryname} (no space after -l)

其他链接标志>添加“-l{yourlibraryname}”(在-l之后没有空格)

In your case, you can add -liconv in Other Linker Flags.

在您的示例中,可以在其他链接器标志中添加-liconv。

For those who are curious, the .tbd files are new "text-based stub libraries", that provide a much more compact version of the stub libraries for use in the SDK, and help significantly reduce its download size.

对于那些好奇的人来说,.tbd文件是新的“基于文本的存根库”,它为SDK中使用的存根库提供了一个更紧凑的版本,并有助于显著降低下载大小。

Reference: https://forums.developer.apple.com/message/8609#8609

参考:https://forums.developer.apple.com/message/8609 # 8609