You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
print statement doesnt work in ios native plugin #28856
I am writting the native plugin code for ios, but the print statement doesnt work, and the breakpoint even no work.
I notice there only one print work located in
importUIKitimportFlutter@UIApplicationMain@objcclassAppDelegate:FlutterAppDelegate{overridefuncapplication(_application:UIApplication,didFinishLaunchingWithOptionslaunchOptions:[UIApplicationLaunchOptionsKey:Any]?)->Bool{print("Before\nAfter\n") // here
GeneratedPluginRegistrant.register(with:self)returnsuper.application(application,didFinishLaunchingWithOptions:launchOptions)}}
Having the same issue. Tried with NSLog, also added a new line to it (#13204) but flutter console doesn't show the logs. It is worth mentioning that this is in a plugin project.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Hixie commentedon Apr 2, 2019
Does it work if you use
NSLog? (https://developer.apple.com/documentation/foundation/1395275-nslog)nilobarp commentedon May 22, 2019
Having the same issue. Tried with
NSLog, also added a new line to it (#13204) but flutter console doesn't show the logs. It is worth mentioning that this is in a plugin project.lukepighetti commentedon Aug 26, 2019
I'm unable to get any kind of output to flutter console. Requesting an explicit method on FlutterViewController #39240
TahaTesser commentedon Oct 22, 2020
Hi @shyandsy
this is fixed #13204 (comment) #13204 (comment)
Closing as duplicate of #28856
github-actions commentedon Aug 10, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.