0

A company has asked me to deliver them a c/c++ library. They want to use it in an iphone app, which is objective c based.

I would prefer to deliver a library as opposed to code.

Could they wrap the c/c++ library into their iphone app without any need to see the source code?

Thanks

4

2 回答 2

1

您需要参考以下链接来创建静态库:链接显示一步一步的过程

  1. http://www.lextech.com/2013/02/static-libraries-in-ios/

  2. http://jaym2503.blogspot.in/2013/01/how-to-make-universal-static-library.html

于 2013-07-22T13:46:07.007 回答
0

据我了解,您希望提供一个二进制文件供他们在应用程序中使用。如果这是真的,那么是的,这是可能的,但是有一个问题,你需要使用 C++ 的 x 代码编译器来编译库,并确保你在库中使用的任何东西都与编译器兼容。(确保库是与 armv7 和 armv7s 架构兼容)。至于包装器,不需要包装器,它们可以直接使用.mm文件中代码中的c++语法。但如果这是必须的,那么他们可以使用包装器生成器来构建包装器。

于 2013-07-22T11:42:31.427 回答