【问题标题】:Missing fonts when building/running Appcelerator app from XCode从 XCode 构建/运行 Appcelerator 应用程序时缺少字体
【发布时间】:2016-05-18 17:13:02
【问题描述】:

我最近从带有 3.5.0.GA SDK 的 Titanium 更新到带有 5.2.0SDK 的 Appcelerator Studio,并且无法再在 XCode (7.2.1) 中构建和运行 appc (5.1.0 CLI) 生成的项目不会失去显示我的自定义字体资源(app/assets/fonts)的能力。

在工作室(最新 4.4.0)中为 iOS 构建项目并部署到连接的 iPhone 6(运行 9.2)时,所有字体在应用程序中正确显示。但是,在构建和运行 appc 在此过程中生成的 <projectname>.xcodeproject 时,相同的字体不会显示吗?

这与https://jira.appcelerator.org/browse/TIMOB-19818 有关吗?如果是这样,有什么解决办法吗?

我一直依赖于修改生成的项目以包含其他资产目录,并在应用商店提交之前手动更改构建和版本号,所以我非常想找到这个问题的解决方案 - 非常感谢所有帮助!

仅供参考 - 我已经尝试在上面的最新 XCode (7.2.1) 中构建在 Titanium studio w/3.5.0.GA 中生成的相同项目,并且字体仍然可以正常工作,所以这个问题似乎与 Appcelerator Studio 结合使用 CLI 5.1.0 和 SDK 5.2.0。

【问题讨论】:

  • 也试过这个测试项目:get.fokkezb.nl/_/3pEyEXR 内置工作室图像显示在设备上,然后直接内置 XCode 图像不显示在设备上
  • ^ 如果您要添加更多详细信息,请编辑您的问题,而不是在 cmets 中添加附录。谢谢!

标签: titanium appcelerator appcelerator-mobile appcelerator-titanium appcelerator-studio


【解决方案1】:

您可以按照以下两个步骤进行操作。这是一种解决方法,可能对您有用。

第 1 步:从调试 ipa 中获取资源文件:

a. Build a debug version for your iPhone device.
b. After the app has successfully launched on your iPhone, navigate to the ipa file in the debug build folder. Click right on the file (or cmd-click) and choose to uncompress the file
c. In the extracted archive find the payload file. Also right click on the file (or cmd-click) and choose to show its contents.
d. You should now see your resource files and folders. Select all the required files and folders and copy them in some new folder.

第 2 步:将文件添加到 XCode 项目

a. Open the build XCode project with XCode
b. In the left column right click (or cmd-click) on your project
c. Choose "Add Files to [project name]"
d. In the file dialog multiselect your files and folders you copied from the debug ipa in step 1
e. That's it. Now archive your product and submit it.

【讨论】:

  • 感谢 Sharif - 这种方法工作正常,但必须像这样解决方法并不理想。我确实发现 XCode 构建中还缺少其他资产,例如设置包等...
  • 确实不理想,这就是为什么它被报告为一个需要修复的错误。见jira.appcelerator.org/browse/TIMOB-19818
  • @FokkeZandbergen 我真的很感激对此的知情更新?我刚刚测试了 5.3.0 和 5.3.1,但仍然缺少字体和其他资产 :( 我真的需要修复或了解这对于 Appcelerator 人员来说是否不是一个关键问题,因为我需要工作很快就会有另一种方法!!!
  • @miniman42 我不再在 AppC 工作。请查看 JIRA 票证并在那里询问更新。
  • 非常感谢。救生员。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-10-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-01-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多