• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
including .h files in a project with two static library targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

including .h files in a project with two static library targets


  • Subject: including .h files in a project with two static library targets
  • From: Roland King <email@hidden>
  • Date: Fri, 16 Nov 2012 23:00:44 +0800

I had the original mail the wrong way around, I can build an OS X static library, when I add the same files to an iOS one I cannot select the headers as members of the build product. I've deleted all the build products, rebooted, tried two different Xcode versions, different project names. If I add the .h files on an OSX project they can be selected, if I add the exact same files on iOS, asking for them to be copied .. they cannot be selected as part of the target. 

At this point I can't build a static library version of the expat library because I cannot get Xcode to include the necessary headers. 

What causes the 'Target Membership' box to be greyed out on a header file on an iOS static library target and not an OSX target with the same file (copied locally in each case)? 

An NSXML parser bug sent me to libxml, a libxml feature sent me to expat, Xcode won't compile expat to a static library on iOS under Xcode. It starts to feel like a conspiracy. 


On 16 Nov, 2012, at 9:24 PM, Roland King <email@hidden> wrote:

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? 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: including .h files in a project with two static library targets
  • Next by Date: Re: New custom UITableViewController does not show in IB
  • Previous by thread: including .h files in a project with two static library targets
  • Next by thread: Re: including .h files in a project with two static library targets
  • Index(es):
    • Date
    • Thread