Xamarin Forms-找不到配置文件(iOS捆绑签名) [英] Xamarin Forms - Can't find provisioning profile (ios bundle signing)

查看:545
本文介绍了Xamarin Forms-找不到配置文件(iOS捆绑签名)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio社区中使用的Macbook Pro.

I am using a macbook pro with visual studio community.

我在控制台中收到的错误是:

The error I receive in the console is:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(644,3): 错误:找不到适用于iOS的任何可用配置文件.

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(644,3): error : Could not find any available provisioning profiles for iOS.

我注意到,一旦我们将 SecureStorage插件添加到项目中,就会出现此错误.事先进行任何提交都不会导致此错误.

I noticed that this error came up once we added the SecureStorage plugin to the project. Any commit prior doesn't result in this error.

  • 打开xCode >>帐户>>确保我的Apple ID在那,手动下载配置文件.还验证了我的电子邮件地址在描述中正确无误,并且我的团队(个人)也在那里.

屏幕截图来自上述说明

  • Gone into project.ios >> Info.Plist and checked that the bundle identifier and application name is correct. Screenshot from info.plist

已启用KeyChain访问:project.iOS >> Entitlements.plist >> KeyChain >>已勾选已启用KeyChain >> KeyChain组>>添加了正确的钥匙串

Enabled KeyChain access: project.iOS >> Entitlements.plist >> KeyChain >> Enabled KeyChain ticked >> KeyChain Groups >> Added correct keychain

已启用密钥链

然后当我进入project.ios >> Info.Plist >> ios Bundle Signing >>

Then when I go into project.ios >> Info.Plist >> ios Bundle Signing >>

iOS捆绑签名>>设置配置文件

iOS Bundle Signing >> Provisioning Profile

它看不到任何匹配的配置文件. 查看屏幕截图

It can't see any matching profiles. See screenshot

推荐答案

这个问题很难解决,原因有几个:

This problem was tricky to solve for a few reasons:

  1. 这只是一个问题,当我们在项目中引入localStorage插件之前,没有任何问题.这是一种误导.
  2. 不清楚您是否必须创建一个xCode项目并将其链接到您的Apple ID,这是问题的根源.
  3. 我是ios应用程序开发和xamarin的新手.

解决方案

我所做的事情类似于此处演示的内容: https://www.youtube.com/watch ?v = S9lNmnyACpY

打开xCode并创建一个新项目(也可以在apple开发人员页面下执行此操作),并创建一个与您的xamarin表单项目具有相同名称空间的新项目(例如:xfPOC).

Open up xCode and create a new project (can also do this under the apple developer page) and create a new project with the same namespace (eg: xfPOC in my case) as your xamarin forms project.

复制它创建的配置概要文件名称,然后将其粘贴到info.plist中的捆绑标识符"中.从那里进入ios bundle签名,它应该能够找到您的配置文件.

Copy the provisioning profile name it creates and then paste it into your "bundle identifier" in info.plist. From there, go into ios bundle signing and it should be able to find your provisioning profile.

我向@SushiHangover的人道歉,他实际上是正确的,我最初回复他说我的捆绑包标识符确实与我的配置文件匹配(当时不存在).通过设置配置文件",我认为它是在xamarin表单项目的开始时设置为组织标识符的,这很令人困惑,因为VS将其复制到info.plist中的包标识符中,因为它看起来并不特别有用就像它为您设置了所有东西,而您需要自己在xcode或apple开发页面上自行创建它.就个人而言,当我在项目中执行此操作时,配置文件与VS创建的默认捆绑包标识符不匹配.

My aplogies to @SushiHangover who was actually correct, I originally replied to him saying that my bundle identifier did match my provisioning profile(which at the time didn't exist). By "provisioning profile", I thought that was set up at the beginning of the xamarin forms project as the organization Identifier, this is confusing because VS copies that into the bundle identifier in info.plist, which isn't particularly helpful because it looks like it's set everything up for you, whereas you need to go and create it yourself in xcode or on the apple development page. Personally, when I did that in my project, the provisioning profile did not match the default bundle identifier that VS created.

这篇关于Xamarin Forms-找不到配置文件(iOS捆绑签名)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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