Nativescript: Export Failed IOS

Created on 10 Nov 2017  Â·  16Comments  Â·  Source: NativeScript/NativeScript

* ARCHIVE SUCCEEDED *

2017-11-10 12:21:28.971 xcodebuild[6728:50630] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/7g/tp4sm6_n0dxcvs3zg3d7nwx80000gn/T/Hieber_2017-11-10_12-21-28.970.xcdistributionlogs'.
2017-11-10 12:21:31.412 xcodebuild[6728:50630] [MT] IDEDistribution: Step failed: : Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=8 \"term-size has conflicting provisioning settings.\" UserInfo={NSLocalizedDescription=term-size has conflicting provisioning settings., NSLocalizedRecoverySuggestion=term-size is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the \"signingCertificate\" entry from your Export Options property list, or switch to manual signing by setting \"signingStyle\" to \"Manual.}"
)}
error: exportArchive: term-size has conflicting provisioning settings.

Error Domain=IDEProvisioningErrorDomain Code=8 "term-size has conflicting provisioning settings." UserInfo={NSLocalizedDescription=term-size has conflicting provisioning settings., NSLocalizedRecoverySuggestion=term-size is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the "signingCertificate" entry from your Export Options property list, or switch to manual signing by setting "signingStyle" to "Manual.}

* EXPORT FAILED *

ios

Most helpful comment

@NickIliev i upgraded to 3.4 and i removed the platform and re-added. its working fine now...

All 16 comments

Hi @pap5508,
Thank you for your interest in NativeScript.
I reviewed your case, however, was unable recreate an issue with the archiving and exporting ios application.
Regarding that, It would help if you could give us some more info about your application and if you are using a vanilla JavaScritp application or NativeScript Angular. Also provide an info, about the steps, which you follow while building the app for release.
Due to provided log, I notice that the error might be related to an issue with the certificates.
In the meantime verify, whether you are signing the application with the correct provisioning profile.

@tsonevn : Thank you for Reply,

I am using Nativescript Angular,
To run the application using command _npm run ios6s-prod_

Node version: v6.10.2
tns-core-modules: 3.3.0

"tns-ios": {
      "version": "3.4.0-2017-11-9-1"
    },
    "tns-android": {
      "version": "3.2.0"
    }
  },
  "dependencies": {
    "@angular/common": "~4.4.5",
    "@angular/compiler": "~4.4.5",
    "@angular/core": "~4.4.5",
    "@angular/forms": "~4.4.5",
    "@angular/http": "~4.4.5",
    "@angular/platform-browser": "~4.4.5",
    "@angular/platform-browser-dynamic": "~4.4.5",
    "@angular/router": "~4.4.5",
    "@ngx-translate/core": "^7.0.0",
    "@ngx-translate/http-loader": "0.1.0",
    "email-validator": "^1.0.7",
    "latest-version": "^3.1.0",
    "moment": "^2.18.1",
    "nativescript-angular": "^4.4.1",
    "nativescript-camera": "^3.1.4",
    "nativescript-cardview": "^2.0.2",
    "nativescript-checkbox": "^2.1.11",
    "nativescript-couchbase": "^1.0.18",
    "nativescript-drop-down": "^3.2.0",
    "nativescript-geolocation": "0.0.19",
    "nativescript-imagepicker": "^4.0.1",
    "nativescript-iqkeyboardmanager": "^1.1.0",
    "nativescript-permissions": "^1.2.3",
    "nativescript-plugin-firebase": "^4.2.1",
    "nativescript-pro-ui": "3.1.4",
    "nativescript-sqlite": "^1.1.11",
    "nativescript-theme-core": "~1.0.4",
    "ng2-filter-pipe": "^0.1.10",
    "ng2-translate": "^5.0.0",
    "reflect-metadata": "~0.1.10",
    "rxjs": "~5.4.2",
    "tns-core-modules": "^3.3.0",
    "tns-platform-declarations": "^3.3.0"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~4.4.5",
    "@ngtools/webpack": "1.3.1",
    "babel-traverse": "6.4.5",
    "babel-types": "6.4.5",
    "babylon": "6.4.5",
    "copy-webpack-plugin": "~4.0.1",
    "cross-env": "^5.1.1",
    "extract-text-webpack-plugin": "~2.1.0",
    "lazy": "1.0.11",
    "mkdir": "0.0.2",
    "mkdirp": "^0.5.1",
    "nativescript-css-loader": "~0.26.0",
    "nativescript-dev-android-snapshot": "^0.*.*",
    "nativescript-dev-typescript": "^0.5.1",
    "nativescript-dev-webpack": "^0.8.0",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.0.2",
    "typescript": "~2.2.2",
    "webpack": "~2.4.1",
    "webpack-sources": "~0.2.3",
    "zone.js": "^0.8.2",
    "webpack-bundle-analyzer": "^2.8.2",
    "nativescript-worker-loader": "~0.8.1"
  },
  "scripts": {
    "ns-bundle": "ns-bundle",
    "android-prod": "cross-env BUILD_PROFILE=prod tns run android",
    "android-dev": "cross-env BUILD_PROFILE=dev tns run android",
    "ios6s-prod": "cross-env BUILD_PROFILE=prod tns run ios",
    "ios6s-dev": "cross-env BUILD_PROFILE=dev tns run ios",
    "ios6-prod": "cross-env BUILD_PROFILE=prod tns run ios",
    "ios6-dev": "cross-env BUILD_PROFILE=dev tns run ios",
    "publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
    "generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install",
    "start-android-bundle": "npm run ns-bundle --android --run-app",
    "start-ios-bundle": "npm run ns-bundle --ios --run-app",
    "build-android-bundle": "npm run ns-bundle --android --build-app",
    "build-ios-bundle": "npm run ns-bundle --ios --build-app"
  }
}

2017-11-14 09:34:15.776 xcodebuild[8736:48112] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/7g/tp4sm6_n0dxcvs3zg3d7nwx80000gn/T/AppName_2017-11-14_09-34-15.776.xcdistributionlogs'.
2017-11-14 09:34:20.335 xcodebuild[8736:48112] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fb0cd8306a0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"AppName.app\" requires a provisioning profile.\" UserInfo={NSLocalizedDescription=\"AppName.app\" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: "AppName.app" requires a provisioning profile.

Error Domain=IDEProvisioningErrorDomain Code=9 ""AppName.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="AppName.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

* EXPORT FAILED *

If I run the application using Xcode it works fine.

I have checked the Provisioning profile.

Hi @pap5508,
I notice in your package.json file that you are using @next ios runtime. I would suggest changing the tns-ios version to 3.3.0. Delete node_modules and platforms folders and rebuild the project with tns run ios.
Also if the problem with deploying the application on the device still persists, try using --provision flag, which will allow you to specify the provisioning profile, which will be used for signing the app. More about the flag could be found here.

@tsonevn we are facing same issue....Please check https://github.com/NativeScript/nativescript-cli/issues/3132. The only way i have is to use another mac with xcode 8...

@tsonevn :
Getting following error

Xcode build...
2017-11-16 10:14:40.119 xcodebuild[2374:15698] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/7g/tp4sm6_n0dxcvs3zg3d7nwx80000gn/T/Hieber_2017-11-16_10-14-40.118.xcdistributionlogs'.
2017-11-16 10:16:22.099 xcodebuild[2374:15698] [MT] IDEDistribution: Step failed: <IDEDistributionPackagingStep: 0x7fbb6adfa8c0>: Error Domain=IDEFoundationErrorDomain Code=1 "ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NilClass>
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:812:in `rawLoadCommands'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:828:in `rpaths'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:259:in `resolveLoadedDylibs'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1423:in `block (2 levels) in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `block in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `new'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `ProcessIPA'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2940:in `<main>'" UserInfo={NSLocalizedDescription=ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NilClass>
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:812:in `rawLoadCommands'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:828:in `rpaths'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:259:in `resolveLoadedDylibs'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1423:in `block (2 levels) in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `block in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `new'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `ProcessIPA'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2940:in `<main>'}
error: exportArchive: ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NilClass>
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:812:in `rawLoadCommands'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:828:in `rpaths'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:259:in `resolveLoadedDylibs'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1423:in `block (2 levels) in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `block in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `new'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `ProcessIPA'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2940:in `<main>'

Error Domain=IDEFoundationErrorDomain Code=1 "ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NilClass>
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:812:in `rawLoadCommands'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:828:in `rpaths'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:259:in `resolveLoadedDylibs'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1423:in `block (2 levels) in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `block in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `new'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `ProcessIPA'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2940:in `<main>'" UserInfo={NSLocalizedDescription=ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NilClass>
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:812:in `rawLoadCommands'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:828:in `rpaths'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:259:in `resolveLoadedDylibs'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1423:in `block (2 levels) in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `block in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `new'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2289:in `ProcessIPA'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2940:in `<main>'}

** EXPORT FAILED **

@pap5508 you should have latest version of cli i.e 3.3. i have. Also in app -> App_Resouces -> ios -> build.xconfic file, there should be team id and code_sign_identity set to 'iPhone Distribution'

@dotnetdreamer : I did still it throws the same Error.

// You can add custom settings here
// for example you can uncomment the following line to force distribution code signing
CODE_SIGN_IDENTITY = iPhone Distribution 
// To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;

DEVELOPMENT_TEAM = LT********
CODE_SIGN_ENTITLEMENTS = App/App.entitlements

Hey @pap5508 were you able to resolve your issue? We have just release NativeScript 3.4 - if the issue persists can you give it a try while rebuilding with the latest CLI and runtimes.

@NickIliev will try in a while as the current version of app i have is ready for production. Will do once everything is done...

nope

On Fri, Dec 22, 2017 at 2:25 PM, Idrees Khan notifications@github.com
wrote:

@NickIliev https://github.com/nickiliev will try in a while as the
current version of app i have is ready for production. Will do once
everything is done...

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/NativeScript/issues/5059#issuecomment-353558204,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUCTKdDmrE9piRKujFbV-_J79AfEC_GJks5tC3WmgaJpZM4QZbLs
.

@NickIliev i upgraded to 3.4 and i removed the platform and re-added. its working fine now...

thanks :)

On Thu, Dec 28, 2017 at 1:24 PM, Idrees Khan notifications@github.com
wrote:

@NickIliev https://github.com/nickiliev i upgraded to 3.4 and i removed
the platform and re-added. its working fine now...

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/NativeScript/issues/5059#issuecomment-354249777,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUCTKXBHV5XwjkzuUtRq9g38GsaLnlkjks5tE1AogaJpZM4QZbLs
.

@dotnetdreamer Hi, you did upgraded "Nativescript" or "tns-ios" to 3.4?

I have the same trouble and I have the most recent version of Nativescript and tns-ios. Any news about this?

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings