gpt4 book ai didi

ios - 将 watch 应用程序构建到设备

转载 作者:行者123 更新时间:2023-12-02 11:01:44 26 4
gpt4 key购买 nike

我正在尝试使用 swift-os2 watch 扩展直接生成一个 Ti 应用程序(SDK 5.2.0.GA - 使用合金)到 App Studio 中的设备。测试时它在 iPhone 和 Watch 模拟器上运行良好,但尝试在设备上运行时出现此错误。

[ERROR] : iOS extension "watch" target "watch WatchKit App" has invalid provisioning profile UUID in tiapp.xml. Did you mean?

[ERROR] : The provisioning profile "xxxxx-xxxx-xxxx-xxxxx-xxxxxx" is tied to the application identifier "com.test.watch.*", however the extension's identifier is "$(PRODUCT_BUNDLE_IDENTIFIER)".



我已经编辑了配置文件 ID,但它确实使用了在 tiapp.xml 中设置的有效 ID。

我已经尝试过清理项目,并删除了 构建 资源 目录,但我仍然看到此错误。

有任何想法吗?

最佳答案

确保您已为 iOS 应用程序、WatchOs2 应用程序和 WatchOS2 应用程序扩展(是的,这是三个)创建了配置文件,并确保 iPhone 位于第一个,Watch 位于最后两个。

然后你可以 use Studio 来配置它们。

如果您为 iOS 应用程序使用通配符配置文件,并且 iPhone 和 Watch 都在其中。然后,您可以保留未配置 WatchOS2 应用程序和 WatchOS2 应用程序扩展的配置文件,Titanium 将自动使用 iOS 应用程序的配置文件。您应该在控制台日志中看到以下内容:

[WARN] :   iOS extension "Ti 5.2.0" target "<device>" is missing the Ti 5.2.0 WatchKit App provisioning profile UUID in tiapp.xml.
[WARN] : Using the iOS app provisioning profile UUID "xxxxxxxx-7262-4b24-82cf-7969af384b4b"
[WARN] : iOS extension "Ti 5.2.0" target "<device>" is missing the Ti 5.2.0 WatchKit Extension provisioning profile UUID in tiapp.xml.
[WARN] : Using the iOS app provisioning profile UUID "xxxxxxxx-7262-4b24-82cf-7969af384b4b"

关于ios - 将 watch 应用程序构建到设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36100943/

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