IOS编译报错:objc-class-ref in AppDelegate.o之解决方案 Xcode7

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_QQApiInterface", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_ShareSDK", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in RecipeDetailViewController.o
objc-class-ref in showViewController.o
objc-class-ref in video_show.o
"OBJC_CLASS$_TencentOAuth", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_WXApi", referenced from:
objc-class-ref in AppDelegate.o

IOS编译报错:objc-class-ref in AppDelegate.o之解决方案 Xcode7_第1张图片

1.把1.选中Targets—>Build Settings—>Architectures。
把build active architectures only 改为 NO。

  1. 把最下面的Valid Architectures中的arm64参数删掉就可以了
    或者:
    双击Architectures,选择other,删除$(ARCH_STANDARD),然后增加armv7和armv7s(写上:$(ARCHS_STANDARD_32_BIT))。
    3.clean 再build。
    结果设置如下图:


    IOS编译报错:objc-class-ref in AppDelegate.o之解决方案 Xcode7_第2张图片

设置完成后,问题顺利解决,大家有更好的解决方案,欢迎讨论!

你可能感兴趣的:(IOS编译报错:objc-class-ref in AppDelegate.o之解决方案 Xcode7)