ios - why CocoasPod increase IPA size? how to reduce the size? -



ios - why CocoasPod increase IPA size? how to reduce the size? -

cocoaspod good, it's not. why? because there flag phone call "-objc" in project. pull object files resulting binary.

for example, empty project "pod 'afnetworking'" , flag "-objc" on, cause binary 7mb. 7mb empty project, that's suck.

some frameworks google map sdk need flag "-objc" on. so, if project "afnetworking pod" , "google map sdk", cause binary 17mb.

so question is: how can turn off "-objc" flag special library? example, maintain "-objc" google map sdk, turn off on afnetworking.

you should seek reply this question cut down .ipa size.

in general, adding static library project in objective-c pull object files resulting binary because cocoa pods installation adds -objc flag linker settings, , stated in linker manual:

-objc loads members of static archive libraries implement objective-c class or category.

this flag included solve problem linking categories, because default linker not include object files containing categories resulting binary.

ios cocoapods

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -