林洵锋
f340d207f6
Adjust the position of require File.expand_path ( #141521 )
...
On `Podfile`:
```ruby
flutter_application_path = '../flutter_module'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'OCProject' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for OCProject
# install_all_flutter_pods(flutter_application_path)
# install_flutter_engine_pod(flutter_application_path)
# install_flutter_application_pod(flutter_application_path)
install_flutter_plugin_pods(flutter_application_path)
end
post_install do |installer|
flutter_post_install(installer)
end
```
Encountering the following error after executing `pod install`:
```shell
pod install
[!] Invalid `Podfile` file: undefined method `flutter_relative_path_from_podfile' for #<Pod::Podfile:0x000000010e74c520 @defined_in_file=#<Pathname:/Users/lxf/gitHub/flutter_hybrid_bug/OCProject/Podfile>, @internal_hash={}, @root_target_definitions=[#<Pod::Podfile::TargetDefinition label=Pods>], @current_target_definition=#<Pod::Podfile::TargetDefinition label=Pods>>
relative = flutter_relative_path_from_podfile(export_script_directory)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.
# from /Users/lxf/gitHub/flutter_hybrid_bug/OCProject/Podfile:17
# -------------------------------------------
# # install_flutter_plugin_pods(flutter_application_path)
> install_flutter_application_pod(flutter_application_path)
#
# -------------------------------------------
```
The `flutter_relative_path_from_podfile` method is in `flutter_tools/bin/podhelper.rb`, but now `flutter_tools/bin/podhelper.rb` is only required in `install_all_flutter_pods` in `podhelper.rb.tmpl`.
Sometimes we only need to use the `install_flutter_plugin_pods` method in podhelper.rb. For example, using `Shorebird` in an iOS hybird app scenario, we need to build `Flutter.xcframework` and `App.xcframework` and embed them into the iOS native project. In order to avoid unnecessary conflicts, use `install_flutter_plugin_pods` method to install Flutter plugin pods.
[Shorebird - Code Push In Hybrid Apps](https://docs.shorebird.dev/guides/hybrid-app/ios )
So I adjust the position of `require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)`.
2024-01-21 06:18:26 +00:00
..
2021-07-13 16:45:09 -07:00
2022-02-28 10:16:21 -08:00
2021-07-13 16:45:09 -07:00
2022-03-01 15:26:21 -08:00
2022-10-04 03:37:22 +00:00
2022-02-08 16:10:43 -08:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2024-01-03 01:17:08 +00:00
2021-07-13 16:45:09 -07:00
2023-08-09 10:57:35 -07:00
2023-08-09 10:57:35 -07:00
2023-08-09 10:57:35 -07:00
2023-03-31 20:54:51 +00:00
2023-03-31 20:54:51 +00:00
2023-08-03 22:31:06 +00:00
2022-11-29 01:59:19 +00:00
2022-04-25 18:14:06 -07:00
2022-08-26 14:06:26 -07:00
2023-01-18 22:33:49 +00:00
2021-10-08 09:25:14 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2022-08-26 15:29:14 +00:00
2021-07-13 16:45:09 -07:00
2022-10-04 03:37:22 +00:00
2023-12-04 20:29:53 +00:00
2021-07-13 16:45:09 -07:00
2022-09-08 22:39:07 +00:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2022-05-13 14:04:06 +08:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2022-08-26 14:06:26 -07:00
2022-03-16 19:15:13 -07:00
2022-07-20 19:13:06 +00:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2022-08-25 23:35:00 +00:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2022-08-26 18:50:07 +00:00
2023-12-04 19:23:26 +00:00
2023-12-04 19:23:26 +00:00
2021-10-08 09:25:14 -07:00
2023-01-19 21:29:19 +00:00
2021-07-13 16:45:09 -07:00
2022-08-17 09:38:41 -04:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2023-08-14 18:47:08 +00:00
2023-08-14 18:47:08 +00:00
2023-08-14 18:47:08 +00:00
2023-05-15 19:14:58 +00:00
2023-08-14 18:47:08 +00:00
2023-08-14 18:47:08 +00:00
2023-08-14 18:47:08 +00:00
2021-07-13 16:45:09 -07:00
2023-08-14 18:47:08 +00:00
2023-08-14 18:47:08 +00:00
2021-07-13 16:45:09 -07:00
2023-08-09 23:26:05 +00:00
2022-03-28 18:15:10 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2021-07-13 16:45:09 -07:00
2022-07-12 21:41:08 +00:00
2022-07-12 21:41:08 +00:00
2023-10-25 17:08:57 +00:00
2023-12-21 20:30:21 +00:00
2023-12-21 20:30:21 +00:00
2023-12-21 20:30:21 +00:00
2023-09-20 19:59:08 +00:00
2022-12-20 16:03:21 -08:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-10-06 09:43:02 -07:00
2021-07-13 22:04:03 -07:00
2023-05-10 00:50:11 +00:00
2022-09-07 20:19:20 +00:00
2022-09-07 20:19:20 +00:00
2021-07-13 22:04:03 -07:00
2022-05-12 09:54:10 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2023-08-09 19:25:12 +00:00
2021-07-13 22:04:03 -07:00
2022-08-26 17:29:39 +00:00
2022-09-08 16:49:17 +00:00
2023-03-08 19:44:40 +00:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2022-08-17 09:38:41 -04:00
2022-08-17 09:38:41 -04:00
2023-03-08 19:44:40 +00:00
2023-04-21 22:33:07 +00:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2022-09-14 23:44:14 +00:00
2022-08-17 09:38:41 -04:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2022-08-26 14:06:26 -07:00
2021-07-13 22:04:03 -07:00
2022-04-08 17:20:22 -07:00
2022-04-08 17:20:22 -07:00
2022-04-08 17:20:22 -07:00
2022-12-08 18:03:51 -08:00
2022-04-27 09:15:35 +02:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2022-04-20 22:34:07 -07:00
2023-03-15 02:13:21 +00:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2023-09-14 09:13:35 -07:00
2021-07-13 22:04:03 -07:00
2022-08-24 18:04:42 +00:00
2022-08-17 09:38:41 -04:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-12-10 15:39:07 -08:00
2023-10-12 15:53:00 +00:00
2021-07-13 22:04:03 -07:00
2022-10-18 22:26:16 +00:00
2022-10-20 03:23:12 +00:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2022-08-26 14:06:26 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-15 17:11:09 -07:00
2023-08-09 19:25:12 +00:00
2021-07-13 22:04:03 -07:00
2021-07-15 17:11:09 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2021-07-13 22:04:03 -07:00
2022-09-26 17:45:19 +00:00
2021-07-13 22:04:03 -07:00
2022-10-27 22:05:05 +00:00
2024-01-03 00:47:40 +00:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-10-08 09:25:14 -07:00
2021-07-13 16:41:06 -07:00
2023-03-10 16:16:30 +00:00
2022-06-21 18:17:07 +00:00
2021-07-13 16:41:06 -07:00
2023-09-13 18:08:35 +00:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2023-12-14 00:55:57 +00:00
2021-07-13 16:41:06 -07:00
2024-01-21 06:18:26 +00:00
2024-01-16 19:29:26 +00:00
2021-07-13 16:41:06 -07:00
2023-12-07 16:29:11 +00:00
2023-10-12 15:53:00 +00:00
2023-09-10 08:07:13 +00:00
2022-09-07 22:45:26 +00:00
2021-11-02 16:41:32 -07:00
2021-07-13 16:41:06 -07:00
2022-11-02 18:43:42 +00:00
2023-03-10 16:16:30 +00:00
2023-10-10 22:27:07 +00:00
2021-07-13 16:41:06 -07:00
2023-08-03 12:25:29 -07:00
2023-04-28 10:41:33 -07:00
2022-06-27 23:36:06 +00:00
2022-01-27 13:25:17 -08:00
2021-12-01 01:39:02 -08:00
2021-12-01 01:39:02 -08:00
2022-01-27 13:25:17 -08:00
2021-12-01 01:39:02 -08:00
2021-12-01 01:39:02 -08:00
2021-12-01 01:39:02 -08:00
2022-07-21 20:01:06 +00:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2023-03-23 11:56:23 -07:00
2021-07-13 16:41:06 -07:00
2022-06-30 14:54:07 +00:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2022-09-08 19:35:20 +00:00
2022-08-17 09:38:41 -04:00
2021-07-13 16:41:06 -07:00
2023-06-23 18:40:17 -07:00
2021-07-13 16:41:06 -07:00
2023-03-10 16:16:30 +00:00
2023-09-12 18:29:00 +00:00
2023-12-19 20:19:52 +00:00
2024-01-16 15:36:38 +00:00
2023-02-15 19:13:11 +00:00
2023-01-09 10:33:03 -08:00
2023-01-24 18:23:57 +00:00
2023-05-15 17:55:55 +00:00
2021-10-08 09:25:14 -07:00
2022-06-29 23:54:10 +00:00
2022-03-14 12:30:20 -07:00
2023-03-08 19:44:40 +00:00
2022-12-12 22:39:49 +00:00
2023-01-13 19:17:12 +00:00
2022-12-12 22:39:49 +00:00
2022-12-12 22:39:49 +00:00
2023-01-13 19:17:12 +00:00
2022-11-08 23:00:04 +00:00
2022-12-08 14:05:53 -08:00
2022-12-06 21:57:25 +00:00
2023-03-08 19:44:40 +00:00
2022-03-28 00:15:07 -07:00
2021-10-08 09:25:14 -07:00
2023-04-24 23:25:28 +00:00
2022-12-20 14:15:39 -08:00
2022-07-28 09:07:49 -07:00
2021-07-13 16:41:06 -07:00
2023-11-29 08:41:27 +00:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2022-12-22 02:47:11 +00:00
2022-08-17 16:16:02 +00:00
2023-08-14 18:47:08 +00:00
2023-08-14 18:47:08 +00:00
2022-11-08 09:26:55 -08:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2021-07-13 16:41:06 -07:00
2023-08-31 19:03:14 +00:00
2023-08-31 19:03:14 +00:00
2023-06-28 17:16:19 -07:00
2023-06-28 17:16:19 -07:00
2023-06-28 17:16:19 -07:00
2021-07-13 16:41:06 -07:00
2023-02-13 22:33:19 +00:00
2021-07-13 16:41:06 -07:00
2022-03-04 15:41:14 -08:00
2022-08-25 18:54:20 -07:00