M1芯片mac,Xcode12.4,iOS集成JPush,编译错误,崩溃问题。
M1 mbp,Xcode 12.4。
使用CocoaPods 集成最新的JPush
模拟器编译不通过,提示
.../Pods/JCore/libjcore-ios-2.6.2.a(JCommonLocationController.o), building for iOS Simulator, but linking in object file built for iOS, file '.../Pods/JCore/libjcore-ios-2.6.2.a' for architecture arm64
之后我在
Target - Building Settings - Excluded Architectures
Debug 中加入了 arm64,再次编译,通过。
但是运行程序会崩溃,崩溃日志为
+[JPUSHService setupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]: unrecognized selector sent to class 0x101064b08
找不到指定方法。