0

我最近从带有 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)时,所有字体都正确显示在应用程序中。但是,<projectname>.xcodeproject在此过程中构建和运行由 appc 生成的字体时,是否不显示相同的字体?

这与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 组合。

4

1 回答 1

3

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

第 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.
于 2016-02-09T08:42:26.427 回答