react-native app is crashing on launch screen - ios

When I'm testing my app on develop mode, everything is ok, but when I'm sending a test flight version of app to the app store my app is crashing at Launch Screen and I have to open the app from recent list or open multiple times until the app is running.
I really don't know what is my problem and how can I fix that.

I'm using react-native-navigation for my app.
After hours I found my problem.
In my AppDelgate.m I forgot to remove some line of codes depending on this source
.
So after updating the AppDelegate.m file and creating a new bundle, Everything is ok.

Related

Why my app immediately quit after open in iOS simulator?

I installed Xcode(9.4.1) from App Store and create a iphone simulator.
After that I tried to install some .ipa(https://github.com/OWASP/owasp-mstg/tree/master/Crackmes/iOS) app to it but it immediately quit when I opened it.
I tried couple app but the error is the same But when I wrote sample app on Xcode and build to my simulator it run very well.
Even if I try another iphone simulator or reinstall Xcode, I still get same error.
you need to find where is the error located in your application ,
here is a link reference explaining about how to find the cause error
also it will explain the most common mistakes in xbasic
click here

App gets hang when opened from app store

I have an app live on appstore. When I install the app in any device & open it by tapping on appIcon. It works perfectly, But when i open the app from appStore by tapping on Open button. App is launched but gets stuck on launch screen.
Launch screen does not go away & because of that I am unable to use the app. The issue is same in iOS-10 and iOS-11.
Here are possible solutions you can try out to resolve your issue :
First try to test your app in debug environment by adding exception break points & see if it generates any exception or not
Second thing is use crashlytics tool in your app so if any such issue occur when your app crashes or stuck due to exception than it
will automatically submit report to you. Its very effective tool.
Enable exception break points like this :
Edit:
If you still unable to get resolve the issue by above solutions than do 1 thing. From didFinishLunaching method comment all SDK
initialisations or any thing that you think could causing the issue
Now make a distribution build & upload to app store & do beta testing test flight
Once its make sure it works fine than you should uncomment 1 by 1 statements & get reach to the statement that causing the issue
Hope it will help you.

App stopped working after publishing to app store in adhoc for testing

My published app stopped working after xcode upgrade. My Xcode version is now 9.0.1. Publishing goes well except an error in the last stop of upload "Missing app store icon. ios apps must include a 1024x1024px app store icon in png format."
but the app quits without throwing any errors on the device. The interesting thing is that it works ok when I attach the device to my mac and runs the application. Doesn't show any errors. Please let me know how can I troubleshoot this issue?
its simple just add an icon of size 1024x1024 to your app icons folder or xcassets file whatever way you have chosen for your icons
Finally I was able to publish the app correctly. It was a mistake in renaming the app. I created a new cordova project with the new name and copied the existing code to the www directory. Now everything works ok.

app iOS accepted by Apple, crashes at launching, but works after plugging iPhone to the Mac/Xcode

UPDATE 2 :
We have at last a crash log : https://www.dropbox.com/s/62sq0ybyr4mhkkh/Screenshot%202015-09-02%2012.26.54.png?dl=0
It seems that a library is not loaded...
UPDATE 1:
Here's what we have :
- no crash log on Xcode with a device where the app crashes at launch
- We didn't run the app via Xcode, we downloaded it via Diawi
- We plugged the iPhone on the Mac, we didn't run the app via Xcode, we just looked at the crash log (nothing to see). After we unplugged the iPhone from the Mac, the app launches perfetecly ! Besides, when we uninstall the app and install it again via Diawi, it launches perfectly again !
- So the simple fact that we plugged the iPhone to the Mac makes the app work.
Any idea ?
Below the first message
I have a serious issue with my iOS app, here's what we know :
The app has been approved on App Store
But if we download it via App Store promo codes (it's like a private beta), it crashes at launch, mostly on iOS 8.3 or below.
We had the same issue by adding UDIDs and sending the app via Diawi before the submission
We have already an app on the store (let's call it v1) and we have submitted a new version (v2) which has been a new project on Xcode.
The crash happens with people who had already the app v1 as well as people who hadn't
The crash remains even if you uninstall the v1 and install v2
We put crashlytics : impossible to get any crash report, it crashes before the init, although we can see the launch page with the logo. We tried to put a delay of 10 seconds to let crashlytics initialize, but it doesn't last untill the 10 sec
Weirdest thing : when we plug the device on Xcode to see what happens, then it works ! Impossible to see the crash again. Then, even if you uninstall and repeat the process by installing via Diawi, it will work ! As soon as you plug the iPhone on Xcode, it will always work...
Some people told us that it crashes and it works the day after.
What we did :
We updated the Pods
We changed the certificates and provisionning profiles and made it clean
We had some issues due to the Parse SDK, but we fixed it
The target is iOS 7.1
Here are the pods that we have (screenshot):
https://drive.google.com/file/d/0BzHfUya4Va4rb2dQSVJYazN1MFBxcG1DQnpBNXAybU9SVzk4/view?usp=sharing
Has someone seen already such an issue ? The weirdest thing is that Apple hasn't rejected it.
Thank you for your help !
So I had exactly the same problem today with my app Macro Defense: https://itunes.apple.com/us/app/macro-defense/id955086416?ls=1&mt=8
I found that by turning wi-fi off on the device, the app runs perfectly. If this is also the case with you, then my guess is that the problem lies in trying to perform some network functions in the appDelegate.
Have contacted apple support, and will repost if I get a definitive answer to this.
Cheers!

App crash when launching from Xcode if app already installed on device through Testflight

I'm building an iOS app for which I have Testflight set up, but now I'm running into an interesting issue where I can't properly launch the app from Xcode anymore since I registered my device to test the app through Testflight.
When I try to launch the app from Xcode, it will build fine and even launch it on my phone. However, there will be no output in the console, and a few seconds later the app will crash on my phone and I get the following error message popup in Xcode:
process launch failed: failed to get the task for process 484
If I delete the app from my phone before trying to launch from Xcode, the same thing will happen and the Testflight orange dot will still show up next to the app name on the home screen.
I have tried to change the app's version and build number, but that had no effect. I have not yet tried to unregister my device to test the app through Testflight because I would like to find a good way that facilitates both.
One way I have found to circumvent this problem is create a different app target and run the app with that which seems to work -- but I'm wondering if there is an actual solution to this problem or a better way to work around it.
Thanks in advance.
Turns out Max was on the right track - if I manually specify a non-distribution provisioning profile it will work properly by overriding the Testflight version of the app (the orange dot disappears). Not sure why "automatic" wasn't doing that for me. Thank you!

Resources