Comments (9)
But I couldn't that to work.
If you email the mailing list with specific errors, I may be able to figure out from the errors what you missed updating.
I tried running the build through xcodebuild from the command line, but that did not yield the same results as running from within Xcode.
The error you have there indicates that the dependencies (plugins) aren't using the same build location as the application. This xcodebuild command works fine on the CI machines:
https://github.com/google/flutter-desktop-embedding/blob/master/.travis.yml#L48
so either you have non-standard Xcode-level settings for build locations, or xcodebuild behaves differently without the scheme
flag.
I'll likely add an example shell script to the repository soon that does an xcodebuild to a known location, as part of adding some information about how to set up a build/run/debug cycle from within VS Code, which would address the original request in this bug.
from flutter-desktop-embedding.
The original design of this project was targeting desktop developers who wanted to embed Flutter within a traditionally-developed desktop project. However, so far most of the interest seems to be from people who are looking for a Flutter-like development experience where the wrapper app is largely an implementation detail, so I do expect us in the future to support something that looks much more like the existing Flutter workflow.
(In the short term, you could easily make a simple Makefile or similar that invokes xcodebuild on your project, and trigger that from the editor of your choice.)
from flutter-desktop-embedding.
To add some nuance to the answer: Xcode tools installation will always be required because Apple requires them to build applications for macOS (and iOS). (Unless Apple changes this policy.)
from flutter-desktop-embedding.
Thank you. My main goal was to avoid installing and having to use full xcode to build, and get by with command line tools instance plus IntelliJ with flutter plugin
from flutter-desktop-embedding.
I want command line tools. I hate GUI. Can we have a command line tools, please? something like: flutter run
, flutter build
. GUI tools are too complicated to me. I really can't figure out how to compile MacOS and WIndows versions. They are too complicated without screenshots doc. Thank you very much.
from flutter-desktop-embedding.
something like:
flutter run
,flutter build
These tools work because the native embedding code for mobile is created and managed by Flutter, which is not currently the design of this project (as discussed both in my comment above and the README). Making command-line wrappers to build the example or the library would be easy, but wouldn't really help someone trying to use this library in their own project; there would still be the step of creating new macOS, Linux, and/or Windows embedding applications.
For that there will need to be something that serves the purpose of flutter create
, which is substantially more work since it needs to be able to create (and later update) native projects for each platforms from templates. Given that two of the three embedders are currently placeholders that will likely be entirely rewritten, it doesn't make sense to work on making templates from them at this point. It would also probably not make sense to do that before there are binary releases of the libraries.
As I noted above I do think that kind of tooling will come in the future, but right now the focus is still primarily on building out functionality.
from flutter-desktop-embedding.
@stuartmorgan thanks a lot for the detail reply. Yeah, I figured out I needed flutter-desktop create
, otherwise, I have no idea how to use this with my existing project. I have no ideas how to create those .h, .swift and .plist files. I am just really confused how to use this at all.
from flutter-desktop-embedding.
Yeah, I figured out I needed
flutter-desktop create
, otherwise, I have no idea how to use this with my existing project. I have no ideas how to create those .h, .swift and .plist files. I am just really confused how to use this at all.
I tried copying over the macos_fde
folder, setting FDE_ROOT
in Xcode, and fixing some paths in Xcode. But I couldn't that to work.
Can we have a command line tools, please?
I tried running the build through xcodebuild from the command line, but that did not yield the same results as running from within Xcode.
xcodebuild -configuration Debug -target Example\ Embedder
...
/Users/dacoharkes/flt/engine/flutter-desktop-embedding/example/macos_fde/Example Embedder-Bridging-Header.h:16:9: error: 'FlutterEmbedderColorPanel/FlutterEmbedderColorPanel.h' file not found
#import <FlutterEmbedderColorPanel/FlutterEmbedderColorPanel.h>
^
1 error generated.
<unknown>:0: error: failed to emit precompiled header '/Users/dacoharkes/flt/engine/flutter-desktop-embedding/example/macos_fde/build/SharedPrecompiledHeaders/Example Embedder-Bridging-Header-swift_2A2APZ7VJ8VYG-clang_69D6YMFET0U9.pch' for bridging header '/Users/dacoharkes/flt/engine/flutter-desktop-embedding/example/macos_fde/Example Embedder-Bridging-Header.h'
<unknown>:0: error: generate-pch command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
PrecompileSwiftBridgingHeader normal x86_64
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
Side note: I don't need the fde in the end, but I'm using dart:ffi which is not supported on arm yet. I'll manage with using the fde on Linux for the time being.
from flutter-desktop-embedding.
Moved to flutter/flutter#30706
from flutter-desktop-embedding.
Related Issues (20)
- window_size null-safety HOT 1
- Flutter launch error HOT 7
- setInitialRoute for Windows flutter::FlutterViewController HOT 1
- Window size is not correct when i first lunch the app unless i drag it HOT 3
- can't set window size. HOT 4
- App crashes if first minimize the window and then call setWindowVisibility(visible: true) HOT 1
- Throws MissingPluginException during test HOT 2
- setWindowMinSize and setWindowMaxSize not working in Flutter 2.8.0 on Windows 11 HOT 2
- Could not find a file named "plugins/file_chooser/pubspec.yaml HOT 4
- File Description HOT 1
- Linux on ARM: window_size causes "pub get" to hang HOT 3
- [menubar] 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:menubar/src/menu_item.dart' HOT 1
- [window_size] Window size cause GitHub timeout during flutter pub get HOT 1
- [menubar] Add "disabled" boolean on NativeMenuItem HOT 1
- Auto-Update flutter desktop app like Discord and Telegram desktop apps HOT 2
- DPI scale reactor needed HOT 1
- Git error. Command: `git clone --mirror git://github.com/google/flutter-desktop-embedding.git HOT 1
- [window_size] setWindowMinSize calculates window size without using DPI on some Windows version HOT 1
- is there in Flutter itself already ? HOT 1
- Run Flutter app in windows 32 bit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-desktop-embedding.