Xamarin.Forms IOS错误替换现有签名

时间:2017-09-08 07:54:18

标签: ios xamarin.forms visual-studio-2017 skiasharp

我认为在更改配置文件后,此错误就开始发生了。

我的应用程序在视觉2017 Xamarin.Forms项目上,并在连接到MAC书籍的Windows PC上构建。 Android和UWP项目运行良好。

我试过了:

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

这是错误:

  

/ Users / myusername / Library / Caches / Xamarin / mtbs / buildsenter code here / MyAppName.iOS / ec3fa8c87274cfb85c8423bb8f475608 / bin / iPhone / Debug / MyAppName.iOS.app / Frameworks / libSkiaSharp.framework / libSkiaSharp:   替换现有签名   /Users/myusername/Library/Caches/Xamarin/mtbs/builds/MyAppName.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/MyAppName.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp:   未知错误-1 = ffffffffffffffff

这是相关的帖子,但我不明白:

Codesign returns unknown error after "replacing existing signature"

更新:新版本更新到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




2 个答案:

答案 0 :(得分:5)

问题是拥有多个证书和配置文件。

自动签名不知道要使用哪个配置文件。

适用于我的解决方案步骤:

  1. 删除并撤消Apple Developper中与您的应用ID匹配的所有证书,应用ID和配置文件
  2. 删除用于编译的MAC中包含证书或应用ID的所有钥匙串
  3. 使用不同的名称和新的捆绑ID创建新的,您可以轻松识别(旧的仍将在Visual Studio列表中)

  4. 享受干净的编辑。

  5. 如果有人知道更清洁的方式,请随时发布。

答案 1 :(得分:2)

您是否尝试将包含签名证书的钥匙串设置为“Allow all applications to access this item”?