I have a project I just made which builds an iOS static library. I added the .c and .h files to the nearly empty project and was able, for each .c, to include it in the project, and for each .h to include it and pick whether it's project/public etc. No problem.
Then I added an OSX target static library because I want to build this library, also static, for OSX. I selected all the .c files and can add them to both targets but for the .h files, the checkbox on target membership is greyed out and I can't add them, which means I can't build the library and even if I could it wouldn't export the correct headers so it would be rather useless.
I deleted the entire project and started from scratch, same thing, first target I can add headers to and select their visibility, second static library target, no go, I can't add the headers to the second static library target.
I don't really want to have two projects, one for iOS and one for OSX, I just want two darned targets. How do I do this?