ios - AFNetworking 是在没有完整位码的情况下构建的

标签 ios objective-c afnetworking

当我在项目中启用位码时,出现错误“AFNetworking 是在没有完整位码的情况下构建的”。 有一个open issue也在那里。

如果有人解决了这个问题,请帮助我。

AFNetworking 版本:3.2.1

详细错误:“ld:无法生成位码包,因为构建了“/Users/Library/Developer/Xcode/DerivedData/ServiceSDK-hkwcndktudaxkjebecaqimswckgp/Build/Products/Release-iphoneos/AFNetworking/AFNetworking.framework/AFNetworking”没有完整的位码。位码的所有框架和 dylib 必须从 Xcode Archive 或安装构建文件“/Users/Library/Developer/Xcode/DerivedData/ServiceSDK-hkwcndktudaxkjebecaqimswckgp/Build/Products/Release-iphoneos/AFNetworking/AFNetworking.framework/”生成AFNetworking'用于架构armv7"

最佳答案

好的,所以我通过在 podfile 中添加以下内容解决了该问题

    post_install do |installer|
         installer.pods_project.targets.each do |target|
             target.build_configurations.each do |config|
                 config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'
                 config.build_settings['ENABLE_BITCODE'] = 'YES'
             end
         end
     end

也许这会对其他人有所帮助。

谢谢

关于ios - AFNetworking 是在没有完整位码的情况下构建的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56319715/

相关文章:

ios - 正在从解析数据库检索数据

objective-c - main() 之外的变量值不正确

ios - 将 URL 图像与 UIButton 一起使用

objective-c - AFNetworking 发布请求未通过 Sinatra 应用程序

ios - 为什么 CocoapPods 不接受类的评论?

iOS 在代码中创建 TableViewCell

ios - 如何在 iOS 下动态加载字体。 (真正的)

ios - 代码没有被调用

ios - 使用清洁委托(delegate)模式

ios - 使用 AFNetworking 解析 JSON