aleclarson / emitter-kit

Type-safe event handling for Swift
MIT License
567 stars 71 forks source link

`Unknown type name 'FOUNDATION_EXPORT'` when building EmitterKit.h #17

Closed danyalaytekin closed 9 years ago

danyalaytekin commented 9 years ago

Environment

Xcode 6.3 (6D570) OS X 10.10.3 Building for iPhone 6 (8.1, 8.3)

Setup

Added emitter-kit as a submodule to the project. I am not using CocoaPods due to various problems experienced earlier.

Error

When compiling, receive the error Unknown type name 'FOUNDATION_EXPORT'.

Error screenshots

image

image

Workaround

The project builds successfully if each occurrence of FOUNDATION_EXPORT is changed to extern.

aleclarson commented 9 years ago

Whoops, thanks for letting me know! :+1:

danyalaytekin commented 9 years ago

Thanks, that was super quick. Is it worth adding your repo to something like Travis, which would have caught this issue early? http://docs.travis-ci.com/user/languages/objective-c/

dkun7944 commented 7 years ago

@aleclarson How did you fix this issue? Having the same problem in a project of mine.

aleclarson commented 7 years ago

@dkun7944

This was fixed by adding #import <Foundation/Foundation.h> to EmitterKit.h.

As evidenced by this StackOverflow question, it seems extern would also work.

Are you getting the same error? Which version of emitter-kit are you using?