问题
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