Rafal
Rafal

Reputation: 55

Cannot add any new .H file to target when adding it to project,

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

Answers (2)

Simon Goldeen
Simon Goldeen

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

NWCoder
NWCoder

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

Related Questions