react-native log-ios doesn't work with xcode 9.1
I get this error:
Scanning folders for symlinks in /Users/Tom/App/node_modules (18ms)
NOTE: Most system logs have moved to a new logging system. See log(1) for more information.
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.imfoundation.IMRemoteURLConnectionAgent) <Warning>: Unknown key for Boolean: EnableTransactions
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.imfoundation.IMRemoteURLConnectionAgent) <Warning>: Unknown key for integer: _DirtyJetsamMemoryLimit
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.imfoundation.IMRemoteURLConnectionAgent) <Warning>: Unknown key for Boolean: EnablePressuredExit
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.AssetCacheLocatorService) <Warning>: Unknown key for Boolean: EnableTransactions
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.AssetCacheLocatorService) <Warning>: Unknown key for Boolean: EnablePressuredExit
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.StreamingUnzipService) <Warning>: Unknown key for Boolean: EnableTransactions
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.StreamingUnzipService) <Warning>: Unknown key for Boolean: EnablePressuredExit
Nov 8 08:30:08 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.videosubscriptionsd[2968]) <Warning>: Service exited with abnormal code: 1
Nov 8 08:30:08 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.WebBookmarks.webbookmarksd[2936]) <Warning>: Could not find and/or execute program specified by service: 2: No such file or directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/webbookmarksd
Nov 8 08:30:08 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.WebBookmarks.webbookmarksd[2936]) <Notice>: Service setup event to handle failure and will not launch until it fires.
Nov 8 08:30:17 MacBook-Pro profiled[2920] <Error>: objc[2920]: Class SFUserNotification is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Sharing.framework/Sharing (0x10d4f2700) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SafariServices.framework/SafariServices (0x12854f358). One of the two will be used. Which one is undefined.
Nov 8 08:30:22 MacBook-Pro budd[2809] <Error>: objc[2809]: Class BYBuddyDaemonCloudSyncClient is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SetupAssistant.framework/SetupAssistant (0x109356930) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SetupAssistant.framework/budd (0x108e1e1f8). One of the two will be used. Which one is undefined.
Has anyone been able to find a workaround for this?
Environment:
OS: macOS High Sierra 10.13.1
Node: 7.9.0
Yarn: 0.27.5
npm: 4.2.0
Watchman: 4.7.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.0.0 => 16.0.0
react-native: ^0.50.0-rc.1 => 0.50.0-rc.1
Related
This was working just Friday. No change in code. (Other than doing a time machine backup in Mac).
But since today react-native run-ios just does not seem to be working. The simulator comes up, but then the usual loading http://localhost:8081 does not show up any more. No errors or any indication on why this is failing. The simulator shows my App in home screen. Double clicking it just brings up and the app seems to crash immediately.
But react-native run-android works fine.
Am not sure where to even begin debugging this. (Am new to whole app development).
A few observations,
when I run npm start and then run react-native run-ios, it
usually "detects" that packager is running and skips launchPackager command, but today its not the case, the launchPackager opens regardless of whether a package is already running (Happens both with run-android and run-ios
There is usually below lines once the app begins loading. But today they only show up when I run react-native run-android
8:43:46 PM] find dependencies
transformed 728/728 (100%)
[8:43:46 PM] find dependencies (553ms)
[8:43:46 PM] request:/index.android.bundle?platform=android&dev=true&hot=false&minify=false (661ms)
And when I run react-native logs-ios, I get the below errors
Sep 12 20:53:15 sseshac-in-la com.apple.CoreSimulator.SimDevice.ADE00521-C04E-4EC5-8BE2-FE729523A0B9.launchd_sim[3812] (UIKitApplication:org.reactjs.native.example.X[0x3f02][4589]) <Notice>: Service exited due to signal: Abort trap: 6
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>:
Sep 12 20:53:15 sseshac-in-la SpringBoard[3828] <Warning>: Application 'UIKitApplication:org.reactjs.native.example.X[0x3f02]' crashed.
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>:
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Warning>: notify_suspend_pid() failed with error 7
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>:
Sep 12 20:53:15 sseshac-in-la SpringBoard[3828] <Warning>: Reply Error: Connection interrupted
Sep 12 20:58:36 sseshac-in-la routined[3817] <Error>: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
UPDATE:
I think the root cause seems to below error
<Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bundleURL must be non-nil when not implementing loadSourceForBridge'
Note that I am using React native 0.32. I understood that now it "detects" rather than hardcoding the bundleUrl. If someone can throw light on where this "detection" is, will be helpful
Problem turned out to be I was missing an entry in /etc/hosts
127.0.0.1 localhost
I still don't have any clue why it would work before. But that solved it
Probably you have problem with the packager make sure your modules all built you can check by opening
http://localhost:8081/index.ios.bundle?platform=ios&dev=true
in the browser after the build you will get the error
I have been stuck with this weird problem for a while now. The Ad-hoc IPA is stuck with 'installing' message forever in ipod touch 5th gen.
Here is the console output at the time of installation :
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Notice>: 0x387000 handle_install_for_ls: Install of "/var/mobile/Media/PublicStaging/Test.ipa" reTested by atc
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [VoiceMemosSyncClient][Orphan-Recovery] (post-sync, no new synced assets) checking for orphaned recordings.
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Notice>: 0x387000 MobileInstallationInstall_Server: Installing app co.Testapp.Test
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Error>: profile not valid: 0xe8008012
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Error>: 0x387000 install_embedded_profile: Could not install embedded profile: 0xe8008012
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [VoiceMemosSyncClient][Orphan-Recovery] (post-sync, no new synced assets) done.
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [ML3MusicLibrary] compacting artwork
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [ML3MusicLibrary] removing 0 artwork cache ids no longer used
Jul 17 18:13:38 Sreejiths-iPod mobile_assertion_agent[121] <Notice>: service_one_connection: Connection closed for client iTunes.
Jul 17 18:13:38 Sreejiths-iPod medialibraryd[220] <Warning>: {MediaLibrary} [MLWriter] ending transaction <__NSConcreteUUID 0x16d692f0> 209F4AA6-959D-4FA9-BDA2-E39C052E40EB. shouldCommit=0.
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.aAeAYo/foo_extracted/Payload/Test.app/Test: 0xe8008015
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.aAeAYo/foo_extracted/Payload/Test.app
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Error>: 0x1c0a000 MobileInstallationInstallForLaunchServices: failed with -1
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 install_application: Could not preflight application install
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jul 17 18:13:39 Sreejiths-iPod lsd[130] <Warning>: LaunchServices: installation failed for app co.Testapp.Test
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Warning>: LaunchServices: installPhaseFinishedForProgress: co.Testapp.Test.Installing - <NSProgress: phase=Installing; state=Failed; fractionCompleted=0.000000> called, removing progress from cache
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Warning>: {MediaLibrary} Database validation succeeded
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 handle_install_for_ls: API failed
Jul 17 18:13:39 Sreejiths-iPod medialibraryd[220] <Warning>: {MediaLibrary} [MLWriter] ending transaction <__NSConcreteUUID 0x16e833d0> 57B6C644-ED9D-4394-B2FF-B98B77107134. shouldCommit=0.
Is it related to Provisioning Profiles? I followed Somewhat-same-issue this post and checked the file as suggested but its still the same.
Has anyone else been facing this issue?
Any help will be much appreciated. Thanks.
So the problem was with the Device Profile.
I forgot to add my iPod Touch in the Device list.
Member Center > Certificates > Devices > Add new device . Voila. Everything started working.
Team,
Once I upgraded my application to iOS 7.0 with Xcode 5, I see intermittent crashes in the application. if I compile with xCode 4.2 and I don't see any intermittent crashes on iOS7 device.
I hope the below crashes are memory related, because it occurs at different places in the application.
Please find logs
Apr 1 14:07:57 My-AD-Username ADTCommercial[185] <Notice>: [AMPMessageDispatcherThread handleMessage:] message {jlodigkeit-41-1396382877074} received on Outbound-msg-dispatcher for processing, MIM: 29, MID: 0
Apr 1 14:07:57 My-AD-Username ReportCrash[192] <Notice>: ReportCrash acting against PID 185
Apr 1 14:07:57 My-AD-Username ReportCrash[192] <Notice>: Formulating crash report for process ADTCommercial[185]
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: 21 +523.616314 sec [00b8/060b]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'failed to get the task for process 185'
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: error: failed to launch process /Developer/usr/bin/debugserver: failed to get the task for process 185
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: 22 +0.002490 sec [00b8/1207]: error: ::read ( -1, 0x3469ec, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: Exiting.
Apr 1 14:07:57 My-AD-Username com.apple.launchd[1] (UIKitApplication:com.adt.commercial.mobility.dev[0xdd96][185]) <Warning>: (UIKitApplication:com.adt.commercial.mobility.dev[0xdd96]) Job appears to have crashed: Segmentation fault: 11
Apr 1 14:07:57 My-AD-Username backboardd[28] <Warning>: Application 'UIKitApplication:com.adt.commercial.mobility.dev[0xdd96]' exited abnormally with signal 11: Segmentation fault: 11
Apr 1 14:09:26 My-AD-Username ADTCommercial[194] <Notice>: [ADT_JobDetailsScreenServiceHistoryScreen loadData:create:preload:] called
Apr 1 14:09:26 My-AD-Username ADTCommercial[194] <Notice>: [AMPScreenManager viewWillPop:] popped ADT_ServiceHistoryDetailsScreen from history
Apr 1 14:09:27 My-AD-Username ADTCommercial[194] <Notice>: # -[JobDetailsScreen(Custom) refreshAction] #....
Apr 1 14:09:27 My-AD-Username ReportCrash[196] <Notice>: ReportCrash acting against PID 194
Apr 1 14:09:27 My-AD-Username ReportCrash[196] <Notice>: Formulating crash report for process ADTCommercial[194]
Apr 1 14:09:27 My-AD-Username com.apple.launchd[1] (UIKitApplication:com.adt.commercial.mobility.dev[0xd929][194]) <Warning>: (UIKitApplication:com.adt.commercial.mobility.dev[0xd929]) Job appears to have crashed: Segmentation fault: 11
Apr 1 14:09:27 My-AD-Username backboardd[28] <Warning>: Application 'UIKitApplication:com.adt.commercial.mobility.dev[0xd929]' exited abnormally with signal 11: Segmentation fault: 11
I believe, its memory related crashes. Any idea why?
Thanks,
Ramesh
my app is working fine on simulator but when i am running on device its getting crash and showing these reports
Aug 11 15:02:04 unknown MobileMail[20218] : Received memory warning.
Aug 11 15:02:04 unknown UserEventAgent[12] : jetsam: kernel termination snapshot being created
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilephone[0xc8a9]) Exited: Killed: 9
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilemail[0x828b]) Exited: Killed: 9
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.christopher.pacificamodeling[0x8500]) Exited: Killed: 9
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.skype.skype[0xd976]) Exited: Killed: 9
Aug 11 15:02:05 unknown SpringBoard[16688] : Application 'Mail' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:05 unknown SpringBoard[16688] : Application 'PacifiCA' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:06 unknown SpringBoard[16688] : Application 'Skype' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:06 unknown SpringBoard[16688] : Application 'Phone' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:06 unknown DTPower[15342] : Task info failed for task com.christopher.pacificamodeling
Aug 11 15:02:06 unknown kernel[0] : launchd[20223] Builtin profile: MobileMail (sandbox)
Aug 11 15:02:06 unknown kernel[0] : launchd[20224] Builtin profile: container (sandbox)
Aug 11 15:02:06 unknown kernel[0] : launchd[20224] Container: /private/var/mobile/Applications/6BBDF6EB-1DB0-4CAB-8300-DC6CBA78C1AB [69] (sandbox)
First thing is to run the profiler from xcode menu as shown below:
then use the one highlighted below:
Finally you will see the blocks that is allocated the most expand any of them to see who is allocating it frequently. Go to that part and optimize it to avoid allocate/deallocate every time.
XCode4 just crash on me when I was testing my app without saying why. I put the crash log I found on the device below. The app runs fine in the simulation so I am thinking it's the memory problem? I check for leaks but there is nothing serious to it, also there is not memory warning call.
The log said "Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-06-01-154632.plist" but I can't find it anywhere on my mac.
Please help,
Pondd
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:3795 (24506):0
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:920 (24506):3
Jun 1 15:46:31 unknown com.apple.debugserver-50[412] <Warning>: 1 [019c/1503]: error: ::read ( 4, 0x2ff8a9f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:3794 (24506):3
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:3202 (24506):10
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Working around 5020256. Assuming the job crashed.
Jun 1 15:46:31 unknown SpringBoard[28] <Warning>: Unable to delete job with label UIKitApplication:com.mondial.dva[0xd591]. Error: No such process
Jun 1 15:46:32 unknown ReportCrash[418] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-06-01-154632.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Jun 1 15:46:32 unknown configd[25] <Notice>: jetsam: kernel termination snapshot being created
Jun 1 15:46:32 unknown SCHelper[148] <Notice>: active (but IDLE) sessions
Jun 1 15:46:37 unknown SpringBoard[28] <Notice>: MultitouchHID(1cd11840) uilock state: 0 -> 1
Jun 1 15:46:41 unknown ReportCrash[420] <Notice>: Not saving Jetsam log because no data from the kernel.
Jun 1 15:46:41 unknown configd[25] <Notice>: jetsam: kernel termination snapshot being created
Jun 1 15:46:51 unknown ReportCrash[421] <Notice>: Not saving Jetsam log because no data from the kernel.
I found my LowMemory generated files through the organizer -> devices -> the device you are running on -> console -> right click on any of the logs on the left and select "Reveal in Finder"