We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting link error when trying to build on debug/iPhone

Thread ID:

Created:

Updated:

Platform:

Replies:

120970 Oct 30,2015 02:09 AM UTC Nov 3,2015 05:04 AM UTC Xamarin.Forms 5
loading
Tags: XlsIO
Xiaopeng Qi
Asked On October 30, 2015 02:09 AM UTC

Hi there, could you help me out with the build error on my application? Thanks!


The application is build fine on release/iPhone or debug/iPhoneSimulator, but have link error when build for debug/iPhone. Please check the attached full build log for the error message. Below is the xamarin and syncfusion versions, and short message copied from log. Please let me know if you need more information.


The Xamarin iOS version is: 9.1.0.18

Syncfusion version is:13.3.0.7


MTOUCH: error MT5209: Native linking error: don't know how to convert instruction eccfbcb2 referencing _mono_create_corlib_exception_1.island.4 to thumb in 'Syncfusion_Calculate_CalcEngine_ComputeDdb_string' from .../SampleBrowser.iOS/obj/iPhone/Debug/mtouch-cache/Syncfusion.XlsIO.Portable.dll.armv7.o for architecture armv7

MTOUCH: error MT5202: Native linking failed. Please review the build log.

Task "MTouch" execution -- FAILED

Done building target "_CompileToNative" in project ".../SampleBrowser.iOS.csproj".-- FAILED

Done building project "/Users/x4b5/Desktop/Stash/ck1/CK1App/SampleBrowser.iOS/SampleBrowser.iOS.csproj".-- FAILED

Build FAILED.


Attachment: linkErrorMsg_7203630e.zip

Dilli Babu Nandha Gopal [Syncfusion]
Replied On October 30, 2015 05:58 AM UTC

Hi Xiaopeng,

Thank you for contacting Syncfusion support.

When using Syncfusion.XlsIO.Portable class library in iOS application, the following settings must be done to execute in iOS devices.


1.       Link behavior: Link SDK assemblies only (otherwise classes you need in Syncfusion.XlsIO.Portable.dll are linked away).

2.       Enable developer instrumentation: Unchecked (this is to create a smaller binary, since adding debug information makes it somewhat bigger).

3.       Enable generic value type sharing: Checked (this is also to create a smaller binary).


You can also refer to the ReadMe file in the following link.

http://www.syncfusion.com/downloads/support/directtrac/general/ReadMe1200983097.zip

This readme details will be added in our UG documentation.


Regards,

Dilli babu


Xiaopeng Qi
Replied On October 30, 2015 06:07 PM UTC

Dilli babu,

Thanks for the instruction. I set the #1 and #2 as you mentioned. The #3 option is not found in my Xamarin Studio (Version 5.9.8), maybe it's already build in with checked? It builds fine for debug/iPhone now. But I still cannot debug on it since the "Start Debugging" is greyed out after the #2 is unchecked. Is there a way to debug on device?

Thanks,
Xiaopeng

Mathu Mohan Vijayakumar [Syncfusion]
Replied On November 2, 2015 01:04 PM UTC

Hi Xiaopeng,

Please find the below table for your queries.

Query
Response
The #3 option is not found in my Xamarin Studio (Version 5.9.8), maybe it's already build in with checked?

In higher version of Xamarin studio this option is no available. We can skip this option to solve the build error.

It builds fine for debug/iPhone now. But I still cannot debug on it since the "Start Debugging" is greyed out after the #2 is unchecked. Is there a way to debug on device?

XlsIO have larger binary codes, so we need to disable the developer instrumentation to resolve the native link error which was suggested by Xamarin Team. By setting this option we cannot debug on the device. So we recommend you to debug your application in the iphone simulator.


Please let us know if you need any clarification.

Regards,
Mathu Mohan V A             


Xiaopeng Qi
Replied On November 2, 2015 07:25 PM UTC

Got it. Thanks for the clarification!

Mathu Mohan Vijayakumar [Syncfusion]
Replied On November 3, 2015 05:04 AM UTC

Hi Xiaopeng,

Thanks for the update. Please let us know if you have any query.

Regards,

Mathu Mohan V A

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;