之前一直可以用的,昨天在运行的时候,就报错
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_JPUSHService", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
网上试了好多方法,也改了好多都没用,,求遇到的大神帮忙解答一下。

解决方案 »

  1.   

    Undefined symbols for architecture i386这种错误一般是找不到在模拟器下使用的库或者说库不支持模拟器
      

  2.   

    我试了下。真机不报这个错了ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
    clang: error: linker command failed with exit code 1 (use -v to see invocation)。。这个错您有遇到过了。。不是第三方库的问题。。我看了几遍了。
      

  3.   

    用其他库总会有一些麻烦。
    这个错误提示要将ENABLE_BITCODE设成NO。
    1、进入Build Settings
    2、在Build Options里将Enable Bitcode设为NO
    希望能得上忙。
      

  4.   

    ENABLE_BITCODE和推送没半毛钱关系,这个主要是游戏在线加载资源用的,放心设置吧