I have an Xcode static library project, how do I add a test target to it so I can run it there? (Ins
- by zekel
I want to be able to test library code in the library target so I don't have to switch over to a separate project to run it.
I see how to add a target, but I'm not sure how to set it up to run like the "Command Line Tool" project template does. I tried adding a new "Shell Tool" target, but I don't know how to make it run like one. What build settings do I have to add to that target? What files (main.m?) do I need to start it up?