How should I get Xcode to link an iOS project that uses a C++ static library

后端 未结 1 1273
时光取名叫无心
时光取名叫无心 2021-01-21 03:58

Using Xcode, I\'ve written a Cocoa Touch static library, mainly in C++. It exposes a C interface for the benefit of Objective-C client code.

I have a client iOS app that

1条回答
  •  太阳男子
    2021-01-21 04:34

    Should be just a matter of adding -lc++ to the linker flags in the project settings, I'd have thought.

    Add it under "Other Linker Flags" under "Linking" section of the "Build Settings" tab on your project's settings.

    0 讨论(0)
提交回复
热议问题