简体   繁体   English

带有Realm的Xamarin.Forms - 在构建iO时解决文件问题

[英]Xamarin.Forms with Realm - issue resolving files when bulding iOs

I've created a Xamarin.Forms solution (with PCL) and included realm nuget both on all my pcl's and my platform specific projects. 我已经创建了一个Xamarin.Forms解决方案(使用PCL),并在我的所有pcl和我的平台特定项目中包含了realm nuget。 When I compile the iOS project from within Visual Studio 2015 (from a PC connected to my mac) 当我从Visual Studio 2015中编译iOS项目时(从连接到我的mac的PC)

I get following compile error: 我得到以下编译错误:

:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): error : 
Failed to resolve assembly: 'Realm.Sync, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'' 

But from my mac running in Xamarin Studio, it compiles without any problem. 但是从我在Xamarin Studio中运行的mac,它编译没有任何问题。 Does anyone know what the problem could be? 有谁知道是什么问题?

我创建了Realm问题1264来跟踪这个,但是会在这里复制解决方案。

The solution suggested by Andy Dent actually solved the problem - we had later crash, which lead me to think it didn't, but that was on our side. Andy Dent提出的解决方案实际上解决了这个问题 - 我们后来崩溃了,这让我觉得它没有,但那就是我们这边。

Please try building with the 1.0.4 NuGet - see the breaking change in github.com/realm/realm-dotnet/blob/master/CHANGELOG.md that was added in 1.1.0 请尝试使用1.0.4 NuGet进行构建 - 请参阅1.1.0中添加的github.com/realm/realm-dotnet/blob/master/CHANGELOG.md中的重大更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM