Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 11 app submission: "Too many symbol files"

I am targeting iOS 11, and now after submitting the app I receive an email from Apple with the warning "Too many symbol files".

It looks like CocoaPods frameworks are included for unneeded architectures.

Can anyone show what the proper settings are, in order to avoid including unneeded frameworks on iOS 11?

like image 749
Daniele B Avatar asked Jul 14 '18 03:07

Daniele B


2 Answers

"Too many symbol files" warning is telling you that your project has more restrictive constraints than the CocoaPods frameworks. You are targeting iOS 11 but your CocoaPods frameworks might have a minimum deployment target that is less than iOS 11.

If that's the case, then add this at the end of your 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

like image 51
Onnmir Avatar answered Sep 20 '22 05:09

Onnmir


To avoid this warning you need to archive only dSYM file of your application but not libraries. For this, you need change build configuration of the libraries do not generate a dSYM file. Just search for "debug information format" in configuration and change it from DWARF with dSYM File to DWARF only. On the screenshot, you will find an example for Stripe iOS framework. enter image description here

like image 42
Christopher Nassar Avatar answered Sep 19 '22 05:09

Christopher Nassar