这是indexloc提供的服务,不要输入任何密码
Skip to content

Remove references to soon-to-be-deprecated "flutter create --ios-language" flag  #11200

@jmagman

Description

@jmagman

Page URLs

There may be others.

Describe the problem

flutter create --ios-language (abbreiviated to -i) flag will be removed in a future release, and will default to Swift. Remove references to the flag in the website. It's referenced as -i swift and -i objc.

Expected fix

By default, our template supports writing Android code using Kotlin,
or iOS code using Swift. To use Java or Objective-C,
use the `-i` and/or `-a` flags:
* In a terminal run: `flutter create -i objc -a java batterylevel`

Remove the Objective-C part:

By default, our template supports writing Android code using Kotlin. To use Java, use the -a flag:

  • In a terminal run: flutter create -a java batterylevel

Also around here

or the `-i` option to specify the language for ios.

```console
$ flutter create --org com.example --template=plugin --platforms=android,ios,linux,macos,windows -i objc hello
```
```console
$ flutter create --org com.example --template=plugin --platforms=android,ios,linux,macos,windows -i swift hello
```

Additional context

More context for the flag removal in flutter/flutter#148586

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

Labels

e1-hoursEffort: < 8 hrsfrom.page-issueReported in a reader-filed concernp2-mediumNecessary but not urgent concern. Resolve when possible.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions