google / cocoapods-size

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with tensorflow lite

noe opened this issue · comments

When I use this tool on tensorflow lite with ./measure_cocoapod_size.py --cocoapods TensorFlowLiteSwift, it fails. The last part of the log, where the errors are shown, is this:

    cd /var/folders/8p/1ts5pq511r995_jqp1h4xx_m0000gn/T/tmpbblv2xlf/sizetestproject
    /usr/bin/touch -c /Users/noe/Library/Developer/Xcode/DerivedData/SizeTest-guyadrsgbjzabxelzltmfcsodlje/Build/Intermediates.noindex/ArchiveIntermediates/SizeTest/InstallationBuildProductsLocation/Applications/SizeTest.app

** ARCHIVE SUCCEEDED **

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace SizeTest.xcworkspace -scheme SizeTest -configuration Release archive -archivePath out.xcarchive ARCHS=arm64 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ENABLE_BITCODE=NO

User defaults from command line:
    IDEArchivePathOverride = /private/var/folders/8p/1ts5pq511r995_jqp1h4xx_m0000gn/T/tmpgh6o702m/sizetestproject/out.xcarchive
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = arm64
    CODE_SIGN_IDENTITY =
    CODE_SIGNING_ALLOWED = NO
    CODE_SIGNING_REQUIRED = NO
    ENABLE_BITCODE = NO

xcodebuild: error: 'SizeTest.xcworkspace' does not exist.
[Cocoapods-size] Shell: cp -r sizetestproject /var/folders/8p/1ts5pq511r995_jqp1h4xx_m0000gn/T/tmpbblv2xlf
[Cocoapods-size] Shell: cp -r sizetestproject /var/folders/8p/1ts5pq511r995_jqp1h4xx_m0000gn/T/tmpgh6o702m
[Cocoapods-size] Shell: pod init
[Cocoapods-size] Shell: touch Podfile
[Cocoapods-size] Shell: cat Podfile
[Cocoapods-size] Shell: pod install
Command error: pod install
 Command 'pod install' returned non-zero exit status 1.
[Cocoapods-size] Shell: xcodebuild -project SizeTest.xcodeproj -scheme SizeTest -configuration Release archive -archivePath out.xcarchive ARCHS=arm64 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ENABLE_BITCODE=NO
[Cocoapods-size] Shell: xcodebuild -workspace SizeTest.xcworkspace -scheme SizeTest -configuration Release archive -archivePath out.xcarchive ARCHS=arm64 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ENABLE_BITCODE=NO
Command error: xcodebuild -workspace SizeTest.xcworkspace -scheme SizeTest -configuration Release archive -archivePath out.xcarchive ARCHS=arm64 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ENABLE_BITCODE=NO
 Command 'xcodebuild -workspace SizeTest.xcworkspace -scheme SizeTest -configuration Release archive -archivePath out.xcarchive ARCHS=arm64 CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ENABLE_BITCODE=NO' returned non-zero exit status 66.
Traceback (most recent call last):
  File "./measure_cocoapod_size.py", line 322, in <module>
    Main()
  File "./measure_cocoapod_size.py", line 318, in Main
    GetPodSizeImpact(args)
  File "./measure_cocoapod_size.py", line 242, in GetPodSizeImpact
    raise ValueError(
ValueError: The size of the following pod combination is 0 and this could be caused by a failed build.
TensorFlowLiteSwift

The full log can be found here.

This does not happen with other pods. For instance, ./measure_cocoapod_size.py --cocoapods GoogleSignIn works perfectly fine.

Thanks for this super useful tool!