Xcode, including a external reference folder in a build -
i have folder located on hard drive library of handy classes i've created (file .h , .cpp). want keep them external can reference them consistently multiple ongoing projects.
i use add existing files , select folder, adding reference(blue folder)to classes folder in xcode. when attempt access these files project files series of errors because have no idea im doing. steps need take ensure external files included in build?
thanks!
i have folder located on hard drive library of handy classes i've created (file .h , .cpp).
xcode doesn't automagically enumerate directory contents , produce static libraries, folder references might imply. easy way manage create library other projects reference:
- create new xcode project
- add static library target (note: possibly library type)
- add source files new project
add .cpp files static library
add new project existing app
add library app's link phase
keep static library in sync files compile
that's summary; this looks more detailed introduction.
Comments
Post a Comment