ARCHIVE FAILED when using Xcode 10.2
davidair opened this issue · comments
davidair commented
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 **
Guillermo Moraleda commented
Same here.
Dhruv Sringari commented
Bumping this +1
Guillermo Moraleda commented
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. ✌️
Vinay Guthal commented
Looking into this
Vinay Guthal commented
Thanks a lot gmoraleda for looking into this issue! #10 should fix the issue thanks 👍
Vinay Guthal commented
Fixed by gmoraleda