换了m1笔记本arm64编译报错,求解决方法
您好,我以前是intel的cpu,编译没问题。最近换了m1了
pod 安装的,podifle文件中相关内容如下:
pod 'JCore', '2.1.4-noidfa'
pod 'JPush', '3.2.4-noidfa'
安装后,编译项目报错,如下:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_JPUSHRegisterEntity", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_JPUSHService", referenced from:
objc-class-ref in WJUserManager.o
objc-class-ref in WJNewsViewController.o
objc-class-ref in WJBaseViewController.o
objc-class-ref in AppDelegate.o
objc-class-ref in WJMessageViewController.o
"_OPENSSL_add_all_algorithms_noconf", referenced from:
_baidu_vi::CVSocketMan::CVSocketMan() in BaiduMapAPI_Base(VSocket.o)
"_SSL_library_init", referenced from:
_baidu_vi::CVSocketMan::CVSocketMan() in BaiduMapAPI_Base(VSocket.o)
"_SSLv23_client_method", referenced from:
_baidu_vi::CVSocketMan::CVSocketMan() in BaiduMapAPI_Base(VSocket.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
求解决方法