我有一种情况,我需要在"链接二进制文件和库#34;但它为我创造了一些问题,特别是在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模拟器上发生的问题。如果我删除框架,一切正常。