gpt4 book ai didi

amazon-web-services - 使用 AWS CodeBuild 构建 React Native

转载 作者:行者123 更新时间:2023-12-04 21:31:23 26 4
gpt4 key购买 nike

这可能是一个简单的问题。我有一个客户,他在 AWS 中拥有重要的存在/基础设施。为客户启动一个新的移动应用程序,他们表示希望尽可能多地使用 AWS 工具集。但是,在浏览了一些诸如 AWS CodeBuild 之类的工具的所有文档后,我不知道如何在该平台上构建 iOS 应用程序。我是否遗漏了什么,您是否可以使用 AWS 工具集(例如 AWS CodePipeline 和 AWS CodeBuild)从 React Native 基础自动构建 iOS 和 Android 应用程序?

我认为您只能使用 Android,因为您没有基于 MacOS 的服务器来实际编译底层 iOS 代码。

最佳答案

Codebuild 使用 docker 来创建构建环境。 AWS 为常规开发目的创建了一大堆 docker 镜像,完整列表是 here .

如果您需要自定义构建环境,或创建完全独特的东西,那没问题。只需创建要用作构建环境(例如 MacOS 服务器)的 docker 镜像,将其上传到 Amazon EC2 容器注册表,然后在 CodeBuild 中引用该镜像。详情请见here .

Build environments are Docker images that include a complete file system with everything required to build and test your project. To use a custom build environment in a CodeBuild project, you build a container image for your platform that contains your build tools, push it to a Docker container registry such as Amazon EC2 Container Registry (ECR), and reference it in the project configuration. When building your application, CodeBuild will retrieve the Docker image from the container registry specified in the project configuration and use the environment to compile your source code, run your tests, and package your application.



编辑:请参阅下面的评论。由于 docker 目前不支持 MacOS 镜像,并且 iOS 应用程序基本上需要 MacOS 主机来构建,因此我认为不可能在 Codebuild 上构建 iOS 应用程序。

关于amazon-web-services - 使用 AWS CodeBuild 构建 React Native,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50022688/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com