问题描述
自从我更新了我的一些 NugetPackages 之后,我的 iOS 项目由于提到的错误而无法构建.
Since I updated some of my NugetPackages my iOS project is not building because of the mentioned error.
\.nuget\packages\xamarin.build.download\0.10.0\buildTransitive\Xamarin.Build.Download.targets(52,3): error : Object reference not set to an instance of an object
我猜是因为我将 Xamarin,Build.Download 从 0.8.0 更新到 0.10.0,但由于其他项目的依赖性,我需要新版本.
I guess its since I updated the Xamarin,Build.Download from 0.8.0 to 0.10.0 but I need the new version because of dependencys of other projects.
任何解决方案或变通方法?
Any solutions or work arounds?
推荐答案
这在 VS 2019 中发生在我身上,这是因为我试图使用使用新样式Platform All"的配置文件进行构建;苹果证书.我直接编辑了 csproj 以嵌入配置文件名称.这是我构建错误的原因.
This was happening to me in VS 2019 and it was caused by the fact I was trying to build with a provisioning profile which used a new style "Platform All" Apple Certificate. I had edited the csproj directly to embed the provisioning profile name. This was the cause of the build error for me.
解决方案是使用旧样式的Platform iOS";Apple 证书和相关的配置文件,由项目属性选取.
Solution was to use the old style "Platform iOS" Apple Certificate and an associated provisioning profile, which is picked up by the project properties.
这篇关于Xamarin.Forms iOS Xamarin.Build.Download 对象引用未设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!