How to release ios app by react native - ios

I read documents of react native and I have built a file apk with this tutorial. But i don't see tutorial for how to release ios app with my code react native. I'm a newbie so I hope anyone can show me step by step to release ios app with react native pls. Thanks

Short answer: use fastlane.
Here is why:
Especially as a newbie i can recommend you to use fastlane-tools.
Fastlane contains tools that helps you with the signing process of the app where you need certificates and provisioning profiles. This is normally a very very complex process with lot of pitfalls, but fastlane makes it easygoing with some simple commands.
Some good tutorials about using fastlane together with react native:
https://dbanck.svbtle.com/deploying-a-react-native-app-with-fastlane
https://weluse.de/blog/react-native-deployment-with-fastlane.html

Related

How to create a distributive react-native app for iOS?

I have created a react-native app using the tools - VS Code, expo, react-native.
I am able to run the app on expo client as well as xcode simulator easily on my laptop. What I want now is to make a distributive file for iOS like we have .apk for androids for this app.
I referred to this question How to build .ipa application for react-native-ios?
and tried
react-native run-ios --configuration=release
but I get an error:
Error iOS project folder not found. Are you sure this is a React Native project?
Don't know what I am missing here? I am a beginner with react-native, would really appreciate any help on this.
You have to run expo build:ios that will then ask you your account and certificates, once you have all that figured out it will give you a link where you can see how the build is doing, after it's complete you can download the .ipa file and use the app transporter from the app store to send you app to apple servers.
(All this if you are using expo, if you aren't it's a hole different conversation and a lot more difficult)

Xcode archive error after successful build of app

Currently I'm using Ionic Framework and trying to build an iOS mobile App. In order do that I did the following steps:
To add the platform,
$ ionic cordova platform add android
2.To build the app
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
After it successfully generated .xcodeproject file, I imported the file into Xcode.
After importing the project, cleaned the project folder in xcode itself.
Then I added the Apple ID account to my Xcode.
After adding the account I'm trying to archive the project, in order to do that I checked the following URL's
Official Documentation to generate the IOS app
Stackoverflow answer to .ipa file.
In the Archiving process I'm getting the following error:
error: Your development team, does not support the Push Notifications capability. (in target 'folder')
I tried to rectify it in the following way:
DISABLE_PUSH_NOTIFICATIONS=1
in the preprocessor macros. Unfortunately it didn't solve my problem.
I don't have any Apple developer ID
How to solve this problem, in order to archive the project? Could any one help me in this regard?
I tried all the solutions which are available solutions but they didn't solve any answer. I am stuck since the past 2 days.
Are you using any plugins that require push notifications?
See ios push notification development on free apple account.
It is not possible to use push notifications without a paid Apple Developer ID.
If not,
Try removing and adding the ios platform again.

Installing iOS Facebook SDK without using CocoaPod

I'm following this official documentation to install FB SDK and trying to integrate it with my React Native project: https://developers.facebook.com/docs/ios/getting-started/ , so that I can show a Facebook share dialog in my app.
However, one of the steps requires to use CocoaPod to get the libraries. My React Native project doesn't work well with CocoaPod, I want to avoid it as much as possible. Is there a way to install the libraries manually without using CocoaPods?
Much appreciated if you can point me to some documentation or tutorials. Thanks!
You can download the entire iOS SDK (outside of Cocoapods) by going to bottom of this page:
https://developers.facebook.com/docs/ios/componentsdks
There also seems to be a Reactive Native-focused tutorial found here, where it looks like you can use npm install and react-native link.

How to generate ipa file without xcode from windows? if possible

I am trying to create ipa without mac and xcode. I have iphone to test app. I never used expo for development purpose. Is this possible with expo or any online resource which can generate this ipa for testing purpose only? Its a React native app
Yes it'll be possible with Expo.
You need to create a new project with create-react-native-app or exp init, then move your existing code over and execute exp build:ios, which will build the ipa on Expo's servers for you to download.
You will not be able to include any third party native libraries (i.e. libraries that aren't 100% Javascript, that you had to link with react-native link).
However, Expo provides an extensive list of native API for you to use.

Cordova iOS app

I'm trying to create a Cordova app for learning purposes to deploy to my iPhone 5 for personal testing.
For the life of me however I can't seem to understand what I have to do. I have Xcode installed as all the tutorials have mentioned. How do I create a provisioning profile (with a free developer account)? How do I sign my device?
Nothing I've found online seems to explain in clearly, or for beginners such as myself.
Also, is there a way to create all of this but not use Xcode as my IDE for developing my app?
You don't need to use XCode to develop your Cordova app, as the app is just CSS, JavaScript, and HTML. I like to use WebStorm, but you can use whatever suits you. However, in order to deploy your app to a device, you do need XCode. Here's a link to an answer for a similar question. This is in regards to XCode 7 and I'm not sure what version you have, or if this still holds for XCode 8.
You only deploy after you do a build for iOS with Cordova, by running $ cordova build. Here is a link to Cordova's docs.

Resources