用如下podfile:
flutter_application_path = '../flutter_module/'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'FlutterHybridiOS' do
install_all_flutter_pods(flutter_application_path)
target 'FlutterHybridiOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'FlutterHybridiOSUITests' do
inherit! :search_paths
# Pods for testing
end
end
pod install 报错:
(base) danjiang@danjiang-MacBook-Pro FlutterHybirdiOS % pod install
Add `flutter_post_install(installer)` to your Podfile `post_install` block to build Flutter plugins:
post_install do |installer|
flutter_post_install(installer)
end
[!] Invalid `Podfile` file: Missing `flutter_post_install(installer)` in Podfile `post_install` block.
# from /Users/danjiang/CrossPlatform/MyFlutter/flutter_hybird/FlutterHybirdiOS/Podfile:11
# -------------------------------------------
# # Pods for FlutterHybirdiOS
> install_all_flutter_pods(flutter_application_path)
# end
# -------------------------------------------
解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。
了解课程