iOS project shows linker error for i386

2019-08-28 10:57发布

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.

enter image description here

Why still checking for i386 ? I used iOS only in valid architecture. enter image description here

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) { \

0条回答
登录 后发表回答