Skip to content

Error when running tns run iOS #3971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
halaharr opened this issue Oct 3, 2018 · 2 comments
Closed

Error when running tns run iOS #3971

halaharr opened this issue Oct 3, 2018 · 2 comments
Assignees
Labels

Comments

@halaharr
Copy link

halaharr commented Oct 3, 2018

Dear friend, we, the rest of the NativeScript community really
appreciate your feedback! While we are doing all we can to take care of every
issue, sometimes we get overwhelmed. Because of that, we will consider issues
that are not constructive or problems that cannot be reproduced "dead".
Additionally, we will treat feature requests or bug reports with unanswered
questions regarding the behavior/reproduction for more than 20 days "dead". All
"dead" issues will get closed.

Please, provide the details below:

I am using Xcode 10 connected my phone to my iMac and ran "tns run iOS" and got the following error:

It runs fine on simulator.

"_2018-10-03 11:11:51.997 xcodebuild[79445:3765650] iPhoneSupport: 📱<DVTiOSDevice (0x7ff3693bf540), Reddy’s iPhone, iPhone, 12.0 (16A366), d4abc3f0b4119cc97d7f8ed3d10a5cd49eddeb36> unable to mount DeveloperDiskImage (Error Domain=com.apple.dtdevicekit Code=-402653035 "The device rejected the pairing attempt." UserInfo={NSLocalizedDescription=The device rejected the pairing attempt., com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x0000000110caf221 DTDKCreateNSError + 113
1 DTDeviceKitBase 0x0000000110cafa69 DTDK_AMDErrorToNSError + 1139
2 DTDeviceKitBase 0x0000000110cf01cf -[DTDKMobileDeviceToken mountDeveloperDiskImage:withError:] + 774
3 DTDeviceKitBase 0x0000000110cf0a76 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 467
4 IDEiOSSupportCore 0x0000000110bb51ec __28-[DVTiOSDevice attachToken:]_block_invoke_4 + 188
5 DVTFoundation 0x000000010c7be71e __DVTDispatchAsync_block_invoke + 801
6 libdispatch.dylib 0x00007fff5cb1d5fa _dispatch_call_block_and_release + 12
7 libdispatch.dylib 0x00007fff5cb15db8 _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff5cb28e81 _dispatch_continuation_pop + 472
9 libdispatch.dylib 0x00007fff5cb20733 _dispatch_async_redirect_invoke + 703
10 libdispatch.dylib 0x00007fff5cb179a9 _dispatch_root_queue_drain + 515
11 libdispatch.dylib 0x00007fff5cb17755 _dispatch_worker_thread3 + 101
12 libsystem_pthread.dylib 0x00007fff5ce67169 _pthread_wqthread + 1387
13 libsystem_pthread.dylib 0x00007fff5ce66be9 start_wqthread + 13
), NSLocalizedRecoverySuggestion=The device rejected the pairing attempt., NSLocalizedFailureReason=The device rejected the pairing attempt.})
Xcode build...
2018-10-03 11:11:52.626 xcodebuild[79753:3766826] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/bq/y67dt5vs3x9422y_9xhl4yjw0000gn/T/FieldCompass_2018-10-03_11-11-52.625.xcdistributionlogs'.
error: exportArchive: Failed to verify bitcode in TNSWidgets.framework/TNSWidgets:
error: Bundle only contains bitcode-marker /var/folders/bq/y67dt5vs3x9422y_9xhl4yjw0000gn/T/XcodeDistPipeline.ZV9/Root/Payload/FieldCompass.app/Frameworks/TNSWidgets.framework/TNSWidgets (armv7)

Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in TNSWidgets.framework/TNSWidgets:
error: Bundle only contains bitcode-marker /var/folders/bq/y67dt5vs3x9422y_9xhl4yjw0000gn/T/XcodeDistPipeline.ZV9/Root/Payload/FieldCompass.app/Frameworks/TNSWidgets.framework/TNSWidgets (armv7)

" UserInfo={NSLocalizedDescription=Failed to verify bitcode in TNSWidgets.framework/TNSWidgets:
error: Bundle only contains bitcode-marker /var/folders/bq/y67dt5vs3x9422y_9xhl4yjw0000gn/T/XcodeDistPipeline.ZV9/Root/Payload/FieldCompass.app/Frameworks/TNSWidgets.framework/TNSWidgets (armv7)

}

** EXPORT FAILED **

Unable to apply changes on device: d4abc3f0b4119cc97d7f8ed3d10a5cd49eddeb36. Error is: Command xcodebuild failed with exit code 70._
"

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

yes. Could not find the answer.

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

Which platform(s) does your issue occur on?

iOS/Android/Both
iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it). 3.4.1
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the
    package.json file of your project)
  • Plugin(s): (look for the version number in the package.json file of your
    project)

Please tell us how to recreate the issue in as much detail as possible.

It used to work before not sure if upgrading my phone to iOS 12 caused it or to Xcode 10.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Consider using the playground to provide the code you have issues with.

No code involved.

@rosen-vladimirov
Copy link
Contributor

Hey @halaharr ,
Can you please update your CLI to the latest version (4.2.4) or in case you need specifically 3.x.x, please update to 3.4.4 which should work with Xcode 10.
You can install specific version of NativeScript CLI by executing:

npm i -g nativescript@<version>

@NickIliev
Copy link
Contributor

@halaharr Closing due to inactivity but please do let us know if you need further assistance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants