React native cant build .ipa file - ios

When I run :
react-native run-ios
everything works as expected, react native app runs everything as it should (had some troubles, adding react-native camera but editing info.plist / following the manual instructions, managed to get it to work)
Currently my goal is to get the .ipa file into an iPhone and try it out, but, following How to build .ipa application for react-native-ios? accepted answer, results in the app getting stuck on the itunes instalation (it says its installing but does nothing)
Other solution is to build .ipa from xcode, so I openned the ios project in xcode, but whenever I try to run it (even run it to emulator) it returns
"linker command failed with exit code 1"
in the "***Tests" app...
In summary : Can build app to emulator using react-native run-ios, can't get .ipa to install currectly on physical device

Related

App is not installed using react native command

I have react native cli application and when I tried to run it on simulator using npx react-native run-ios command it builds app successfully, bundler gets started and it shows 100% complete of bundler process but on simulator app is not being installed.
Note: simulator opens automatically but app not installed. When I use Xcode to run app it is working fine
Can you please help me with this.
Video
Thanks
Finally I get it working by clearing all cash using DevCleaner(From app store) also deleted all core simulators and added few again. I specified name of simulator as well with command as npx react-native run-ios --simulator="iPhone 11"

IOS App Distribution deploy In House failed Installation because of manifest.plist

I just publish an in-house app on IOS through Xcode for any device.
In Xcode I go to Product/Archive/Distribute App --> I get a bunch of file and especially .ipa and manifest.plist .
It failed to install the App, the pop-up failed to install appear.
After some test, it was the manifest.plist, I change it and now it work.
My question is : How to see logs of why installation failed ? Or how to test it before ? When I use a provisionning profil for debug I can't detect these bug ...
I already have the IOS Console that print every log for the device, but I don't find the reason there.
Also sometime it doesn't try to install at all and just directly pop up the "Failed to install" sometime it appear at more thant 50% of installation.

Failed to run react native project on IOS Simulator

enter image description hereI'm new to react native, I'm following the official React native's website to init a new project, try to run IOS. But, failed with the error below.
React-Native version 0.59
XCode 10.2
error Failed to build iOS project. We ran "xcodebuild" command but it
exited with error code 65. To debug build logs further, consider
building your app with Xcode.app, by opening HelloWorld.xcodeproj
When I run react-native run-ios --simulator="iPhone 7"
Error as below:
info Command PhaseScriptExecution failed with a nonzero exit code
info
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening HelloWorld.xcodeproj
Starting the simulator : Once you have your React Native project initialized, you can run react-native run-ios inside the newly created project directory. If everything is set up correctly, you should see your new app running in the iOS Simulator shortly.
Specifying a device : You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone X". If you wish to run your app on an iPhone 4s, just run react-native run-ios --simulator="iPhone 4s".
The device names correspond to the list of devices available in Xcode. You can check your available devices by running xcrun simctllist devices from the console.
In my case, I was specifying a simulator, but I had a different simulator open. Targeting the one that was opened, or simply closing it fixed the issue.
try this and see if it works or not.
first go to to ios folder of the project in terminal.
for that you can use terminal in visual studio code.
cd ios then
pod install
go back (to app directory)
cd ..
npm install
npm start
take a new terminal then,
npx react-native run-ios

React Native app not running in XCode iOS simulator

I try to make my first steps using React Native. Development for Android (on Windows host) works. Now I wanted to test iOS, and tried to set up a development environment on a MacBook Pro.
Problem: React Native starts the iOS simulator, and then nothing happens any more. The simulator runs OK, but my React native app won't start.
What do I need to do to get my React Native installation going?
More Info:
I set up XCode and React Native according to the docs on the MacBook Pro running OSx 10.13.2 (High Sierra). XCode was installed and tested successfully, including the simulator.
When I installed Node.js I deliberately picked an older version (containing npm 4.2.0), since forums say that React Native does still have problems with npm 5. I also installed Homebrew and Watchman, like stated in the docs.
To initialize an empty project, I used
create-react-native-app HelloWorldProject
and a projet structure got created in my Documents folder.
If I finally fire up my "Hello World" test app using
cd HelloWorldProject
sudo react-native run-ios
the system responds:
Starting packager ...
Starting simulator ...
and then nothing happens. The simulator does indeed start (boot --> apple logo --> progress bar --> IOs start screen), but nothing happens afterwards.
Edit
I have given up on React Native for several reasons, I leave this question here for documentary purposes, but I cannot verify or accept any answer, I don't have a React Native development environment any more.
It's probably because you used sudo. /.expo/ is owned by root. Try to change the ownership with
sudo chown -R `whoami` ~/.expo
Refer https://github.com/react-community/create-react-native-app/issues/422
Even everything in your app seems fine, sometime you face the issue that the app is taking too much time to load either through terminal or Xcode. If there is no any other specific issue with your project, the following solution works most of the time:
Go to your app folder and then go to 'iOS' folder.
Delete 'Podfile.lock' and 'Pods' folder.
Execute the following command in Terminal from your 'ios' folder, that will bring back the 'Podfile.lock' and required Pods will be installed to 'Pods' folder:
pod install
Delete the 'build' folder in your 'iOS' folder.
Run the following command in terminal:
react-native run-ios
While the terminal is running, open '.xcworkspace' in your 'ios' folder in Xcode.
The above steps will make sure it will be build your react native project newly and will run on the simulator.
Thanks
Wasantha Wijayaratna

Build failed with error Error code 72 for command: xcrun

I am porting an phone app project into VS2017 and get the below error when I try to build for a Remote Device. This code has built correctly on VS2015 and runs fine in an Android simulator. Just get this error on and IOS remote device, which I need to run to create an .ipa file. I see a bunch of posts on an error 65, but none on error 72 that I can find. Can you help me on how to fix this? Thanks.
"
Severity Code
Description Project
File Line
Suppression State
Error Remote build error from the build server http://10.13.4.29:3000/cordova - Build failed with error Error code 72 for command: xcrun with args: -sdk,iphoneos,PackageApplication,-v,/Users/administrator/.taco_home/remote-builds/taco-remote/builds/8936/cordovaApp/platforms/ios/build/device/OnticMobile.app,-o,/Users/administrator/.taco_home/remote-builds/taco-remote/builds/8936/cordovaApp/platforms/ios/build/device
I fixed this by going back to XCode version 8.2.1
This happens if you use ionic build ios --device … it’s the device flag that needs the packageApplication, but which is not available in 8.3
I got around the problem without downgrading XCode, as follows:
Load your project into XCode 8.3 by clicking your .xcodeproj file (in
platforms/ios/build) and choose Product > Archive.
Select the archive in the next screen and click ‘Export’ button. Choose ‘Save for Ad Hoc
Deployment’ and you’ll get an .IPA file, just as if you had used ionic build ios --device.

Resources