iPhone SDK“加载"关于钛开发者 [英] iPhone SDK "loading" on Titanium Developer

查看:25
本文介绍了iPhone SDK“加载"关于钛开发者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Titanium 网站上尝试过这个问题,并在他们的帐户上发了几条推文,但他们要么不理我,要么拒绝回答.

我想开始使用他们的框架,但由于某种原因,iPhone SDK 在测试和包装"选项卡中总是加载".

你们找到解决方法了吗?我有:

  • 雪豹 10.6.3
  • Titanium Developer 1.2.1
  • iPhone SDK 3.2
  • 来自 Apple 的所有证书等等",因为我能够使用 XCode 在我的设备上测试和部署应用程序.

请帮忙:)

解决方案

您是否有包含非 ASCII 字符的名称?有一个关于其中包含非 ASCII 字符的开发人员证书的错误.我已向 Appcelerator 的 Lighthouse 站点提交了错误报告:

我的名字有一个带有变音符号 (ö) 的字符,它阻止了 prereq.py 做它应该做的事情.Titanium 仅在 SDK 版本选择框中显示正在加载...".

页面附带的patch,将json解析器改成simplejson,帮助python脚本通过.我在控制台中运行它并获得预期的输出:

'{"wwdr": true,"ipad": false,"sdks": ["3.1","3.1.2","3.1.3"],"iphone_dev_name": ["Björn Söderqvist (XXXXXXXXXX)"],"iphone_dist_message": "缺少 iPhone 分发证书","wwdr_message": null,"itunes_message": null,"itunes": true,"iphone_dev_message": null,"iphone_dev": true,"iphone_dist": false,"itunes_version": "9.0.3"}'

Titanium 应用程序仍然读取错误的输出.

如果我像这样复制粘贴打过补丁的 prereq.py 的控制台输出,它会起作用:(package.js 的第 877 行)

var d = '{"wwdr": true,"ipad": false,"sdks": ["3.1","3.1.2","3.1.3"],"iphone_dev_name": ["Björn Söderqvist(XXXXXXXXXX)"],"iphone_dist_message": "缺少 iPhone 分发证书","wwdr_message": null,"itunes_message": null,"itunes": true,"iphone_dev_message": null,"iphone_dev": true,"iphone_dist": false,"itunes_version": "9.0.3"}'

https://appcelerator.lighthouseapp.com/projects/32238/tickets/646-iphone-sdk-problem-with-non-ascii-characters-in-development-certificate

不幸的是,我在帖子中引用的链接不再有效.建议的补丁是对 prereq.py 执行以下操作:

第 8 行

<预><代码>#import json、运行、临时文件、编解码器导入poorjson、运行、临时文件、编解码器

第 139 行(用这个替换 check_for_package() 的最后一行)

<预><代码>打印poorjson.PoorJSON().dump(props)

如果您需要更具体的信息,请告诉我.

I have tried this question on the site of Titanium and several tweets to their account, but they either ignore me or refuse to answer.

I want to start using their framework, but for some reason the iPhone SDK is always "loading" when in the "TEST & PACKAGE" tab.

Have you guys found a fix for this? I have:

  • Snow Leopard 10.6.3
  • Titanium Developer 1.2.1
  • iPhone SDK 3.2
  • All the certificates "blah blah" from Apple because I am able to test and deploy apps on my device using XCode.

Help please :)

解决方案

Do you have a name with non-ASCII characters? There is a bug regarding developer certificates with non-ASCII characters in them. I've filed a bug report, to Appcelerator's Lighthouse site:

My name has a character with umlaut (ö) which prevents prereq.py from doing what it should. Titanium only says "Loading..." in the SDK version select box.

The patch attached to the page, which changes json parser into simplejson, helps the python script to pass. I run it in console and get the expected output:

'{"wwdr": true,"ipad": false,"sdks": ["3.1","3.1.2","3.1.3"],"iphone_dev_name": ["Björn Söderqvist (XXXXXXXXXX)"],"iphone_dist_message": "Missing iPhone Distribution Certificate","wwdr_message": null,"itunes_message": null,"itunes": true,"iphone_dev_message": null,"iphone_dev": true,"iphone_dist": false,"itunes_version": "9.0.3"}'

Titanium app still reads the output wrong though.

It works if I copy-paste the console output of patched prereq.py like so: (line 877 of packaging.js)

var d = '{"wwdr": true,"ipad": false,"sdks": ["3.1","3.1.2","3.1.3"],"iphone_dev_name": ["Björn Söderqvist (XXXXXXXXXX)"],"iphone_dist_message": "Missing iPhone Distribution Certificate","wwdr_message": null,"itunes_message": null,"itunes": true,"iphone_dev_message": null,"iphone_dev": true,"iphone_dist": false,"itunes_version": "9.0.3"}'

https://appcelerator.lighthouseapp.com/projects/32238/tickets/646-iphone-sdk-problem-with-non-ascii-characters-in-development-certificate

Unfortunately, the link I refer to in the post does not work anymore. The suggested patch was to do the following to prereq.py:

Line 8


#import json, run, tempfile, codecs
import poorjson, run, tempfile, codecs

Line 139 (replace last line of check_for_package() with this)


print poorjson.PoorJSON().dump(props)

Let me know if you need more specific information.

这篇关于iPhone SDK“加载"关于钛开发者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆