Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter build ios does not support -t aka --target #4298

Closed
drewwarren opened this issue Jun 1, 2016 · 6 comments · Fixed by #4318
Closed

flutter build ios does not support -t aka --target #4298

drewwarren opened this issue Jun 1, 2016 · 6 comments · Fixed by #4318
Assignees
Labels
c: new feature Nothing broken; request for a new capability customer: fast (g3) platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@drewwarren
Copy link

drewwarren commented Jun 1, 2016

Steps to Reproduce

flutter build ios -t lib/main.dart. In reality I'm trying a different main file.
build apk does support -t

Flutter Doctor

[✓] Flutter (on Mac OS, channel master)
    • Flutter at /Users/drewwarren/flutter
    • Framework revision ad4148bf32 (3 hours ago), engine revision 8a4dba983f

[x] Android toolchain - develop for Android devices
    x Android Studio / Android SDK not found. Download from https://developer.android.com/sdk/
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] iOS toolchain - develop for iOS devices (Xcode 7.2.1)
    • XCode at /Applications/Xcode.app/Contents/Developer
    • Xcode 7.2.1, Build version 7C1002

[✓] Atom - a lightweight development environment for Flutter
    • flutter plugin version 0.2.2
    • dartlang plugin version 0.6.12

Logs and Crash Reports

client (master)$ flutter build ios -t lib/main.dart
Could not find an option or flag "-t".

Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
@abarth
Copy link
Contributor

abarth commented Jun 1, 2016

flutter build apk claims to support a -t option. It looks like you might be running flutter build -t lib/main.dart instead of flutter build apk -t lib.main.dart...

$ flutter build apk --help
Build an Android APK file from your app.

This command can build debug and release versions of your application. 'debug' builds support
debugging and a quick development cycle. 'release' builds don't support debugging and are
suitable for deploying to app stores.

Usage: flutter build apk [arguments]
-h, --help                     Print this usage information.
-t, --target                   Target app path / main entry-point file.
                               (defaults to "lib/main.dart")

@drewwarren
Copy link
Author

I have no problems with build apk only with build ios

@abarth
Copy link
Contributor

abarth commented Jun 1, 2016

Ah, sorry. I misread your bug report. Yes, that's missing.

@abarth abarth added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. c: new feature Nothing broken; request for a new capability labels Jun 1, 2016
@abarth
Copy link
Contributor

abarth commented Jun 1, 2016

I can take care of this.

/cc @chinmaygarde

@abarth abarth self-assigned this Jun 1, 2016
abarth added a commit to abarth/flutter that referenced this issue Jun 2, 2016
@abarth
Copy link
Contributor

abarth commented Jun 2, 2016

Fix in #4318

abarth added a commit that referenced this issue Jun 2, 2016
cdotstout pushed a commit to cdotstout/flutter that referenced this issue Apr 3, 2018
…r#4298)

* Enable flutter engine to also work with .*so files on android

We would like to be able to use native tools (e.g. simpleperf, gdb) with
precompiled flutter apps.  The native tools work much better with *.so
files instead of the custom formats the Dart VM uses by default.

This CL adds support for being able to load the flutter app from an *.so
file on Android.

* Add sanity check to ensure we have either shared library or instruction snapshot (but not both)
@github-actions
Copy link

github-actions bot commented Sep 6, 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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability customer: fast (g3) platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants