Weex 执行weex build ios报错

weex打包ios的时候报错

weex build ios

报错如下:

15:22:35 : Command failed: pod update

15:22:35 : You should config `CodeSign` and `Profile` in the `ios.config.json`

    We suggest that you open the `platform/ios` directory.

    Package your project as a normal ios project!

百度了一下,说需要在ios.config.json文件中配置CodeSign和Profile,可怎么配置?

另外,其中‘We suggest that you open the platform/ios directory.’这是怎么个意思,啥操作?

各位大佬有晓得的不,在线等!

阅读 3k
1 个回答

这其实就是weex的坑,前端同学只知道weex build ios。 然而 ios打包的前提需要配置pod库的第三方依赖,还有苹果开发者账号的证书签名。你想解决这个问题,只有:
1.下载xcode
2.xcode选中这个选项
clipboard.png
3.检查是否安装cocoapods。没有安装自行百度
4.终端cd到ios项目,确保项目目录里podfile文件存在,然后运行pod install 或者pod update
5.再次执行weex build ios

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进