AsyncDisplayKit icon indicating copy to clipboard operation
AsyncDisplayKit copied to clipboard

[Swift] Specifically for Archive builds, #import <AsyncDisplayKit/AsyncDisplayKit.h> 'file not found'

Open AndrewHartAR opened this issue 11 years ago • 13 comments

I followed the instructions to manually integrate AsyncDisplayKit with my app. It builds and runs fine, but when I go to Archive, it points me to my bridging header file, the line #import <AsyncDisplayKit/AsyncDisplayKit.h>, giving me the error '<AsyncDisplayKit/AsyncDisplayKit.h>' file not found.

Under Framework Header Paths, I've now added the AsyncDisplayKit folder, but this hasn't solved the problem. I'm not sure what the problem is or what I can do about it.

AndrewHartAR avatar Apr 18 '15 02:04 AndrewHartAR

Confirmed by trying this with a test project.

AndrewHartAR avatar Apr 19 '15 11:04 AndrewHartAR

I detailed this issue here:

http://stackoverflow.com/questions/29730394/failed-to-import-bridging-header-file-not-found-when-archiving-my-project

AndrewHartAR avatar Apr 19 '15 13:04 AndrewHartAR

@ProjectDent I'm having the same issue. Did you ever resolve it?

habitatus avatar May 14 '15 20:05 habitatus

@habitatus I removed the project files, and just imported all AsyncDisplayKit files into my project manually.

AndrewHartAR avatar May 15 '15 16:05 AndrewHartAR

@ProjectDent That seems reasonable. Changing the #import <header> to #import "header" throughout the ASDK did the trick for me. Thank you!

habitatus avatar May 15 '15 19:05 habitatus

@ProjectDent thanks for reporting this. Could you test out locally applying this PR to see if it resolves this particular issue with the #import syntax you had previously? #449

Alternatively, if you can upload a sample project, I'll test it out and make sure this works properly.

appleguy avatar May 18 '15 02:05 appleguy

I'm using 1.2.2 and still see this issue. I'm not using Pods, but import the AsyncDisplayKit directly as written in AsyncDisplayKit documentation.

kusmi avatar Jul 16 '15 14:07 kusmi

@ProjectDent @habitatus I tried your suggestion replacing all .h's through ASDK with the "" instead of <> and i got it compiling and running locally. But when I went to archive...same error happens in bridging header on #import "AsyncDisplayKit/AsyncDisplayKit.h"

I need to support iOS 7.1 as we still have hundreds of daily users on ios 7 Are there any better working solutions to manually install this library.

I'll try manually dropping in source files and see what happens and report back :-/

klivin avatar Apr 06 '16 23:04 klivin

@klivin are you sure it is not an issue such as the one described on this page under "archiving works a little differently?"

http://stackoverflow.com/questions/5543854/xcode-4-cant-locate-public-header-files-from-static-library-dependency

I have not seen any other reports of this, but if you can provide more concrete details such as a simple test project that reproduces the issue, we can certainly fix it. Without a way to reproduce, we have no way to test the fix.

appleguy avatar Apr 08 '16 07:04 appleguy

@klivin what version are you building against currently?

appleguy avatar Apr 08 '16 07:04 appleguy

@klivin: were you able to resolve the archiving issue? If so, can you share what worked?

hannahmbanana avatar Apr 27 '16 06:04 hannahmbanana

@ProjectDent #1663 suggests that this issue would be fixed by CocoaPods 1.0.0. Could you try completely wiping Podfile.lock plus the pods integration, ensuring that version's installed, and archiving?

Adlai-Holler avatar May 17 '16 17:05 Adlai-Holler

@ProjectDent - thanks for contributing to the AsyncDisplayKit community by asking your question here! Due to the length of time it's been since this thread was active, I'm going to mark this issue as closed. If any of you (including @habitatus @kusmi @klivin) are still having troubles, feel free to reopen this issue or a new one, OR contact us on the ASDK Slack channel (#1582). I hope you have been able to use the framework!

appleguy avatar Jun 06 '16 02:06 appleguy