Xcode4 Create Static Library from Existing Project

2019-02-20 19:52发布

问题:

Having trouble creating a static library in XCode4. I have been following this helpful tutorial:

But I keep running into the same problem. How do you create a library from an existing project? I'm having difficulty building the project (not running) because it seems to run into compiler errors within the code I just imported.

How do I set up an existing project for importing into a Cocoa Touch Static Library project?

回答1:

Select
Target-> Build Settings
In the Linking Section Change the Mach-O Type to Static Library

You Can Try this for making your static library usage smart