Xamarin.Forms IOS 错误替换现有签名 [英] Xamarin.Forms IOS error replacing existing signature

查看:27
本文介绍了Xamarin.Forms IOS 错误替换现有签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为此错误是在我更改配置文件后开始发生的.

I think this error started happening after I change the provisioning profile.

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

My app is on visual 2017 Xamarin.Forms project and building through on Windows PC connected to a MAC book. The Android and UWP projects works fine.

我试过了:

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

这里是错误:

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

/Users/myusername/Library/Caches/Xamarin/mtbs/buildsenter code here/MyAppName.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/MyAppName.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp: replacing existing signature /Users/myusername/Library/Caches/Xamarin/mtbs/builds/MyAppName.iOS/ec3fa8c87274cfb85c8423bb8f475608/bin/iPhone/Debug/MyAppName.iOS.app/Frameworks/libSkiaSharp.framework/libSkiaSharp: unknown error -1=ffffffffffffffff

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

Here is a related post but I don't understand it:

Codesign 在替换现有签名"后返回未知错误

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

UPDATE: More of the output after new version update to 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 Studio2017CommunityMSBuildXamariniOSXamarin.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 Studio2017CommunityMSBuildXamariniOSXamarin.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

推荐答案

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

Issue was having multiple certificates and provisioning profiles.

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

The automatic signing did not know which profile to use.

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

Solution steps that worked for me:

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

  1. Delete and revoke all certificates, app id's and provisioning profiles in Apple Developper that match your app ID
  2. Delete all keychains in MAC used for compiling that contain your certificate or app id
  3. Make new ones with different names and new bundle ID that you can easilly identify (the old ones will still be in the Visual Studio list)

享受干净的编译.

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

If anyone know a cleaner way to do this feel free to post.

这篇关于Xamarin.Forms IOS 错误替换现有签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆