Cordova app console.log not showing in the xcode

Hi guys,
I just trying to run my cordova angular mobile app in ios platform.The app is successfully launched, but i have put some text in console.log in the controller of the landing page. But this log is not showing anywhere in the xcode console logs even i have checked in the system log.The system log shows some build logs but not showing the logs which have put in the controller for testing.The system logs shows like …

Jun 21 09:47:15 Vishnus-iMac Quickanet[806]: BuildInfo displayName : "Quickanet"
Jun 21 09:47:15 Vishnus-iMac Quickanet[806]: BuildInfo name : "Quickanet"
Jun 21 09:47:15 Vishnus-iMac Quickanet[806]: BuildInfo version : "0.0.1"
Jun 21 09:47:15 Vishnus-iMac Quickanet[806]: BuildInfo versionCode : "0.0.1"
Jun 21 09:47:15 Vishnus-iMac Quickanet[806]: BuildInfo debug : YES
Jun 21 09:47:15 Vishnus-iMac Quickanet[806]: BuildInfo buildType : ""
Jun 21 09:47:15 Vishnus-iMac Quickanet[806]: BuildInfo flavor : ""
Jun 21 09:47:24 Vishnus-iMac CoreSimulatorBridge[737]: Pasteboard change listener callback port <NSMachPort: 0x7f8b49c18720> registered
Jun 21 09:47:25 Vishnus-iMac nanotimekitcompaniond[785]: *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
Jun 21 09:47:25 Vishnus-iMac nanotimekitcompaniond[785]: [snapshot] Error decoding face snapshot contexts: Dictionary validation failed: putative dictionary is a (null)
Jun 21 09:47:25 Vishnus-iMac nanotimekitcompaniond[785]: *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
Jun 21 09:47:35 Vishnus-iMac mstreamd[722]: (Note ) PS: Media stream daemon stopping.
Jun 21 09:47:35 Vishnus-iMac mstreamd[722]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7fc7afc0b830>: Shared Streams daemon has shut down.
Jun 21 09:47:35 Vishnus-iMac mstreamd[722]: (Warn ) mstreamd: mstreamd shutting down.
Jun 21 09:48:01 Vishnus-iMac com.apple.CallKit.CallDirectoryMaintenance[795]: [Default] Unable to initialize CXCallDirectoryStore for reading and writing: Error Domain=NSCocoaErrorDomain Code=513 “You don’t have permission to save the file “CallDirectory” in the folder “Library”.” UserInfo={NSFilePath=/var/mobile/Library/CallDirectory, NSUnderlyingError=0x7fc546e03100 {Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”}}
Jun 21 09:48:01 Vishnus-iMac callservicesd[769]: [Default] Error synchronizing call directory extensions: Error Domain=com.apple.CallKit.error.calldirectorymanager Code=0 “(null)”

Please have a look the error “You don’t have permission to save the file “CallDirectory” in the folder “Library”.” UserInfo={NSFilePath=/var/mobile/Library/CallDirectory, NSUnderlyingError=0x7fc546e03100 {Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied” . Please please provide a solution for this problem.Its very urgent to carry out the work.

note: I’m using xcode Version 8.3.3 and checked both in the simulator and ios device.

Console logs appear in the console. You have to use remote debugging to see those. Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios

1 Like

Hi…I have already tried this, but the web inspector window looks like empty

Can you inspect the elements of the HTML that was loaded in the app?
Is this actually an Ionic project?

Its worked.Thanks a lot

Great. What was the problem?

we have put the console.log with in an event.ie, we put the log into a timeout function.Now its worked.