Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell Script Error During Archive: No such file or directory #21

Open
waynehartman opened this issue Jul 2, 2014 · 7 comments
Open

Comments

@waynehartman
Copy link

I am attempting to do an archive build of my application and keep getting this error during the execute shell script phase:

cp: /Users/wayne/Library/Developer/Xcode/DerivedData/ParcelKit-djdcjakqlvinjzgepjzjqnpyiqyu/Build/Intermediates/ArchiveIntermediates/Framework/IntermediateBuildFilesPath/UninstalledProducts/Headers/: No such file or directory

This occurs in Xcode 5.1.1, Xcode 6 b2. I encounter this problem whether it is in the context of the app or the standalone archive of the framework. Any tips?

@daikini
Copy link
Member

daikini commented Jul 2, 2014

Not sure what's up with that. I just archived an app that includes ParcelKit without any issues.

How are you including ParcelKit in your app? I recommend including it as a Framework as described in the https://github.com/overcommitted/ParcelKit/blob/master/README.md

@waynehartman
Copy link
Author

I was able to get it to build by removing the run script phases.

I am not sure, by looking at the project, what advantage there is to adding it as a framework (vs static library) since I don't see any assets like images, bundles, etc. in the project. Am I missing something?

@daikini
Copy link
Member

daikini commented Jul 2, 2014

You can certainly add it as a static library and then manually include the necessary headers. I find including it as a Framework much simpler as it's all encompassing.

I'm guessing you included the ParcelKit.xcodeproj within your Xcode project which is why it was trying to execute the run script phases. The run script phases in the ParcelKit.xcodeproj are there to generate the ParcelKit.framework. Guessing something isn't setup correctly when the ParcelKit Xcode project is included in another Xcode project.

@waynehartman
Copy link
Author

That is precisely what I am doing. When a static library is included as a sub project AND there is a Copy Headers build phase for the relevant headers, XCode takes care of making sure that they are included in the proper search paths for the enclosing project.

I appreciate you taking time to respond.

@daikini
Copy link
Member

daikini commented Jul 2, 2014

Interesting, I did not know that Xcode would do that for sub projects. Pretty cool. I wonder if there is a way inside the run script phases to detect if the project has been included as a sub project so it can skip the framework generating stuff.

@waynehartman
Copy link
Author

The last demo of this 2012 video shows the 'Apple preferred' way of using static libraries and subprojects. Skip to the last 15-20 minutes.

Working with Schemes and Projects in Xcode
https://developer.apple.com/videos/wwdc/2012/

I'm really excited that Apple have (finally!) brought real frameworks to iOS 8.

@daikini
Copy link
Member

daikini commented Jul 2, 2014

Thanks for the link to the video!

Definitely excited about real frameworks on iOS 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants