本文介绍了Xcode 4& three20&创建IPA存档:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 3.2.5中,我使用Build and Archive创建一个没有任何问题的IPA文件。
如何在Xcode 4中执行此操作?我想我必须使用Product - > Archive,但我在three20框架中收到了100多条错误消息。大多数是没有这样的文件或目录。 (产品 - >构建 - >构建存档工作。没有错误。)

In Xcode 3.2.5 I use "Build And Archive" to create an IPA file without any problems.How can I do that in Xcode 4? I think I have to use "Product -> Archive", but I get over 100 error messages in the three20 framework. Most are "No such file or directory". ("Product -> Build For -> Build For Archiving" works. No errors.)

例如,这是第一条错误消息:

For example, this is the first error message:

../scripts/Protect.command: line 23: cd: /Users/[USERNAME]/Library/Developer/Xcode/DerivedData/[PROJECTNAME]-blabla/ArchiveIntermediates/[PROJECTNAME]/BuildProductsPath/Release-iphoneos/../three20/Three20Core: No such file or directory

路径/ [PROJECTNAME] / BuildProductsPath / three20 /确实不存在,但此路径存在: / [PROJECTNAME] / three20 /

The path "/[PROJECTNAME]/BuildProductsPath/three20/" really doesn't exists, but this path exists: "/[PROJECTNAME]/three20/"

我该怎么办?

推荐答案

Three20文档并没有为我解决这个问题(不幸的是......)。最终对我有用的是一些解决方案。 存档和存档构建(或运行版本)之间存在差异,并且使用这些步骤我使用它们都没有构建问题:

The Three20 documentation did not solve this issue for me (unfortunately...). Eventually what worked for me was a mix of a few solutions. There is a difference between "Archive" and "Build for Archiving" (or build for run) and using these steps I have both of them working with no build issues:

您需要将脚本更改为,为链接到项目树的每个Three20项目设置Skip Install标志,并将以下路径添加到项目的Header搜索路径中:

You will need to change the scripts as Manni mentioned, set the "Skip Install" flag for each Three20 project linked to your project tree and add the following paths to your project's "Header search paths":

$(BUILT_PRODUCTS_DIR)/../ three20
$(BUILT_PRODUCTS_DIR)/../../ three20

"$(BUILT_PRODUCTS_DIR)/../three20""$(BUILT_PRODUCTS_DIR)/../../three20"

这将让你使用Build选项。当您想要执行存档操作时,您还需要将Xcode中的位置首选项更改为。

this will get you to work with the Build option. When you want to perform the archive action, then you will also need to change the "Locations" preference in Xcode as featherless mentioned above.

我在这个。

这篇关于Xcode 4& three20&创建IPA存档:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 11:43