0

I'm programming a C++ library which is going to be used by .NET, Android and iOS. I recently noticed that with external libraries Apple may reject the final App.

It is possible to compile an included library (like Boost, libcurl, sqlite3, etc) as a static library and be able to publish the iOS app with the C++ library (which will include the libraries)?

SysDragon
  • 9,692
  • 15
  • 60
  • 89

1 Answers1

1

There should be no problem with linking a static library in your project. Only apps using dynamic libraries are rejected by Apple.

Can you build dynamic libraries for iOS and load them at runtime?

Community
  • 1
  • 1
Marcin Kuptel
  • 2,674
  • 1
  • 17
  • 22
  • So the C++ library will include the static library (sqlite3 for example) and iOS project will include the C++ library as a static library too. – SysDragon Mar 24 '14 at 09:26
  • 1
    Actually in one of my projects I have a custom C++ library that uses boost and sqlite3 but they are included separately in the Xcode project (as separate .a files). – Marcin Kuptel Mar 24 '14 at 11:10