question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ARCHIVE FAILED when using Xcode 10.2

See original GitHub issue

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 **

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gmoraledacommented, Jun 7, 2019

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. ✌️

0reactions
VinayGuthalcommented, Jun 12, 2019

Fixed by gmoraleda

Read more comments on GitHub >

github_iconTop Results From Across the Web

Archive Failed In Jenkins with xcode 10.2 - Stack Overflow
ipa from jenkins with freestyle project. I am using xcode10.2 and jenkins ver 2.164.1. But I faced the following issue. The following build ......
Read more >
Xcode 10.1 Archiving - linker comm… | Apple Developer Forums
Hi guys. I'm using Xcode 10.1 (10B61). The original App was created with Unity 2018.2.15.f1. When I test the App on iOS devices...
Read more >
What's new in Xcode 10? [Updated for 10.1, 10.2 and 10.3]
After building an archive, this option can be selected in the Organizer by clicking the Distribute App button and then selecting the Developer...
Read more >
Xcode 10.2 build failing because of missing SDK "iphoneos12.1"
Since today the CI build of our xcode workspace is failing. The only difference I can see is that the Xcode version was...
Read more >
How to update to Xcode 10.2.1 on High Sierra - CodeWithChris
Navigate to Xcode 10.2.1.app/Contents/ and edit the file Info.plist, change the Minimum System Version to 10.13.6 (it should have 10.14.3 originally written on ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found