How to generate an ipa with expo (react native) for production? - react-native

i work for a key account and i'm a beginner in react native. I work on a PC and i use expo when i want to build an ipa for iOS . It's very easy for a development version but i'm stucked when i build for production.
I have the following error :
validateProvisioningProfile: provisioning profile is not associated with uploaded distribution certificate
The message seems very clear but it's not.
Actually, i've a dev account and i have to use a distribution profile from my organisation. My dev account is part of my organisation and i thought it was enough to pass the test but it's not. Help would be very appreciated. Thanks in advance.

You need to get Mac (not PC), open apple developer account and run in the project folder:
expo build:ios
you will get a url with an option to download ipa file

Related

Impossible to update expo project inside Expo Go after switching to EAS Build

I have the need to run a project from Expo Go without being connected to PC. We are developing an app that require GPS and needs to be tested in open field.
Before EAS became the standard to create projects i used
expo build:android
ad this created not only the apk, but uploaded the project to my account and i was able to start it from Expo Go projects section just like the app was installed on phisical device. That worked also fo iOS and was a great testing feature.
After i moved to EAS Build
eas build -p android --profile preview --clear-cache
my project inside Expo Go does not update anymore and its stucked at sdk 44 even if now i'm working (and creating builds) with sdk 46.
I went through the official documentation many times but i don't get how to make the app start from Expo Go (project sction) as i did before. Maybe i'm missing some configuration.
Thank you all for any kind reply.
Have a good day.
EDIT
I found the solution to this problem and now my builds are working and uploading to Expo Go.
Check out this information: https://github.com/expo/fyi/blob/main/eas-build-archive.md
Basically EAS Updates will not bundle anything inside your .gitignore, in my case it needed specific config files. Did a quick test by taking them off the .gitignore and now it's working. Will move to GitHub SECRETS in the future.
Hope that helps.

How to publish expo app that can be accessed by anyone, anywhere using QR code?

after completing the development of an expo app, I want to share it with friends who can check it by QR code or link to a live server. How can I do it?
If you are using the Expo Managed workflow, you can share your application with Expo Go. In this case, you don't need to publish in any store. Just follow the instructions to share pre-release versions by Expo Go on documentation. I created an Expo project to publish and share with a link that contains the QR code to run on Expo Go.
Note: To see the Expo application install Expo Go is required.

React Native application deployment

I have already developed a React native application on my mac book, this is myfirst application. I want to deploy it to iPhone so that I can test it. I don't want to put it on appstore yet. I am not sure how to compile the application and get it ready to put it on iPhone. I tried this web site
https://www.diawi.com/, but not sure which .ipa or a.pk file, I need to upload. I can also try using expo, but not sure how to use it. Can anyone give me step by step instruction on how to upload this application on iPhone.
any help will be greatly appreciated.
For iPhone
For react-native-init you will probably need Apple developer account to test your app on your phone
Since you are using react-native-init, You should checkout this article by Facebook
https://facebook.github.io/react-native/docs/running-on-device
In the second point, it says Register for an Apple developer account if you don't have one yet
For create-react-native-app you need to do following
Download expo client from App store
Scan the QR code expo generate when you run your app using terminal (npm run start in terminal )
Note: Both Laptop and your phone should be on the same network
According to this thread, You can't use expo with react-native-init but alternatively you can create an expo project using create-react-native-app and then copy, paste files from your init project
For Android
For running your App on Android, You can directly generate/build an apk, send it to your device and just open it to see how it works (In Android you don't need a console or developer account to run your app)
Again, Open this link https://facebook.github.io/react-native/docs/running-on-device
And click on Android Tab to see how you can generate an Apk

How to create a .ipa file on windows without Xcode and without an Apple Developer Account

I want to know how I can convert an app I wrote to a .ipa file. My app is written in react native, but I can't afford the Apple Developer Account to convert my app to a .ipa file using Expo. If possible, I want a solution that can convert an app written in any language or the popular ones.
Any help is appreciated!
Thanks!
With expo you can create ipa using this command:
exp build:ios
Follow this latest documentation of expo.. you just need to change your app.json file as they mention.
Expo latest documentation for generating apk & ipa
Step 1: install exp: npm install -g exp
Step 2: configure app.json file
Step 3: exp build:android or exp build:ios
Note: for .ipa you should know your apple ID and password: once you
start building expo ask you for your apple ID n password
? How would you like to upload your credentials? Expo handles all
credentials, you can still provide overrides
We need your Apple ID/password to manage certificates and provisioning
profiles from your Apple Developer account.
Note: Expo does not keep your Apple ID or your Apple password.
? What's your Apple ID?

Build standalone app from React native projects

How do i create a standalone app for iOS (*.ipa) so that i can distribute it to friends / testers?
Is there a way to do this without paying 99$/annum to Apple?
I tried the solution where you have to create a directory called "Payload", archive it and then rename it to *.ipa. But, this did not work.
Expo has created a great solution to this problem. It's also great for development. They have a huge community on their slack channel. Download the expo app, and you can test on your own device, and send your app to your friends.
https://expo.io/
You could ask your friends to install the Expo App to test it
If you ask your friends to install the Expo app and you keep your Expo XDE open with your host selected as tunnel it should work. But if you switch of you xde the app will not work anymore. This is the only way.
The android apk can still be circulated to your friends without the license but for ios you will need to get the developers certificate and upload your app/get approval and only then can you ask people to test it out.