简体   繁体   English

从XCode构建/运行Appcelerator应用程序时缺少字体

[英]Missing fonts when building/running Appcelerator app from XCode

I've recently updated from Titanium w/3.5.0.GA SDK to Appcelerator Studio w/5.2.0SDK and can no longer build and run the appc (5.1.0 CLI) generated projects in XCode (7.2.1) without losing the ability to display my custom font resources (app/assets/fonts). 我最近从Titanium w / 3.5.0.GA SDK更新到Appcelerator Studio w / 5.2.0SDK,并且在不丢失XCode(7.2.1)的情况下,无法再构建和运行由appc(5.1.0 CLI)生成的项目。能够显示我的自定义字体资源(应用程序/资产/字体)。

When building a project for iOS in studio (latest 4.4.0) and deploying to connected iPhone 6 (running 9.2) all fonts appear correctly in app. 在Studio(最新版本4.4.0)中为iOS构建项目并部署到已连接的iPhone 6(运行9.2)时,所有字体都会正确显示在应用程序中。 However when building and running the <projectname>.xcodeproject that is generated by appc during this process the same fonts do not show? 但是,在构建和运行由appc在此过程中生成的<projectname>.xcodeproject ,不会显示相同的字体吗?

Is this related to https://jira.appcelerator.org/browse/TIMOB-19818 ? 这与https://jira.appcelerator.org/browse/TIMOB-19818相关吗? Is there any fix on the horizon if so? 如果可以的话,有什么解决办法吗?

I have always relied on modifying the generated projects to include other asset catalogs and manually alter the build and version numbers prior to appstore submission so am very curious to find a solution to this issue - all help much appreciated! 我一直依靠修改生成的项目来包括其他资产目录,并在提交应用商店之前手动更改内部版本号和版本号,因此非常想找到解决此问题的方法-感谢所有帮助!

FYI - for reference, I've tried to build the same project generated in Titanium studio w/3.5.0.GA within the Latest XCode (7.2.1) as above and the fonts still work correctly so this issue seems to be with Appcelerator Studio with CLI 5.1.0 and SDK 5.2.0 combination. 仅供参考-作为参考,我试图在最新的XCode(7.2.1)中使用上述版本的Titanium工作室w / 3.5.0.GA生成相同的项目,并且字体仍然可以正常工作,因此此问题似乎与Appcelerator相同Studio与CLI 5.1.0和SDK 5.2.0结合使用。

You can follow this below two steps. 您可以按照以下两个步骤进行操作。 This is a workaround, might work for you. 这是一种解决方法,可能对您有用。

Step 1: Grab resource files from debug ipa: 步骤1:从debug 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.

Step 2: Add files to XCode project 步骤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.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Appcelerator Studio应用未在设备中运行 - Appcelerator Studio app not running in device 运行 Android 时出现 Appcelerator 错误 - Appcelerator Errors When Running Android 使用Appcelerator的Titanium Developer构建应用程序时,合并iPhone文件上传的最简单方法 - Simplest way to incorporate iPhone file upload when building app with Appcelerator's Titanium Developer 更新Xcode时,Titanium Appcelerator中出现错误“无法解析应用程序的Info.plist” - When update Xcode, error in Titanium Appcelerator “Failed to parse app's Info.plist” Appcelerator:从推送通知返回到应用程序时读取自定义变量 - Appcelerator: Read custom variable when returning to app from push notification Appcelerator IOS后台在运行应用程序或SyncTask时? - Appcelerator IOS background while app is running or SyncTask? 在xcode中编译Titanium(Appcelerator)应用会产生警告和错误 - Compiling Titanium (Appcelerator) app in xcode produces warnings and errors 缺少Appcelerator模块-Appcelerator.https - Missing Appcelerator Module - appcelerator.https 自定义字体在Appcelerator Titanium SDK 5.3.1上不起作用 - Custom Fonts not working on Appcelerator Titanium SDK 5.3.1 无法使用 iOS OpenCV 模块从 Titanium Appcelerator 编译应用程序 - Can't compile App from Titanium Appcelerator with iOS OpenCV Module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM