KLCPopup
KLCPopup copied to clipboard
Compile Error: "Function definition is not allowed here" in "New Created Project" of XCode 6
After I created a new project in XCode 6 and import KLCPopup.h, I got the following error:
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!
@Simon-Tseng I have the same problem but i dont understant you solution :(.
Could you please give me more information ?
@ingouackaz
Please following the steps in http://stackoverflow.com/a/24258165/4146743 to create pch file, then add the following to pch file:
Good Luck :)
That works! @Simon-Tseng
Thank you very much !
Alternatively, you may import UIKit and Foundation in KCLPopUp.h