Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to build react native iOS app with docker?

$
0
0

I want to build my react native iOS app using docker, My problem is that when I run react-native run-ios I'm getting an error that it cant find the simulator. I know the issue occur because I don't have Xcode on my docker.

I was looking for image for Mac or Xcode but all found is a few images for old versions of Xcode and they are not working anymore, I couldn't find images for Mac or any other way to install Xcode on my docker or install iOS simulator on image that isn't Mac OS.

Im attaching my docker:

FROM openjdk:8 as builderENV SDK_URL "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip"ENV ANDROID_HOME /usr/src/appENV ANDROID_BUILD_TOOLS_VERSION 28.0.3ENV ANDROID_VERSION 28ENV PATH $PATH:$ANDROID_HOME/binARG NODE_VERSION=12.xWORKDIR /usr/src/appCOPY package*.json ./# installing android and javaRUN apt update -qq && apt install -qq -y --no-install-recommends \       apt-transport-https \       curl \       build-essential \       file \       git \       openjdk-8-jre \       gnupg2 \       python \       ruby-full \       openssh-client \       zip \       unzip \&& rm -rf /var/lib/apt/lists/*/;  RUN npm i -g react-native-cli#installing librariesRUN npm installCOPY . .RUN react-native run-ios;

Thank you for the help


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>