google / cocoapods-size

Measure the final binary size for the given set of Cocoapods.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The script measure_cocoapod_size.py is no longer working

charlotteliang opened this issue · comments

The script measure_cocoapod_size.py seems recently breaks
Reproduce steps:
./measure_cocoapod_size.py --cocoapods FirebaseCore

I got error:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from :1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error:
could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>

commented

I had similar issue in the past using this script as well doesn't seem to work for some pods. And recently I had to measure some other pods and gave this script another shot, seems to be working now. Probably no longer relevant to you (since it's ~2 years ago), but if it still is, I just ran the reproduce steps and worked on my end:

.....
.....
** ARCHIVE SUCCEEDED **
The pods combined add an extra size of 316728 bytes