I have an app which works in the browswer; now I want to deploy it as app for ios so I added the ios platform, the plugins (device and console) as shown in the tutorial. However no output from console.log is shown in the xcode debug area…any hint?
But now when I launched: “sudo ionic build iOS” I got the following error:
The following build commands failed:
CompileC build/front.build/Debug-iphonesimulator/front.build/Objects-normal/i386/CDVLogger.o front/Plugins/org.apache.cordova.console/CDVLogger.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error: /Users/syo/WebstormProjects/fives_front/platforms/ios/cordova/build: Command failed with exit code 65
You may not have the required environment or OS to build this project
===========
Error is because the folder a folder and file are missing:
lang: error: no such file or directory: '/Users/syo/WebstormProjects/fives_front/platforms/ios/front/Plugins/org.apache.cordova.console/CDVLogger.m'
Make sure sudo has write permissions to the folder (sometimes they get turned off for whatever reason)
REMOVE the plugin, then re-add it.
If that still doesn’t work then you’ve maybe accidentally or purposely corrupted the Xcode projects so you’ll want to remove the iOS platform, then add it back.
You just save my mac! I was going to throw it down the window because I was unable to test notifications without checking the console. Now it is working!
I use it on IOS 10, Xcode 8 and my logs show up just fine (they don’t without it, which is what the plugin is for)
cordova-plugin-console 1.0.3 “Console”
I know this is basic but it might be worth checking if you have the Xcode debug window enabled/displayed? Also are you building a debug build or a release build? I think in release builds console logs are stripped via scripts in the hooks folder (not sure about this)
The strange thing is that when I change the output type from “All Output” to “Debugger Output” in the log window’s bottom combo-box, the logs get empty.