我的目标是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['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
end
end
end
“符号文件太多”警告告诉您,您的项目比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