开发者

Importing ASIHTTP , Objective-c?

When trying to use ASIHTTP.

ASIHTTP: ld: duplicate symbol _OBJC_IVAR_$_ASIAuthenticationDialog.request in
开发者_如何学JAVA

I keep getting this error

Importing ASIHTTP , Objective-c?

I did tried Product -> Clean Target / etc, no luck.

Thanks


Make sure you import the .h file instead of the .m

#import @"ASIAuthenticationDialog.h"

Instead of

#import @"ASIAuthenticationDialog.m"

Importing the .m file will produce this linker error.


I can Import just fine, but when I build I get a ton of errors referring to ARC (Automatic reference counting). I guess it hasn't been converted yet. Anyone know if it is being optimized to run with ARC?


I ended up with this issue after linking a static library that already included the ASIHTTPRequest project. To fix it I had to remove the linker flags "-all_load -ObjC" from my app project.

Unfortunately this leads to other issues, like Categories not working in the static library I was linking.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜