This is a migrated thread and some comments may be shown as answers.

Can't get the app to Ios compile

1 Answer 70 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Safak
Top achievements
Rank 1
Safak asked on 15 Jul 2017, 12:51 AM

Hi,
I've been working with a trial version for Xamarin Forms Telerik Controls. 

Android and UWP works great. When i try to debug on ipad device I get the following error

 

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorFailed to resolve "Telerik.XamarinForms.Common.iOS.IosRendererBase`2" reference from "Telerik.XamarinForms.Common, Version=2017.2.626.234, Culture=neutral, PublicKeyToken=null" C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets747

 

 

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 17 Jul 2017, 02:18 PM
Hi Safak,

The error states that it cannot find a reference. without seeing your project directly, I cannot tell you exactly what is wrong. My suspicion is that the iOS linker is removing Telerik assemblies (we are currently tracking a similar problem).

To work around this, enable XAML Compilation (i.e. XamlC).

If you're not familiar with Xamarin.Forms XamlC, it's a very simple thing to do. Just add the following attribute to your Common project's App class:

// In your common project's App.xaml.cs (or App.cs) class
 
[assembly: XamlCompilation (XamlCompilationOptions.Compile)]
namespace YourAppName
{
  ...
}


Then Rebuild the application and try deploying again.

Next Steps

If this doesn't work for you, we'll need to investigate further. Please go here to open a support ticket and attach your project  so that we can take a look at it directly. 

Note: Please remember to delete the Packages/bin/obj folders before zipping it up, this will decrease your project from 10's of MB to just 1 or 2 MB)

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataForm
Asked by
Safak
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or