6

我认为这个错误是在我更改配置文件后开始发生的。

我的应用程序在 Visual 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 在“替换现有签名”后返回未知错误

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

2 回答 2

7

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

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

对我有用的解决方案步骤:

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

  4. 享受干净的编译。

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

于 2017-10-10T10:22:27.183 回答
2

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

于 2017-09-19T13:15:09.860 回答