简体   繁体   English

iOS静态库到静态库符号未定义

[英]iOS Static Library into Static Library symbol not defined

i have to create a iOS static Library that include an other static library. 我必须创建一个包含其他静态库的iOS静态库。 So i create a new Static Library project whit XCode 4 and then I include and use a 3rd part static library. 因此,我用XCode 4创建了一个新的静态库项目,然后包含并使用了第三部分静态库。

When i try to test my static library there is "symbol not found" for all method of 3dr part static library... 当我尝试测试我的静态库时,对于3dr部分静态库的所有方法都出现“找不到符号” ...

So to be more specific i write a static libA.a that use static libB.a and in new test project i include only libA.a and all method of libB.a that are missing symbols. 因此,更具体地说,我编写了一个使用静态libB.a的静态libA.a,在新的测试项目中,我仅包含libA.a和所有缺少符号的libB.a方法。 Even i include also libB.a in test project there are missing symbols... 即使我在测试项目中也包含libB.a,也缺少符号...

There is a way to create a static library that is a wrapper of another static library??? 有一种创建静态库的方法,该静态库是另一个静态库的包装???

Can someone tell me all the build setting that i do in xcode? 有人可以告诉我我在xcode中所做的所有构建设置吗?

Thanks. 谢谢。

You don't need to include the .a of the 3rd party static library. 您无需包含第三方静态库的.a。 You do however need to include the header files of the 3rd party static library if you intend to reference them in your own static library. 但是,如果要在自己的静态库中引用它们,则需要包括第三方静态库的头文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM