Iphone app archive - No such file or directory

≯℡__Kan透↙ 提交于 2020-01-03 03:13:07

问题


I am almost ready to release my iphone app. I use restkit for consuming my webservice. 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

I dragged & dropped restkit into the project. It builds and works fine in debug mode. I am guessing it is unable to locate restkit dir while archiving. But I am not sure why. Any thoughts?


回答1:


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. 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.
  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.

See if you can clean, build, archive. Easy enough to try, and no livestock are harmed. Hope it works for you.



来源:https://stackoverflow.com/questions/10117629/iphone-app-archive-no-such-file-or-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!