Xamarin.Forms IOS错误replace现有的签名

我认为这个错误发生在我更改configuration文件后。

我的应用程序是在视觉上2017 Xamarin.Forms项目和build立通过连接到MAC书的Windows PC上。 Android和UWP项目工作正常。

我努力了:

  • 卸载/重新安装skiasharp软件包
  • 使用卸载脚本卸载Xamarin.IOS并清空MAC端的caching文件夹
  • 允许完全访问所有应用程序的钥匙链

这是错误:

/ Users / myusername / Library / Caches / Xamarin / mtbs / buildsenter code here / MyAppName.iOS / ec3fa8c87274cfb85c8423bb8f475608 / bin / iPhone / Debug / MyAppName.iOS.app / Frameworks / libSkiaSharp.framework / libSkiaSharp:replace现有签名/ Users / myusername /Library/Caches/Xamarin/mtbs/builds/MyAppName.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/MyAppName.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp:unknown error -1 = ffffffffffffffff

这是一个相关的post,但我不明白:

在“replace现有签名”之后,Codesign返回未知错误

更新:新版本更新到Xamarin.IOS v11后更多的输出:

Bundle Id: SentinelMobileTest 3> App Id: XXXXXXXXX.SentinelMobileTest 3> warning: no debug symbols in executable (-arch armv7) 3> warning: no debug symbols in executable (-arch arm64) 3>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ericbourque/Library/Caches/Xamarin/mtbs/builds/SentinelMobile.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/SentinelMobile.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp (for architecture armv7) 3>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ericbourque/Library/Caches/Xamarin/mtbs/builds/SentinelMobile.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/SentinelMobile.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp (for architecture arm64) 3>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: removing global symbols from a final linked no longer supported. Use -exported_symbols_list at link time when building: /Users/ericbourque/Library/Caches/Xamarin/mtbs/builds/SentinelMobile.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/SentinelMobile.iOS.app/SentinelMobile.iOS (for architecture armv7) 3>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: removing global symbols from a final linked no longer supported. Use -exported_symbols_list at link time when building: /Users/ericbourque/Library/Caches/Xamarin/mtbs/builds/SentinelMobile.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/SentinelMobile.iOS.app/SentinelMobile.iOS (for architecture arm64) 3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1689,3): error : /Users/ericbourque/Library/Caches/Xamarin/mtbs/builds/SentinelMobile.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/SentinelMobile.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp: replacing existing signature 3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1689,3): error : /Users/ericbourque/Library/Caches/Xamarin/mtbs/builds/SentinelMobile.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/SentinelMobile.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp: unknown error -1=ffffffffffffffff 

问题是有多个证书和供应configuration文件。

自动签名不知道使用哪个configuration文件。

为我工作的解决scheme步骤:

  1. 删除并撤消Apple Developper中与您的应用ID匹配的所有证书,应用ID和预configurationconfiguration文件
  2. 删除MAC中用于编译包含您的证书或应用程序ID的所有钥匙串
  3. 用不同的名称和新的软件包ID来创build新的软件包(旧的软件包仍然在Visual Studio列表中)

  4. 享受一个干净的汇编。

如果有人知道一个更干净的方式来做到这一点,随时张贴。

您是否尝试将包含签名证书的钥匙串设置为“ 允许所有应用程序访问此项目 ”?