How can I get the console logs from the iOS Simulator?
iOS Simulator > Menu Bar > Debug > Open System Log
Old ways:
iOS Simulator prints its logs directly to stdout, so you can see the logs mixed up with system logs.
Open the Terminal and type: tail -f /var/log/system.log
Then run the simulator.
EDIT:
This stopped working on Mavericks/Xcode 5. Now you can access the simulator logs in its own folder: ~/Library/Logs/iOS Simulator/
You can either use the Console.app to see this, or just do a tail (iOS 7.0.3 64 bits for example):
tail -f ~/Library/Logs/iOS\ Simulator/7.0.3-64/system.log
EDIT 2:
They are now located in ~/Library/Logs/CoreSimulator/
tail -f ~/Library/Logs/CoreSimulator/
Viewing Console.log in ios simulator
You can watch the console.log with a safari-browser. Open the ios-simulator or connect the ipad by usb. Open safari and take a look in the menu "developer". Choose your web-site and the web-inspector will open.
more info here:
https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/DebuggingSafarioniPhoneContent/DebuggingSafarioniPhoneContent.html
How to show simulator logs? in IOS 12.0 & Xcode 10?
I have found solution for this issue, Open system console log on MAC
⌘ + space and type "console" -> press "Enter" to open system console log then select your simulator
You can see only log which is log using
NSLog("MyLog")
But, You can not see log which is write with print("MyLog")
How to see logs when running app in iOS simulator directly?
Depending on the runtime version, you can use one of:
xcrun simctl spawn booted syslog -w
xcrun simctl spawn booted log stream
tail -F "$(xcrun simctl getenv booted SIMULATOR_LOG_ROOT)/system.log"
If you're on macOS Sierra, you can also select the simulated device from within Console.app to see the logs.
Related Topics
How to Implement a Pop-Up Dialog Box in iOS
Core Data Background Context Best Practice
How to Create a Uiview Bounce Animation
How to Use Uiscrollview in Storyboard
How to Create IPA in Xcode 6 Without Apple Developer Account
How to Convert a String to an Md5 Hash in iOS Using Swift
Rsa Implementations in Objective C
iOS 5 Twitter Framework: Tweeting Without User Input and Confirmation (Modal View Controller)
How to Run an Action When a State Changes
Why Is Main Window of Type Double Optional
Wkwebview Does Load Resources from Local Document Folder
Enable Copy and Paste on Uitextfield Without Making It Editable
Store [String] in Nsuserdefaults
Unable to Get the Access Token Through [Fbsdkaccesstoken Currentaccesstoken] in iPhone Sdk