iOS 11应用程序提交:“符号文件太多”

问题描述 投票:7回答:3

我的目标是iOS 11,现在提交该应用程序后,我收到了一封来自苹果的电子邮件,警告“符号文件过多”。

看起来好像CocoaPods框架已包含在不需要的体系结构中。

任何人都可以显示正确的设置是什么,以避免在iOS 11上包含不需要的框架?

ios cocoapods ios11 arm64
3个回答
3
投票

为了避免此警告,您只需要存档应用程序的dSYM文件,而不要存档库。为此,您需要库的更改构建配置不会生成dSYM文件。只需在配置中搜索“调试信息格式”,然后将其从带有dSYM文件的DWARF更改为仅DWARF。在屏幕截图上,您将找到Stripe iOS框架的示例。enter image description here


2
投票

如果将以下行放入podfile中,则不会收到警告:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
        end
    end
end

1
投票

“符号文件太多”警告告诉您,您的项目比CocoaPods框架具有更多的限制性约束。您以iOS 11为目标,但CocoaPods框架的最低部署目标可能小于iOS 11。

如果是这种情况,请将其添加到您的podfile的末尾:

post_install do |installer| 
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config| 
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
        end
    end 
end

podfile screenshot showing post_install

© www.soinside.com 2019 - 2024. All rights reserved.