jpush / jpush-react-native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
1.35k stars 336 forks source link

m1 macOS 12.0.1 Xcode 13.1 iOS 构建 Debug 安装包报错 #860

Open onlyling opened 2 years ago

onlyling commented 2 years ago

你的运行环境

期望效果

能构建出 Debug 的安装包

实际效果

iOS 构建 Debug 安装包的阶段中报错,Android 还没有尝试。

重现步骤

运行环境:M1 Pro,Xcode13.1 (13A1030d),macOS 12.0.1,Command Line Tools:Xcode 13.1 (13A1030d),cocoapods 1.11.2 、ffi 1.15.4 有参考Mac M1 搭建 React Native 环境这篇文章搭建环境。

npx react-native init AwesomeTSProject --template react-native-template-typescript 创建一个空白项目(0.66.3),添加一些第三方组件例如路由、启动页、config 之类的,不使用 jpush-react-nativejcore-react-native 的情况下,yarn ios 正常启动。 一旦安装 npm 依赖包(不修改原生端代码),在 ios 文件夹下 pod install 后,yarn ios 编译报错。

Debug logs

包括 Android 或 iOS 的日志: 很大篇幅的报错日志,看的不是太明白。 image

mikehardy commented 2 years ago

The module has not converted to .xcframework and will not work for M1s until they do the necessary work in their build scripts. Right now it is using the old library packaging format where there is only a single "slice" for the arm64 architecture and they have used it for arm64 iOS, not the arm64 Simulator.

https://onesignal.com/blog/xcframeworks-guide/