How to run an app created by Expo on a device using Xcode?


#1

A newbie here so bear with me

When a RN project is created "react-native init " it creates a folder called “ios” which has a .xcodeproj file. This “.xcodeproj” file can be used by Xcode IDE to run the app directly on a connected device.

When an app is created by Expo it does not create any ios specific folders or any .xcodeproj file.

So how do we run this app on a device ?.

I am aware that you can install Expo client and run the expo generated project via the expo client on an device.

  1. Does that mean your app written entirely via Expo IDE will need to have a Expo client installed on a device ?
  2. Does that mean your app written entirely via Expo IDE cannot be run via Xcode on an actual device ?

Would appreciate all help


After publishing App, how to know if App successfully in App Store and Google Apps?
#2

https://docs.expo.io/versions/latest/guides/building-standalone-apps.html shows how you could release your app to the App Store in a way that people won’t need the Expo app to run it with. :open_mouth:


#3

i believe what we have here is the XY problem (http://xyproblem.info/) – you’re asking how you can run the app via xcode on your device, which is in and of itself not a particularly useful thing to do – but i think you actually have a different goal in mind. can you describe what your end goal is?


#4

:slight_smile:

Okay my intention is to conclusively understand that it is not possible to run the app generated by Expo via Xcode on an device.

Since this is a new platform/IDE I did want a definitive answer before assuming by myself.


#5

hi there,

ok, i still don’t really understand why, but you can read this doc about ‘detaching’ to learn about how you can build through xcode: https://docs.expo.io/versions/latest/guides/detach.html

ideally with expo, you don’t use xcode - just write react code and we take care of building the binary for you (as @nikki linked to above)


#6

Appreciate your help.
I am pretty excited with Expo and let us see how things !!


#7

Hi,
My app was developed using expo and it was submitted for review.
Apple rejected my app due to crash with logs.
I couldn’t able to find this crash issue while developing using expo.
So I tested that same IPA using testflight and found that app crash issue.

So how can i run my IPA in xcode developed using expo. So I can see my error logs in xcode.

Please help.