gpt4 book ai didi

ios - 如何在 Visual Studio for Xamarin Forms 中更改 AppId

转载 作者:行者123 更新时间:2023-11-29 00:14:27 25 4
gpt4 key购买 nike

我创建了一个 Xamarin Forms 应用程序并想在我的 iPhone 上运行该应用程序。它已经在模拟器中运行良好。为了在手机上获取它,我为 de.mycompany.* 创建了一个临时配置文件。在 Visual Studio 中,我将 Bundle Identifier 设置为 de.mycompany.appname 。我还在 Visual Studio 首选项中转到了 Apple Developer Accounts。然后点击“下载所有配置文件”按钮。

仍然,当我尝试编译时出现错误

/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)

我在这里做错了什么?

最佳答案

bundle 标识符在 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

如果您尝试构建发布版本,请确保您的签名身份也安装在计算机上。

关于ios - 如何在 Visual Studio for Xamarin Forms 中更改 AppId,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45608759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com