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

Compile Error: "Function definition is not allowed here" in "New Created Project" of XCode 6 #7

Open
Simon-Tseng opened this issue Oct 20, 2014 · 4 comments

Comments

@Simon-Tseng
Copy link

After I created a new project in XCode 6 and import KLCPopup.h, I got the following error:
2014-10-20 8 58 14
This issue is caused by ProjectName-Prefix.pch is not created automatically in Xcode 6, thus the following import is missing:
UIKit/UIKit.h
Foundation/Foundation.h

You can follow the following discussion to add .pch back manually:
http://stackoverflow.com/questions/24158648/why-isnt-projectname-prefix-pch-created-automatically-in-xcode-6

I love KLCPopup! Hope it support keyboard. Thanks!

@ingouackaz
Copy link

@Simon-Tseng
I have the same problem but i dont understant you solution :(.

Could you please give me more information ?

@Simon-Tseng
Copy link
Author

@ingouackaz
Please following the steps in http://stackoverflow.com/a/24258165/4146743 to create pch file, then add the following to pch file:
2014-12-06 12 15 35

Good Luck :)

@ingouackaz
Copy link

That works! @Simon-Tseng

Thank you very much !

@LokeshBhatija
Copy link

Alternatively, you may import UIKit and Foundation in KCLPopUp.h

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

3 participants