How can I run React Native code in real iPhone, if I can not login Apple develop account? - xcode

I am a fresher in React native development
and I have a stupid question
How can I install app into real iphone
If I can not login to Apple develop account, but i can ask project owner to download and send me some file in bellow photo (certificate, profile, key,...)
Thanks, thanks

Attempt to build and run using Expo instead of native method.
Start application:
expo start
Document
From real Iphone, install Expo Go application and use it to run your build.

I recommend using Expo. Here is a good walkthrough that will help you a lot. In addition, you should also have the idea about the 2 Expo Project Workflows.
With Expo, sharing prototypes, for example, will be easier.

Related

Is fastlane capable of publishing to Mac App Store

We're trying to automate the release of our app to the Mac App Store. I've been trying to achieve this using fastlane. I managed to get this tool working for submitting the apps' metadata (release notes, screenshots etc).
I can also build the app using the gym module, however this results in a .app and not in a .pkg that is needed for submission to the App Store. Even when I use
export_method: "package"
I cannot imagine I'm the only one trying to achieve this, but I cannot find an answer if it is possible at all. And if possible, how to achieve this.
I have a (old) work in progress PR made for this - https://github.com/fastlane/fastlane/pull/12195. Majority of our users are mobile so it has been hard for me to get testing on this :). If you'd like to comment on that PR I would be happy to revive it and work with you on making this work for you!

How can I install apps with uiautomator?

My app to test depends on Facebook. On such devices which does not have Facebook installed, I needs to install Facebook first.
The first way I have tried is to install it from an APK file. However, I cannot find any APIs to achieve this from uiautomator developer docs. I guess this is determined by the design of uiautomator.
The second way I have tried is to install it from Google Play store. However, on the devices which has no Google account signed in, I need to sign in Google account first. I tried to sign in using uiautomator but unfortunately the sign-in page is NAF (not accessibility friendly).
Does anyone know if there is any other ways? Thanks in advance.
AndroidViewClient/culebra is a pure python tool that automates or simplifies test script creation. The scripts use UiAutomator as a backend.
Culebra GUI can generate tests that include the installation of an APK as a precondition.
culebra --install-apk=file.apk --unit-test-class --gui
EDIT
culebra only generates python, so if you want to generate Java or Kotlin you may need CulebraTester.
However, due to the limited connectivity and capabilities when you run those tests in Firebase Test Lab it might be challenging to find a way of installing dependencies.

Is it possible to keep an a custom Google Actions app (Built into Google Assistant SDK) active all the time?

I am building a Google Assistant application but would like to restrict the app from ever exiting. Meaning I just want the experience to be my app. This isn't a public facing app, its personal and on a custom device, like a Raspberry Pi.
As far as I know there's no official way to do it that way but there is a trick you can use using the gActions CLI by running:
$ gactions preview --action_package mypackage.json --preview_mins 420
I'm not sure how far you can push the preview time though. You can find more details here

Continuous Integration with React Native

I am new to iOS, Can someone please tell me how can I set up CI for react native? I currently use codeship but I don't think they offer anything for iOS. Any suggestion on any hosted CI tool which supports bitbucket? Thanks
I'm using buddybuild for my React Native apps. It's going awesome so far. I felt bitrise a little bit complicated and I got some problems during my builds, Buddybuild is totally transparent. It helps me not only with Continuous integration, but also with:
Checking for Xcode compatibilities: with each new version and beta of Xcode, buddybuild will take the most recent successful build of your app, run it against the newest version of Xcode and email you the results of any potential breaking changes.
First Class Test Support: Run tests UI and Unit tests on simulator, emulator and physical devices.
Static Code Analysis
Code Coverage: know exactly how much of your code base is being exercised during testing.
Instant Deployments: Organize your testers into groups to configure which builds they get, and how often they should receive new versions of your app.
Publish to the Play Store and App Store: Automatically deploy your app to the Play Store or App Store!
And also the Continuous Integration will build both the Android and iOS versions of your app. Simply onboard the app twice and select iOS then Android to have both versions built.
I have a React Native Starter App for both Android & iOS that uses Bitrise.io and they support BitBucket. The tests are run with Jest and have over 86% coverage. There's a video series detailing the CI process. Swapping out Github for Bitbucket is trivial, during the registration process you'll be prompted for a vendor (Github/Bitbucket). After that everything should be the same. Note: I am the developer.
You can use circleci which has good integration with other tools like Fastlane, Here how you set up another And greate Talk by talk by Joe Stanton # React Meetup London one more greate article by Ramesh Nair

iOS remote provisioning?

Right now, the only way I can test my app on a device is to physically plug it into my laptop, and build/deploy from xcode directly to it. Is there any way I can do this remotely without physically plugging the device into my mac?
To second what Moshe and Clay said, you can use a number of services that provide over-the-air distribution.
TestFlight is a fully-featured service that provides team and beta campaign management in addition to over-the-air distribution. It is a hosted service so there is no setup.
Hockey is similar in its execution and does a great job as well. I haven't used Hockey, so I can't speak to it's full feature set.
Full disclosure, I am one of the mobile devs on TestFlight.
You cannot install an app without physically connecting it to your mac until it is under development phase.Second way is to create a build and then install that build in your iPhone through iTunes,so Xcode is not required.But this is generally used to show intermediate builds to Client.So you will have to continue following the same process my friend...
This is a good question and the unfortunate answer is that this is really not possible. You can try Ad Hoc builds as an alternative or a service called TestFlight.
An alternative to TestFlight is Hockey, but it's more work. I use TestFlight, and I like it. A friend uses Hockey with good results.

Resources