Flutter Desktop MacOS Plugin, how to see compiler errors

126 views
Skip to first unread message

Dale King

unread,
Aug 13, 2019, 11:24:56 PM8/13/19
to Flutter Development (flutter-dev)
Trying to build a plugin for MacOS based on the example_plugin. I am not a swift developer so making lots of errors, but the problem is that when I try to run the app I get messages that the compiler failed:

** BUILD FAILED **


The following build commands failed:
CompileSwift normal x86_64 /Users/dking5/Downloads/flutter-desktop-embedding/example/plugins/example_plugin/macos/Classes/ExamplePlugin.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
Finished with error: Build process failed

But I cannot seem to find any way to see what the actual compiler errors were. I tried opening the Pods.xcodeproj in xcode but it has no ability to build. I can open the Runner.xcodeproj but if there are compiler errors it just tells me that the plugin doesn't exist.

I could make better progress if I could see that actual compiler error messages. 

Terje A. Bergesen

unread,
Aug 14, 2019, 12:30:47 AM8/14/19
to Dale King, Flutter Development (flutter-dev)
flutter run -v

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/dd883b56-215b-41a9-ac2c-ba70facb1a0d%40googlegroups.com.
--
Terje A Bergesen - te...@bergesen.info
"Vae, puto deus fio" -- Vespasian, not his last words though

Stuart Morgan

unread,
Aug 14, 2019, 1:39:01 AM8/14/19
to Terje A. Bergesen, Dale King, Flutter Development (flutter-dev)
And to be clear: the fact that you don't get any useful error messages without verbose mode is a bug (and it's true of any build error on macOS, not just plugins); it's tracked as https://github.com/flutter/flutter/issues/33582

-Stuart

Dale King

unread,
Aug 14, 2019, 9:24:56 AM8/14/19
to Flutter Development (flutter-dev)
Thanks, that helped. Would still be nice to be able to edit and build in an IDE even one that sucks as bad as XCode.


On Wednesday, August 14, 2019 at 12:30:47 AM UTC-4, Terje A. Bergesen wrote:
flutter run -v

ons. 14. aug. 2019 kl. 05:25 skrev Dale King <dale...@gmail.com>:
Trying to build a plugin for MacOS based on the example_plugin. I am not a swift developer so making lots of errors, but the problem is that when I try to run the app I get messages that the compiler failed:

** BUILD FAILED **


The following build commands failed:
CompileSwift normal x86_64 /Users/dking5/Downloads/flutter-desktop-embedding/example/plugins/example_plugin/macos/Classes/ExamplePlugin.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
Finished with error: Build process failed

But I cannot seem to find any way to see what the actual compiler errors were. I tried opening the Pods.xcodeproj in xcode but it has no ability to build. I can open the Runner.xcodeproj but if there are compiler errors it just tells me that the plugin doesn't exist.

I could make better progress if I could see that actual compiler error messages. 

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.

Stuart Morgan

unread,
Aug 14, 2019, 12:39:51 PM8/14/19
to Dale King, Flutter Development (flutter-dev)
On Wed, Aug 14, 2019 at 6:25 AM Dale King <dale...@gmail.com> wrote:
Would still be nice to be able to edit and build in an IDE

You can use an IDE. Editing and building from within Runner.xcworkspace works as with any other Xcode workspace as long as you've `flutter run` or `flutter build` at least once.

-Stuart
Reply all
Reply to author
Forward
0 new messages