google / cocoapods-size

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARCHIVE FAILED when using Xcode 10.2

davidair opened this issue · comments

When using Xcode 10.2, the tool fails with ARCHIVE FAILED:

./measure_cocoapod_size.py --cocoapods FirebaseAnalytics

Build system information
error: An empty identity is not valid when signing a binary for the product type 'Application'. (in target 'SizeTest')

** ARCHIVE FAILED **

Same here.

Bumping this +1

Found the solution.
The size_build_configuration.json file needs to include the location of your project and the flag CODE_SIGNING_ALLOWED needs to be set to NO. In my case:

{
  "projectFile": "/{path-to}/cocoapods-size/sizetestproject/SizeTest.xcodeproj",
  "appScheme": "SizeTest",
  "iOSVersion": "8.0",
  "compilerFlags": {
    "ARCHS": "arm64",
    "CODE_SIGN_IDENTITY": "",
    "CODE_SIGNING_REQUIRED": "NO",
    "CODE_SIGNING_ALLOWED": "NO",
    "ENABLE_BITCODE": "NO"
  },
  "withLinkMap": true,
  "officialData": false
}

With these two changes I'm able to run the project and get Cocoapod sizes. ✌️

Looking into this

Thanks a lot gmoraleda for looking into this issue! #10 should fix the issue thanks 👍

Fixed by gmoraleda