简体   繁体   English

在XCode 4上生成和存档的Three20问题

[英]Three20 Issues with Build and Archive on XCode 4

I have ported an existing Three20 xcode 3.2 project to xcode 4 using the tutorial 我已使用本教程将现有的Three20 xcode 3.2项目移植到xcode 4

The code compiles and runs on the device. 该代码编译并在设备上运行。 Now, I am trying to build an ipa (using the archive command) and am running into similar errors as this stackoverflow post 现在,我正在尝试构建一个ipa(使用archive命令),并遇到与此stackoverflow发布类似的错误

The error is: 错误是:

cd: /Users/[username]/Library/Developer/Xcode/DerivedData/Pulse_News-cnosepsavjismxbmhuvmmvxnnpgh/ArchiveIntermediates/Pulse News/BuildProductsPath/Release-iphoneos/../three20/Three20Core: No such file or directory

Unfortunately, neither the tutorial nor the post have helped much. 不幸的是,教程和帖子都没有太大帮助。 Is there something I am missing? 我有什么想念的吗? Is funny that I am able to build the project and run it fine, but not able to build an archive! 我能够构建项目并正常运行,但是却无法构建存档,这很有趣! Please help. 请帮忙。

My guess is the "No such file or directory" error message is correct. 我的猜测是“没有这样的文件或目录”错误消息是正确的。 Considering this, the answer to your question depends on your providing more information about how you have project dependencies and search paths configured in your project. 考虑到这一点,问题的答案取决于您提供有关如何在项目中配置项目依赖项和搜索路径的更多信息。

For self-help, take a careful look at the path it's saying doesn't exist and see if you can figure out why. 对于自助服务,请仔细查看它所说的不存在的路径,看看是否可以找出原因。 Note projects within the same workspace share build paths; 注意同一工作空间中的项目共享构建路径; if you're not using a workspace, you'll need to verify the search paths point to the build location of the other (three20) project. 如果您不使用工作空间,则需要验证搜索路径是否指向另一个(three20)项目的构建位置。

This is probably the first of your problems. 这可能是您的第一个问题。 When you upgrade a three20 xcode 3.2 project to 4, you will probably also get an invalid binary message when you upload to itunes. 当您将three20 xcode 3.2项目升级到4时,上传到iTunes时可能还会收到无效的二进制消息。

The only solution that worked for me was to create a new project, re-add all the source files and run the three20 python script with something like: 对我而言唯一有效的解决方案是创建一个新项目,重新添加所有源文件,并使用以下命令运行three20 python脚本:

python /Users/yourpath/three20/src/scripts/ttmodule.py -p /Users/yourpath/YourProject.xcodeproj Three20 extThree20JSON:extThree20JSON+SBJSON --xcode-version=4 -c Debug -c Release python /Users/yourpath/three20/src/scripts/ttmodule.py -p /Users/yourpath/YourProject.xcodeproj Three20 extThree20JSON:extThree20JSON + SBJSON --xcode-version = 4 -c调试-c版本

It's a pain to have to do this but it will probably save you more pain down the line 这样做很痛苦,但可能会为您节省更多的痛苦

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM