I'm wonder how to debug flutter iOS code in a plugin? I can open the example app that's generated whenever you create a plugin but I see the plugin code as binary framework, therefore I can't debug it.
For android it's fairly easy, I just open the android folder in A.S. and the plugin + the example are there, I just add run configs and I start debugging right away.
But I really hope to find a similar way for iOS.
Plugins are added to the ios app as pod projects so it is similar to debugging any code in pod project.
NB: Need to run app from flutter first to work this properly
To set a breakpoint and debug Flutter plugin code from Xcode, try the following:
ios/Runner.xcworkspace
for the Flutter application you want to debug. HelloPlugin
class, set the symbol to -[HelloPlugin handleMethodCall:result:]
.From that point, trigger the plugin code through whichever UI actions will hit the code in question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With