我正在使用适用于 iOS 的“谷歌分析”SDK。sdk 强迫我设置Enable bitcode
fromYes
到NO
当我禁用位码时,我的设备(iOS 9)上出现编译错误,但模拟器上没有dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /var/mobile/Containers/Bundle/Application/940F4D49-6239-4645-9FAE-99D482BFA1C4/Skip It.app/Skip It
Reason: image not found
我通过 cocoaPods 添加了 Alamofire。为了解决上述错误,我在“Linked Framworks and Libraries”中添加了 Alamofire 框架并将其设为可选,如屏幕截图所示
现在我可以在我的设备(iOS 9)上运行应用程序,但是每当使用其他可选框架的 Alamofire 的代码时,应用程序就会崩溃。
我无法找到解决方案。我google了很多,但没有用。请有人帮助