Repository navigation
Open
Labels
P3Issues that are less important to the Flutter projecta: qualityA truly polished experiencefound in release: 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team
Description
Created from #13204 (comment)
Steps to reproduce
- Create a plugin
flutter create --template=plugin --platforms=ios hello - Add following code in the
handlefunction inside hello/ios/Classes/SwiftHelloPlugin.swift
print("hi!")
NSLog("Before\nAfter")
NSLog("\nHello, World!")Complete SwiftHelloPlugin.swift
import Flutter
import UIKit
public class SwiftHelloPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "hello", binaryMessenger: registrar.messenger())
let instance = SwiftHelloPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
print("hi!")
NSLog("Before\nAfter")
NSLog("\nHello, World!")
result("iOS " + UIDevice.current.systemVersion)
}
}- Open hello\example and execute
flutter run -verbose
Expected Results
[ +121 ms] DDS is listening at http://127.0.0.1:63848/QqgTcXI0-KQ=/.
[ +66 ms] Successfully connected to service protocol: http://localhost:63844
[ +1 ms] Waiting for Taha’s iPhone to report its views...
[ +6 ms] Waiting for Taha’s iPhone to report its views... (completed in 5ms)
[ +6 ms] DevFS: Creating new filesystem on the device (null)
[ +17 ms] DevFS: Created new filesystem on the device
(file:///private/var/mobile/Containers/Data/Application/F4C192CF-F711-438D-B268-
0165057E3CEE/tmp/exampleIBJEVI/example/)
[ +5 ms] Updating assets
[ +126 ms] Syncing files to device Taha’s iPhone...
[ +1 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +2 ms] <- recompile package:hello_beta_example/main.dart
e22c5fa5-9955-48b8-b918-d000fc99b56f
[ ] <- e22c5fa5-9955-48b8-b918-d000fc99b56f
[ +48 ms] Updating files.
[ ] DevFS: Sync finished
[ ] Syncing files to device Taha’s iPhone... (completed in 54ms)
[ ] Synced 0.0MB.
[ ] <- accept
[ +3 ms] Connected to _flutterView/0x10b01a020.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. 🔥🔥🔥
[ ] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on Taha’s iPhone is available
at:
http://127.0.0.1:63848/QqgTcXI0-KQ=/
[ +17 ms] hi!
[ ] Before
[ ] After
[ ] Hello, World!Actual Results
[ +1 ms] Launching a Dart Developer Service (DDS) instance at
http://127.0.0.1:0, connecting to VM service at http://localhost:63844.
[ +121 ms] DDS is listening at http://127.0.0.1:63848/QqgTcXI0-KQ=/.
[ +17 ms] hi!
[ ] Before
[ ] After
[ ] Hello, World!
[ +66 ms] Successfully connected to service protocol: http://localhost:63844
[ +1 ms] Waiting for Taha’s iPhone to report its views...
[ +6 ms] Waiting for Taha’s iPhone to report its views... (completed in 5ms)
[ +6 ms] DevFS: Creating new filesystem on the device (null)
[ +17 ms] DevFS: Created new filesystem on the device
(file:///private/var/mobile/Containers/Data/Application/F4C192CF-F711-438D-B268-
0165057E3CEE/tmp/exampleIBJEVI/example/)
[ +5 ms] Updating assets
[ +126 ms] Syncing files to device Taha’s iPhone...
[ +1 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +2 ms] <- recompile package:hello_beta_example/main.dart
e22c5fa5-9955-48b8-b918-d000fc99b56f
[ ] <- e22c5fa5-9955-48b8-b918-d000fc99b56f
[ +48 ms] Updating files.
[ ] DevFS: Sync finished
[ ] Syncing files to device Taha’s iPhone... (completed in 54ms)
[ ] Synced 0.0MB.
[ ] <- accept
[ +3 ms] Connected to _flutterView/0x10b01a020.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. 🔥🔥🔥
[ ] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on Taha’s iPhone is available
at:
http://127.0.0.1:63848/QqgTcXI0-KQ=/
logs
[ +372 ms] Installing and launching...
[ ] Debugging is enabled, connecting to observatory
[ +7 ms] executing: script -t 0 /dev/null
/Users/tahatesser/Code/flutter_beta/bin/cache/artifacts/ios-deploy/ios-deploy
--id 00008020-001059882212002E --bundle build/ios/iphoneos/Runner.app --debug
--no-wifi --args --enable-dart-profiling --enable-service-port-fallback
--disable-service-auth-codes --observatory-port=61470 --enable-checked-mode
--verify-entry-points
[ +275 ms] [....] Waiting for iOS device to be connected
[ +20 ms] [....] Using 00008020-001059882212002E (N841AP, iPhone XR, iphoneos,
arm64e) a.k.a. 'Taha’s iPhone'.
[ ] ------ Install phase ------
[ ] [ 0%] Found 00008020-001059882212002E (N841AP, iPhone XR, iphoneos,
arm64e) a.k.a. 'Taha’s iPhone' connected through USB, beginning install
[ +345 ms] [ 5%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/META-INF/ to device
[ ] [ 5%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/META-INF/com.apple.ZipMetadata.plist to device
[ ] [ 5%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/_CodeSignature/ to device
[ ] [ 5%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/_CodeSignature/CodeResources to device
[ ] [ 6%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 6%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 6%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon29x29.png to device
[ ] [ 6%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 7%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Runner to device
[ ] [ 7%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 7%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 8%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon29x29~ipad.png to device
[ ] [ 8%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 8%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 8%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/[email protected] to device
[ ] [ 9%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/ to device
[ ] [ 9%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/Main.storyboardc/ to device
[ ] [ 9%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r.nib to device
[ +1 ms] [ 10%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib to device
[ ] [ 10%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/Main.storyboardc/Info.plist to device
[ ] [ 10%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/LaunchScreen.storyboardc/ to device
[ ] [ 10%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to
device
[ ] [ 11%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to
device
[ ] [ 11%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Base.lproj/LaunchScreen.storyboardc/Info.plist to device
[ ] [ 11%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Assets.car to device
[ ] [ 11%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppFrameworkInfo.plist to device
[ ] [ 12%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon40x40@2x~ipad.png to device
[ ] [ 12%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon76x76@2x~ipad.png to device
[ ] [ 12%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon83.5x83.5@2x~ipad.png to device
[ ] [ 13%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon29x29@2x~ipad.png to device
[ ] [ 13%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon40x40~ipad.png to device
[ ] [ 13%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/ to device
[ ] [ 13%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftCoreImage.dylib to device
[ +16 ms] [ 14%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftObjectiveC.dylib to device
[ +98 ms] [ 14%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftCore.dylib to device
[+2673 ms] [ 19%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftCoreGraphics.dylib to device
[ +130 ms] [ 19%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftUIKit.dylib to device
[ +72 ms] [ 20%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftMetal.dylib to device
[ +77 ms] [ 20%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftDispatch.dylib to device
[ +182 ms] [ 21%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftos.dylib to device
[ +40 ms] [ 21%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftCoreFoundation.dylib to device
[ +71 ms] [ 21%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/Flutter.framework/ to device
[ ] [ 22%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/Flutter.framework/_CodeSignature/ to device
[ ] [ 22%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/Flutter.framework/_CodeSignature/CodeResources to device
[ +1 ms] [ 22%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/Flutter.framework/icudtl.dat to device
[ +128 ms] [ 23%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/Flutter.framework/Flutter to device
[+3573 ms] [ 30%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/Flutter.framework/Info.plist to device
[ ] [ 30%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/ to device
[ ] [ 30%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/_CodeSignature/ to device
[ ] [ 30%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/_CodeSignature/CodeResources to device
[ ] [ 31%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/App to device
[ ] [ 31%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/ to device
[ ] [ 31%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/vm_snapshot_data to device
[ ] [ 32%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/isolate_snapshot_data to device
[ +510 ms] [ 33%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/AssetManifest.json to device
[ +1 ms] [ 33%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin to device
[+3557 ms] [ 40%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/NOTICES to device
[ +91 ms] [ 40%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/FontManifest.json to device
[ +1 ms] [ 40%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/packages/ to device
[ ] [ 41%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/packages/cupertino_icons/ to
device
[ ] [ 41%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/packages/cupertino_icons/assets
/ to device
[ ] [ 41%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/packages/cupertino_icons/assets
/CupertinoIcons.ttf to device
[ +27 ms] [ 41%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/fonts/ to device
[ +1 ms] [ 42%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf
to device
[ +129 ms] [ 42%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/App.framework/Info.plist to device
[ ] [ 42%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftDarwin.dylib to device
[ +66 ms] [ 43%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/hello_beta.framework/ to device
[ +1 ms] [ 43%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/hello_beta.framework/_CodeSignature/ to device
[ ] [ 43%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/hello_beta.framework/_CodeSignature/CodeResources to device
[ ] [ 44%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/hello_beta.framework/hello_beta to device
[ +38 ms] [ 44%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/hello_beta.framework/Info.plist to device
[ ] [ 44%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftQuartzCore.dylib to device
[ +35 ms] [ 45%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftCoreAudio.dylib to device
[ +50 ms] [ 45%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftFoundation.dylib to device
[+1368 ms] [ 47%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Frameworks/libswiftCoreMedia.dylib to device
[ +47 ms] [ 48%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon20x20~ipad.png to device
[ ] [ 48%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/embedded.mobileprovision to device
[ ] [ 48%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon20x20@2x~ipad.png to device
[ ] [ 49%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/Info.plist to device
[ ] [ 49%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/PkgInfo to device
[ ] [ 49%] Copying
/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/Ru
nner.app/AppIcon76x76~ipad.png to device
[ +358 ms] [ 52%] CreatingStagingDirectory
[ ] [ 57%] ExtractingPackage
[ ] [ 60%] InspectingPackage
[ +22 ms] [ 60%] TakingInstallLock
[ +52 ms] [ 65%] PreflightingApplication
[ +37 ms] [ 65%] InstallingEmbeddedProfile
[ +22 ms] [ 70%] VerifyingApplication
[ +243 ms] [ 75%] CreatingContainer
[ +7 ms] [ 80%] InstallingApplication
[ +6 ms] [ 85%] PostflightingApplication
[ +3 ms] [ 90%] SandboxingApplication
[ +15 ms] [ 95%] GeneratingApplicationMap
[ +69 ms] [100%] Installed package build/ios/iphoneos/Runner.app
[ +399 ms] ------ Debug phase ------
[ ] Starting debug of 00008020-001059882212002E (N841AP, iPhone XR,
iphoneos, arm64e) a.k.a. 'Taha’s iPhone' connected through USB...
[ +134 ms] [ 0%] Looking up developer disk image
[ +16 ms] [ 95%] Developer disk image mounted successfully
[+1082 ms] [100%] Connecting to remote debug server
[ ] -------------------------
[+2175 ms] (lldb) command source -s 0
'/tmp/248F8998-7BFF-46FF-9FC1-2FE7A48B07AC/fruitstrap-lldb-prep-cmds-00008020_00
1059882212002E'
[ ] Executing commands in
'/tmp/248F8998-7BFF-46FF-9FC1-2FE7A48B07AC/fruitstrap-lldb-prep-cmds-00008020_00
1059882212002E'.
[ ] (lldb) platform select remote-ios --sysroot
'/Users/tahatesser/Library/Developer/Xcode/iOS DeviceSupport/14.1 (18A8395)
arm64e/Symbols'
[ ] Platform: remote-ios
[ ] Connected: no
[ ] SDK Path: "/Users/tahatesser/Library/Developer/Xcode/iOS
DeviceSupport/14.1 (18A8395) arm64e/Symbols"
[ ] (lldb) target create
"/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/R
unner.app"
[+4225 ms] Current executable set to
'/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos/R
unner.app' (arm64).
[ ] (lldb) script
fruitstrap_device_app="/private/var/containers/Bundle/Application/457A62AD-8ABA-
4AA6-A5CA-035F86837A62/Runner.app"
[ +470 ms] (lldb) script fruitstrap_connect_url="connect://127.0.0.1:63837"
[ ] (lldb) script fruitstrap_output_path=""
[ ] (lldb) script fruitstrap_error_path=""
[ ] (lldb) target modules search-paths add /usr
"/Users/tahatesser/Library/Developer/Xcode/iOS DeviceSupport/14.1 (18A8395)
arm64e/Symbols/usr" /System "/Users/tahatesser/Library/Developer/Xcode/iOS
DeviceSupport/14.1 (18A8395) arm64e/Symbols/System"
"/private/var/containers/Bundle/Application/457A62AD-8ABA-4AA6-A5CA-035F86837A62
"
"/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos"
"/var/containers/Bundle/Application/457A62AD-8ABA-4AA6-A5CA-035F86837A62"
"/Users/tahatesser/AndroidStudioProjects/hello_beta/example/build/ios/iphoneos"
/Developer "/Users/tahatesser/Library/Developer/Xcode/iOS DeviceSupport/14.1
(18A8395) arm64e/Symbols/Developer"
[ +15 ms] (lldb) command script import
"/tmp/248F8998-7BFF-46FF-9FC1-2FE7A48B07AC/fruitstrap_00008020_001059882212002E.
py"
[ +4 ms] (lldb) command script add -f
fruitstrap_00008020_001059882212002E.connect_command connect
[ ] (lldb) command script add -s asynchronous -f
fruitstrap_00008020_001059882212002E.run_command run
[ ] (lldb) command script add -s asynchronous -f
fruitstrap_00008020_001059882212002E.autoexit_command autoexit
[ ] (lldb) command script add -s asynchronous -f
fruitstrap_00008020_001059882212002E.safequit_command safequit
[ ] (lldb) connect
[ +73 ms] (lldb) run
[ +298 ms] success
[ ] Application launched on the device. Waiting for observatory port.
[ +17 ms] Attempting to forward device port 61470 to host port 63844
[ ] executing:
/Users/tahatesser/Code/flutter_beta/bin/cache/artifacts/usbmuxd/iproxy
63844:61470 --udid 00008020-001059882212002E
[+1026 ms] Forwarded port ForwardedPort HOST:63844 to DEVICE:61470
[ +205 ms] Installing and launching... (completed in 24.7s)
[ +3 ms] Caching compiled dill
[ +61 ms] Connecting to service protocol: http://localhost:63844
[ +1 ms] Launching a Dart Developer Service (DDS) instance at
http://127.0.0.1:0, connecting to VM service at http://localhost:63844.
[ +121 ms] DDS is listening at http://127.0.0.1:63848/QqgTcXI0-KQ=/.
[ +17 ms] hi!
[ ] Before
[ ] After
[ ] Hello, World!
[ +66 ms] Successfully connected to service protocol: http://localhost:63844
[ +1 ms] Waiting for Taha’s iPhone to report its views...
[ +6 ms] Waiting for Taha’s iPhone to report its views... (completed in 5ms)
[ +6 ms] DevFS: Creating new filesystem on the device (null)
[ +17 ms] DevFS: Created new filesystem on the device
(file:///private/var/mobile/Containers/Data/Application/F4C192CF-F711-438D-B268-
0165057E3CEE/tmp/exampleIBJEVI/example/)
[ +5 ms] Updating assets
[ +126 ms] Syncing files to device Taha’s iPhone...
[ +1 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +2 ms] <- recompile package:hello_beta_example/main.dart
e22c5fa5-9955-48b8-b918-d000fc99b56f
[ ] <- e22c5fa5-9955-48b8-b918-d000fc99b56f
[ +48 ms] Updating files.
[ ] DevFS: Sync finished
[ ] Syncing files to device Taha’s iPhone... (completed in 54ms)
[ ] Synced 0.0MB.
[ ] <- accept
[ +3 ms] Connected to _flutterView/0x10b01a020.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. 🔥🔥🔥
[ ] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on Taha’s iPhone is available
at:
http://127.0.0.1:63848/QqgTcXI0-KQ=/
flutter doctor -v
[✓] Flutter (Channel master, 1.24.0-2.0.pre.111, on Mac OS X 10.15.7 19H2
darwin-x64, locale en-GB)
• Flutter version 1.24.0-2.0.pre.111 at
/Users/tahatesser/Code/flutter_master
• Framework revision fe189baf34 (10 hours ago), 2020-10-21 22:25:53 -0400
• Engine revision f459a86610
• Dart version 2.11.0 (build 2.11.0-242.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/tahatesser/Code/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/tahatesser/Code/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.1, Build version 12A7403
• CocoaPods version 1.10.0.rc.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.50.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.15.1
[✓] Connected device (5 available)
• Taha’s iPhone (mobile) • 00008020-001059882212002E • ios
• iOS 14.1
• iPhone 12 (mobile) • 722C6A4C-3FCA-4FC6-9D30-9702A0E784B8 • ios
• com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
• macOS (desktop) • macos • darwin-x64
• Mac OS X 10.15.7 19H2 darwin-x64
• Web Server (web) • web-server •
web-javascript • Flutter Tools
• Chrome (web) • chrome •
web-javascript • Google Chrome 86.0.4240.80
• No issues found!
Reacted by Michael Rozenblat, lulupointu, Kherel, August, Kauê Martins and Pedro Carvalho
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projecta: qualityA truly polished experiencefound in release: 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team
Activity
[-]Global `print` ins'[/-][+]Global `print` isn't at the end of the console, instead it printed before run commands output [/+]darshankawar commentedon Oct 27, 2020
flutter doctor -v
console log
MikePendo commentedon Oct 18, 2021
Indeed native(ios) logs aren't shown, in the terminal (flutter run or in Android studio in the run tab or in the Logcat, which is for some reason doesnt recognize iOS simulator )
adminant commentedon Apr 8, 2022
I have the same problem, NSLogs used in native code show messages only in XCode window, but not in Android studio console log. Is there any workaround?
huycozy commentedon Mar 17, 2023
I'm checking this on the latest Flutter stable and master channels, and I have the same result as @adminant. The
NSLogorprintisn't shown on Android Studio output console log or the system Terminal (verified on MacOS's Terminal) but it does if running the native iOS project on XCode.On Android Studio (iOS target)
On MacOS's terminal (iOS target)
On XCode (iOS example project)
Sample project: print_ios_69103.zip
Updating the labels for further investigation.
flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.7.7, on macOS 13.0.1 22A400 darwin-x64, locale en-EE) • Flutter version 3.7.7 on channel stable at /Users/huynq/Documents/GitHub/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 2ad6cd72c0 (10 hours ago), 2023-03-08 09:41:59 -0800 • Engine revision 1837b5be5f • Dart version 2.19.4 • DevTools version 2.20.1 [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/huynq/Library/Android/sdk • Platform android-33, build-tools 31.0.0 • ANDROID_HOME = /Users/huynq/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14B47b • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [!] Android Studio • Android Studio at /Applications/Android Studio Preview.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart ✗ Unable to find bundled Java version. • Try updating or re-installing Android Studio. [✓] Android Studio (version 2022.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301) [✓] IntelliJ IDEA Community Edition (version 2022.1.1) • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.76.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.60.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 13.0.1 22A400 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.177 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 1 category.feat!: event channel (#1352)