Xcode console.log not working


Console.log is not working in xcode.
The weird thing is it worked my previous project with ionic.
At that time, I did not download any console log plugin from cordova. ( So I thought it’s built-in function )

Anyway it’s not working now, so I would search on google and ionic community.

I tried

  1. sudo cordova plugin add org.apache.cordova.console
  2. sudo ionic plugin add org.apache.cordova.console
  3. This youtube video [ https://www.youtube.com/watch?v=xZGZHuNXdNE ]
  4. Finally this way
    sudo chown -R [user] /usr/local/lib/node_modules/cordova
    sudo chown [user] *
    sudo chmod -R 777 *

None of them working for me.

I created test project and put console.log, not working either.

Here is my ionic info
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v4.2.2
Xcode version: Xcode 7.2 Build version 7C68

Where should I check?

Maybe is too old the question, but this worked for me

Thanks @hlopezvg !! Currently I am using Xcode 7.3 and everything is fine so far.

@Taehwa I’m glad it worked.

facing same issue… any solution??