没有安装的预配配置文件与使用 Visual Studio 在 Xamarin 中安装的 iOS 代码签名密钥匹配 [英] No installed provisioning profiles match the installed iOS code signing keys in Xamarin using Visual Studio

查看:36
本文介绍了没有安装的预配配置文件与使用 Visual Studio 在 Xamarin 中安装的 iOS 代码签名密钥匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 PCL 项目,我使用 Visual Studio 托管 Mac,但是当运行 iOS 项目时,它给出错误:

我尝试像下面那样更改 iOs 构建签名,但对我没有任何作用.

请帮我解决这个问题.

解决方案

对于 iOS,您需要向 Apple 注册您的应用/设备.

您必须转到您的

  • 点击Certificates, Identifiers &个人资料链接(右侧)
  • 点击设备链接
  • 点击 + 按钮(右上角)
  • 为新设备提供一个名称并将我们在上面复制的设备标识符粘贴到UUID字段
  • 现在您必须将新创建的证书提取到您的 Mac/Xcode.

    • 停止 Visual Studio/Xamarin Studio
    • 启动Xcode
    • 选择 Xcode 菜单 > 首选项...
    • 点击帐户标签
    • 点击查看详细信息...按钮
    • 点击屏幕左下角的刷新图标按钮(圆形箭头)
    • 更新可用的配置文件列表后,点击完成按钮
    • 退出 Xcode(或者,如果您喜欢这种情况,请保持打开状态.)
    • 启动 Visual Studio/Xamarin Studio

    现在我想您可以开始在您的设备上进行测试了.但是如果您需要特殊的 iOS 服务(即访问游戏中心、iCloud 等),您还必须注册您的应用.这与之前的过程大致相似,但我会请您阅读有关该过程的文档或谷歌应用服务配置".在帖子变得太长之前;)

    注意;这在未来可能会改变,因为 Apple 昨天宣布侧载(你自己的)应用程序(你想在这里做的事情)将是免费的.因此,如果您还没有 Apple 开发者帐户,那么您可能需要稍等片刻.

    I have created a PCL project, I host Mac with Visual Studio but when run iOS project, it gives error:

    I tried to change in iOs building signing like below but nothing works for me.

    Please help me solve this issue.

    解决方案

    For iOS you need to register your app/device with Apple.

    You will have to go to your Apple developer account and create a listing for your app and register the device you are testing on.

    Also you will have to import your developer account into Xcode, this needs to be done because your development app also needs to be signed before it can be put on a physical device.

    More information can be found in the Xamarin documentation.

    The excerpt is this;

    • Go to Xcode and add your Apple ID (Choose Xcode Menu > Preferences..., Click the Accounts tab, Click the Add (+) button and select Add Apple ID... from the popup menu)

    • If you have an Apple ID that belongs to an Apple Developer Program, enter your Apple ID and password, and click the Add button.

    Otherwise you can click the Join a Program button and a web browser will be opened where you can sign-up.

    Now you need to add your device to Xcode.

    • Connect the device to your Mac with a USB cable
    • From the Windows menu select Devices
    • Select the desired iOS device from the Devices list on the left side of the Devices Window
    • Highlight the Identifier string and copy it to the clipboard

    • Login to your Apple developer account
    • Click the Certificates, Identifiers & Profiles link (on the right)
    • Click on the Devices link
    • Click the + button (top right)
    • Provide a name for the new device and paste the device Identifier that we copied above into the UUID field

    Now you have to pull the freshly created certificates to your Mac/Xcode.

    • Stop Visual Studio/Xamarin Studio
    • Start Xcode
    • Choose Xcode Menu > Preferences...
    • Click the Accounts tab
    • Click the View Details... button
    • Click the Refresh icon button in the lower left hand corner of the screen (the round arrow thingy)
    • After the list of available Provisioning Profiles has been updated, click the Done button
    • Exit Xcode (or leave it open if you like the sight..)
    • Start Visual Studio/Xamarin Studio

    Now I think you can start testing on your device. But if you need special iOS services (i.e. access to Game Center, iCloud, etc.) you will have to register your app as well. This is roughly a similar process as the one before this, but I will ahve to ask you to read the documentation on that or Google 'Provisioning for Application Services'. Before the post gets too long ;)

    Note; this may change in the future because Apple has announced yesterday that sideloading (your own) apps (the thing you want to do here) will be free. So if you do not have a Apple developer account yet then you may want to wait a little while.

    这篇关于没有安装的预配配置文件与使用 Visual Studio 在 Xamarin 中安装的 iOS 代码签名密钥匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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