iOS project shows linker error for i386

血红的双手。 提交于 2019-12-12 03:42:56

问题


Today I tried integration of UrbanAirship in iOS project.

Got linker error saying -logging is not found for i386 architecture.

So I removed i386 architecture from lib.

lipo -remove i386 libUAirship-1.4.0.a  -output libUAirshipNew

Then I got lots of linker error for i386 after adding this.

Why still checking for i386 ? I used iOS only in valid architecture.

How can I completely remove dependency with i386?

UPDATES 1: Sorry for my confusion, we need i386 to run in simulator. How can I fix original problem -

Undefined symbols for architecture armv7: "_logging", referenced from

libUAirship-1.4.0.a

UPDATE 2: Finaly I got solution hit from https://support.urbanairship.com/customer/portal/questions/3170-push-api-libuairship-1-4-a-missing-required-architecture-i386

Removed this line:

extern BOOL logging;

and this line around line 32:

if (logging) { \


to:

if (1) { \

来源:https://stackoverflow.com/questions/15827119/ios-project-shows-linker-error-for-i386

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!