2

我有一种情况,我需要在“Link Binaries with Libraries”下添加一个框架,但这给我带来了一些问题,特别是在 iOS 9 模拟器上。

It MUST be noted that this framework work without importing it programatically. In
other words it's a framework which if imported replaces the native code (the 
implementation is hidden from me). So basically even if you don't import this 
 framework or use any of it's API, it effects and alters the 
implementation of native APIs

我有什么办法可以通过在构建设置中使用一些标志或使用任何预处理器宏来防止它编译?

到目前为止我已经尝试过:

1. Added this framework as optional under "Link binaries with libraries"
2. Under the build settings> Other linker flag> added the framework as a 
weak framework. 

在此处输入图像描述

上述两点并没有阻止它编译,因为我可以在我的 iOS 9 模拟器上看到这个问题。如果我删除框架,一切正常。

4

0 回答 0