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

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

问题描述

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

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

我的应用程序在视觉2017 Xamarin.Forms项目上并通过连接到Windows的Windows PC构建MAC书。 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.framework / libSkiaSharp:
replacement现有签名
/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:

在替换现有签名后,Codeign会返回未知错误

Codesign returns unknown error after "replacing existing signature"

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

推荐答案

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

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(旧的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天全站免登陆