Ios Xamarin生成失败,Visual studio 2015出现-25320未知错误
我遇到一个问题,当我尝试在Visual Studio 2015上使用Xamarin构建任何IOS应用程序(即使是一个只有一个按钮且完全没有代码隐藏的空白应用程序)时,我收到以下错误消息:-Ios Xamarin生成失败,Visual studio 2015出现-25320未知错误,ios,xamarin,xamarin.ios,Ios,Xamarin,Xamarin.ios,我遇到一个问题,当我尝试在Visual Studio 2015上使用Xamarin构建任何IOS应用程序(即使是一个只有一个按钮且完全没有代码隐藏的空白应用程序)时,我收到以下错误消息:- 1>------ Build started: Project: anotherTest, Configuration: Debug iPhone 1> Generated session id: 918b34de762e8cb2603d83fb22be8494 1> Generate
1>------ Build started: Project: anotherTest, Configuration: Debug iPhone
1> Generated session id: 918b34de762e8cb2603d83fb22be8494
1> Generated build app name: anotherTest
1> Connecting to Mac server 192.168.0.36...
1> anotherTest -> D:\Local sites\XamarinFresh\anotherTest\anotherTest\bin\iPhone\Debug\anotherTest.exe
1> Detected signing identity:
1> Code Signing Key: "iPhone Developer: xxxx xxxxx (2YL57YJ875)" (62943356AF268E06164BD4D6432932995AF3A2CA)
1> Provisioning Profile: "iOS Team Provisioning Profile: net.xxxxx.*" (05eb6d91-b645-4b45-ae20-b1c23576702c)
1> Bundle Id: net.xxxxx.anothertest
1> App Id: QCQ62TK5N6.net.xxxxx.anothertest
1> SecKey API returned: -25320, (null)/Users/xxxxxxx/Library/Caches/Xamarin/mtbs/builds/anotherTest/918b34de762e8cb2603d83fb22be8494/bin/iPhone/Debug/anotherTest.app: unknown error -1=ffffffffffffffff
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1541,3): error : Tool exited with code: 1. Output: SecKey API returned: -25320, (null)/Users/xxxxx/Library/Caches/Xamarin/mtbs/builds/anotherTest/918b34de762e8cb2603d83fb22be8494/bin/iPhone/Debug/anotherTest.app: unknown error -1=ffffffffffffffff
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1541,3): error :
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我已经重新安装了Visual Studio 2015并完成了所有可用的Xamarin更新,Mac可以使用所有软件的最新版本访问,并且密钥链设置已设置为始终允许
有人能解释一下发生了什么或者为什么没有构建吗?在macOS上键入
安全错误-25320
可以进一步了解问题所在:
security error -25320
Error: 0xFFFF9D18 -25320 In dark wake, no UI possible
因此,代码签名触发了一个UI挑战,由于Xamarin运行构建的方式,它是不被允许的。我遇到了在macOS上导入您的钥匙链以避免问题的方法:
security set-key-partition-list -S apple: -k <Password> -D <Identity> -t private <your.keychain>
security set key partition list-S apple:-k-D-t private
感谢Bochun Bai花了3周时间在苹果的支持下找到了一个听起来有些类似的问题的解决方案-25308,并将其发布到了SecKey API returned:-25320似乎是这里出现的一件大事。这听起来像是权限错误。我们想知道的其他信息是1)这是什么OSX版本?2) 您是否尝试过更新到最新的OSX/Xcode/Xamarin版本?感谢您的回复,OSX Mac OS是Sierra 10.12.2,据我所知,Mac和PCU上的所有内容都已更新到最新版本。您有什么解决方案吗?@Jon,您找到解决方案了吗?