Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions src/content/platform-integration/ios/app-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,37 @@ an existing project.
dropdown value to match the one you have on
**ShareExtension** > **General** tab.

1. In the console, run the following command to rebuild your
iOS app:
1. Keep the `Podfile` in sync with the new target.

* Open `ios/Podfile`.

* Ensure that the deployment target is set to the same version
as your `ShareExtension` target.
For example: `platform :ios, '16.0'`.

* Add the following code to the end of the file.
If you used a different name for your extension target,
replace `'ShareExtension'` with your target's name:

```ruby
target 'ShareExtension' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
```

1. In the console, install the new pods:

```console
$ cd ios
$ pod install
$ cd ..
```

1. In the console, run the following command to
rebuild your iOS app:

```console
$ flutter build ios --config-only
Expand Down
Loading