简体   繁体   English

iPhone应用程序存档-没有此类文件或目录

[英]Iphone app archive - No such file or directory

I am almost ready to release my iphone app. 我几乎准备发布我的iPhone应用程序。 I use restkit for consuming my webservice. 我使用restkit来使用我的Web服务。 When I archive, it fails with this error: 当我存档时,它失败并显示以下错误:

cp: /Users/myusername/Library/Developer/Xcode/DerivedData/project-name-/ArchiveIntermediates/project-name/IntermediateBuildFilesPath/UninstalledProducts/include/RestKit: No such file or directory cp:/ Users / myusername / Library / Developer / Xcode / DerivedData / project-name- / ArchiveIntermediates / project-name / IntermediateBuildFilesPath / UninstalledProducts / include / RestKit:没有此类文件或目录

I dragged & dropped restkit into the project. 我将restkit拖放到该项目中。 It builds and works fine in debug mode. 它可以在调试模式下构建并正常运行。 I am guessing it is unable to locate restkit dir while archiving. 我猜它在归档时无法找到restkit目录。 But I am not sure why. 但是我不确定为什么。 Any thoughts? 有什么想法吗?

I've had trouble linking with my own framework in the past, but I have a procedure that works. 过去,在与自己的框架进行链接时遇到了麻烦,但是我有一个有效的过程。 Even though I don't understand it, it works so I follow it like voodoo, and I don't risk angering the gods by asking too many questions. 即使我不理解它,它也起作用,因此我像伏都教一样遵循它,而且我也不会冒问太多问题来激怒众神的风险。

Here's what I'd try on your project (again, partly voodoo here): 这是我在您的项目上尝试过的内容(再次,这里有些是巫毒教):

  1. Navigate to the Frameworks folder in the project nav, select the RestKit and delete it with the delete key. 导航到项目导航中的Frameworks文件夹,选择RestKit并使用Delete键将其删除。 Just delete references. 只需删除引用即可。
  2. Using Finder, option-drag (copy) the framework from wherever you first got it (~/Downloads, or another project or wherever) into your project directory, replacing files if prompted. 使用Finder,将框架从第一个获取的位置(〜/下载,或其他项目或任何位置)拖放(复制)到项目目录中,并在出现提示时替换文件。
  3. Back in your project, select the project, then the target, then build phases. 返回项目,选择项目,然后选择目标,然后构建阶段。
  4. Open the link binary section, hit "+", then the "Add Other.." button on the bottom of the dialog 打开链接二进制部分,单击“ +”,然后单击对话框底部的“添加其他..”按钮。
  5. Browse to the framework you copied in in step 2. 浏览到您在步骤2中复制的框架。

See if you can clean, build, archive. 看看是否可以清理,构建和存档。 Easy enough to try, and no livestock are harmed. 易于尝试,不会伤害牲畜。 Hope it works for you. 希望对你有效。

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

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