How do I specify -weak_framework for multiple frameworks while compiling iPhone apps for older deployment targets?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In the Build Phases section of your target, you've got the list of the linked frameworks.
For each one, you can select Required or Optional, optional meaning weak.
回答2:
Add a linker flag -weak_framework <
framework_name> Check this link: https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html