【问题标题】:Build watch app to device将手表应用程序构建到设备
【发布时间】:2016-03-19 11:08:36
【问题描述】:

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

[ERROR] : iOS 扩展“watch”目标“watch WatchKit App”有 tiapp.xml 中的配置文件 UUID 无效。你的意思是?

[错误]:配置文件“xxxxx-xxxx-xxxx-xxxxx-xxxxxx”是 绑定到应用程序标识符“com.test.watch.*”,但是 扩展程序的标识符是“$(PRODUCT_BUNDLE_IDENTIFIER)”。

我已经编辑了个人资料 ID,但它确实使用了已在 tiapp.xml 中设置的有效 ID。

我已尝试清理项目,并删除了 build 和 Resources 目录,但我仍然看到此错误。

有什么想法吗?

【问题讨论】:

  • 尝试将包标识符设置为“com.test.watch.foo”;某处的配置有问题。

标签: ios compiler-errors appcelerator watchos-2 appcelerator-titanium


【解决方案1】:

确保您已为 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 Team Prov Profile: * 让它工作。如果我在设备选项中使用(例如)com.test.watch.*,我仍然会收到上面提到的错误。仍然需要尝试使用 3 个单独的配置文件 - 谢谢。
  • 您确定 a) iOS 应用程序、WatchOS2 应用程序和 WatchOS2 扩展程序都使用该通配符下的应用程序 ID? b) iPhone 和 Apple Watch 在配置文件中?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-06-01
  • 2012-07-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多