Mikkel Kruse Johnsen - 420 - Aug 7, 2014

I’m trying to add ServiceStack to my iOS app. But I keep getting “Failed to resolve assembly: ‘ServiceStack.Interfaces, Version=4.0.0.0, C…’ (MT2002)” when deploying to the device. It works fine in the simulator, what to do ?

It should pull the right deps when you:
> Install-Package ServiceStack.Client.Pcl
But to share Server DTO’s on the Client it will need to be a PCL compatible project (which you can link source files from) as described in: https://github.com/ServiceStack/Hello/#sharing-server-dtos-with-clients

Mikkel Kruse Johnsen:

I have made my DTO (Model) compile agains the ServiceStack.Interfaces.dll from PCL. (again it works in the simulator).

Are you using the PCL client? https://github.com/ServiceStack/Hello

Mikkel Kruse Johnsen:

Yes, the “ServiceStack.Pcl.iOS.dll” and “ServiceStack.Client.dll” (from PCL) and also the “ServiceStack.Interfaces” from PCL ?

Mikkel Kruse Johnsen:

Version 4.0.24

ok haven’t heard of this issue before, can you send me a small repro. Also what are you using VS.NET or Xamarin Studio?

Mikkel Kruse Johnsen:

Xamarin Studio on Mac. I will try to send a repro.