I don't know whats going with my project but every time i try to run this .xworkspace file, it gets stuck at the default splash screen of react native. Please refer to the error below
You might have to check your xcode console and enable debug mode for more information.
Related
I'm using a ask for iOS application which is written in react native but I don't have good knowledge of react native.
I just want to know that is there any way to permanently disable the error view shows in react native app
enter link description here
Like we can disable the warning by this line..
console.disableYellowBox = true;
If there is any way to disable the error view please help me..
In assemble release or prod release there wont be any error shown like the one you just posted. But in debug or dev environment it's always recommended to actually be shown the errors so to prevent the app from crashing in production. And those error screen actually helps to identify where the code went wrong. But as you have already done disableYellow box to true which mutes the warnings in the app but not the errors since in dev errors are important to correct the code.
I'm using react native in my ios project. I can see all the logs from react native side in chrome console, and some auto generated logs in xcode.
I recently ran into a problem while using Firebase dynamic links in my app. There is a native module LinkManager which basically handles all the dynamic links to the app and sends the parsed url or the deeplink to my app.
But this is not working and I understood that the problem is inside the native module that handles it.
But when I try to give NSLogs, no output appears in the xcode console, nor in the simulator console(cmd + /). I'm wondering how can I debug the native code inside xcode.
You need to open your project in xCode and run it in any simulator. Then you can either add breakpoints on the desired line of code or use NSLogs to degug it or if it is crashing at a particular point, you can add a exception breakpoint in project.
If you want to see logs from native code in XCode debug together with your console.log from JS code, you can do it like this:
#import <React/RCTLog.h>
RCTLog(#"Hello world");
guys I've been struggling with the following issue for couple of days and hope that somebody could help me.
I want to get my app logs from running iOS device. If I run the app from the Xcode, then I see my logs in debug view as expected.
However, when I download a build from my testflight app I'm not able to access the logs anymore. Google suggest that I use Xcode -> Devices -> Log of a device, but there are only system events log and no messages from my app.
Running Unity 5.5.2.p2, Xcode 8.2.1. with ios 10 and 9 tested.
Would appreciate any help, because this issue is really exhausting.
After a bit more searching I found out that it's not possible, unfortunately. But I've managed to make a solution, hope it helps somebody.
Apple's native NSLog prints all the logs to a console app even after the app was downloaded from TestFlight.
I made a simple iOS plugin wich catches all the debug logs and forwards them to a NSLog. Make sure you call
LogManager.Init()
somewhere on app start.
Hope this will help somebody. The plugin is here
https://drive.google.com/open?id=0B7Yn93mXrM82ODZlbDVTNmo0QlU
Archiving for TestFlight means Build Configuration is release.
SO you won't be able to see the dubug log on testflight build.
Follow this link to make a debuggable TestFlight build.
Or simply add DEBUG=1 on Release section under Preprocessor Macros
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.
I have read some articles like app freeze with BKSendHIDEvent error:
iOS 9 App freeze with console log "BKSendHIDEvent", but my problem is slightly different from this one. Since I use ionic to build the ios app, I don't know how to trouble shoot the detailed error in xCode.
My problem is that when the app first runs within the xcode, everything works fine, but if I stop the debug and reopen the app from the simulator, no button responses at all. The whole app stucks at this stage.
I checked the simulator system log, it shows this:
BTW, when I kill the app(flick up the app) while it is still debugging, the xcode says this, I don't know if this was the issue:
I have also tried to get further information from the web inspector, but this does not response either. I could not reload the page by
window.location.reload();
There are no window object at all...:
So I'm totally lost here. I don't know how to further trouble shoot this error. Can anyone please point me to a correct direction? I have no idea why the web inspector shows nothing here and how to get the detailed error info in xCode.
Thanks in advance!
After several search, here is the fix:
App Freeze
But I still do not know how to trouble shoot, in the issues above, they mentioned race condition, how to debug this?