Reputation: 55
i dont know what to do. I cannot add any .H file to Target in my projects. I tried add it from Add FIle, from drag and drop then info file and check target. Its greyed. when i try to add new file and choose H a cannot check to add it to target. whats is wrong?
Upvotes: 2
Views: 1688
Reputation: 9080
the header files are not compiled into the project, only the source files and frameworks. The header files are only there to tell the compiler what it can expect in regards to sending messages to objects
Upvotes: 1
Reputation: 5266
Headers are not compiled, so they don't get added to the target.
Look at all the headers currently in your project like your XxxxxAppDelegate.h, you'll see it's not added to the target either.
Upvotes: 2