nativescript-cli: Failed to verify bitcode in TNSWidgets.framework/TNSWidgets

Environment

Component nativescript has 4.2.4 version and is up to date. Component tns-core-modules has 4.2.1 version and is up to date. Component tns-ios has 4.2.0 version and is up to date.

Plugins

    "@angular/animations": "^6.1.10",
    "@angular/cli": "^6.1.10",
    "@angular/common": "^6.1.10",
    "@angular/compiler": "^6.1.10",
    "@angular/core": "^6.1.10",
    "@angular/forms": "^6.1.10",
    "@angular/http": "^6.1.10",
    "@angular/platform-browser": "^6.1.10",
    "@angular/platform-browser-dynamic": "^6.1.10",
    "@angular/router": "^6.1.10",
    "nativescript-angular": "^6.1.0",
    "nativescript-bitmap-factory": "^1.7.1",
    "nativescript-directions": "^1.3.0",
    "nativescript-drawingpad": "^3.0.3",
    "nativescript-drop-down": "^4.0.1",
    "nativescript-email": "^1.5.3",
    "nativescript-fontawesome": "^1.0.0",
    "nativescript-gradient": "^2.0.1",
    "nativescript-iqkeyboardmanager": "^1.3.0",
    "nativescript-ng-shadow": "^2.1.0",
    "nativescript-phone": "^1.3.1",
    "nativescript-plugin-firebase": "^7.1.5",
    "nativescript-sentry": "^1.5.2",
    "nativescript-sqlite": "^2.2.3",
    "nativescript-theme-core": "^1.0.4",
    "nativescript-ui-autocomplete": "^3.9.0",
    "nativescript-ui-listview": "^3.7.1",
    "nativescript-ui-sidedrawer": "^4.3.1",
    "nativescript-unit-test-runner": "^0.3.4",
    "node-sass": "^4.9.3",
    "npm": "^6.4.1",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.3.3",
    "tns-core-modules": "^4.2.1",
    "zone.js": "^0.8.26"

Describe the bug Started when I was forced to update Xcode to version 10 (to make iOS 12 builds).

Happens when trying to create an Enterprise Archive using XCode. App builds fine but fails with the following error when Enterprise distribution is selected:

Failed to verify bitcode in TNSWidgets.framework/TNSWidgets:
error: Bundle only contains bitcode-marker /var/folders/5d/kv3n6r795l156_mwk8lzpfv00000gn/T/IDEDistributionOptionThinning.Sgt/Payload/hektor.app/Frameworks/TNSWidgets.framework/TNSWidgets (arm64)

I can run the app using the simulator and a dev. build on real device.

I helped reporting a similar issue with the firebase plugin here. And @EddyVerbruggen fixed the bad lib.

This is probably related to this issue.

To Reproduce Create an Enterprise Archive in XCode 10 of an app which uses TNSWidgets.framework.

Expected behavior Enterprise archive created.

Thank You

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Opting out of the new build system did not solve the problem for me. 😞

@jpakulski I had a similar issue when attempting to distribute my app via Enterprise, the workaround that worked in my instance was unchecking the ‘Rebuild from Bitcode’ option shown in the screenshot below.

When distributing apps via the traditional method of iOS App Store, I am able to recheck this option so it would certainly be nice for the settings to be consistent across distribution options.

Hopefully this helps! 😃

Screen Shot 2019-05-15 at 10 48 11 AM

All seems well on our side when using the Xcode 11.