2017-08-10 46 views
0

我创建了一个Xamarin Forms应用程序,并希望在我的iPhone上运行该应用程序。它已经在模拟器中很好地运行。为了通过电话获得它,我为de.mycompany。*创建了一个ad-hoc供应配置文件。在Visual Studio中,我将Bundle Identifier设置为de.mycompany.appname。我也在Visual Studio偏好设置中转到了Apple开发人员帐户。然后点击“下载所有配置文件”按钮。如何在Visual Studio中为Xamarin Forms更改AppId

不过,当我尝试编译我的错误

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(3,3): Error: No installed provisioning profiles match the installed iOS signing identities. (ApplicationName.iOS)

什么我错在这里做什么?

回答

1

包标识符在Info.plist中定义。打开该文件并更改它。

如果您正在打开的文件作为XML那么部分就会像:

<key>CFBundleIdentifier</key> 
<string>my.app.identifier</string> 

只要改变两个string标签之间的内容。

否则在plist中编辑它看起来像:

enter image description here

如果您仍然有它无法找到匹配的供应曲线的误差。确保您已经通过Xcode下载并安装了供应配置文件。

这可以在Xcode中完成。按Xcode的菜单顶部:

Preferences -> Accounts -> Select your account -> Download All Provisioning Profiles

如果你正在试图建立释放确保你在机器上安装好了您的签名的身份。

+0

谢谢@Cheesbaron。已经完成了所有这些,我可以从Xcode部署应用程序,但不能从Visual Studio部署。我把建立输出冗长,这就是我得到: 目标_DetectSigningIdentity: DetectSigningIdentity任务 AppBundleName:Appname.iOS AppManifest:Info.plist中 钥匙扣: ProvisioningProfile: RequireCodesigning:真 RequireProvisioningProfile:真 SdkPlatform :iPhoneOS SdkIsSimulator:False SigningKey:iPhone Developer – hot33331

+0

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(605,3):错误:没有安装配置文件匹配安装了iOS签名身份。 – hot33331

+0

不知道,我不能从我的结尾重现你的问题。我认为最好联系Xamarin以获得其工程师的帮助。 – Cheesebaron

0

对于我更新到版本7.1(版本1297)的Visual Studio修复了这个问题。我不得不再次输入团队信息,但之后就像魅力一样。

相关问题