Static libraries in Xcode 4

后端 未结 6 813
清歌不尽
清歌不尽 2020-12-07 09:49

(My question has been asked here before but with no working answers that I can see. E.g. Xcode4 Workspace with Static library project & application project)

I\'

6条回答
  •  日久生厌
    2020-12-07 09:56

    One clarifying detail (after digging through build output until I started to go cross-eyed): if you are finding your library headers are being exported to Build/Products/Debug and your parent project is looking in Build/Products/Debug-iphonesimulator, your library is being built for OS X, not iOS. You can change this in the "Supported Platforms" setting in the "Architectures" section of the project settings. OS X appears to be the default setting if you create a vanilla C++ static lib project, so this situation is easy enough to encounter.

提交回复
热议问题