作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我在 iOS 应用程序中集成 flutter 模块,但在安装 pod 时出现此错误。
下面是podfile中的代码。
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'FlutteriOSApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for FlutteriOSApp
target 'FlutteriOSAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'FlutteriOSAppUITests' do
inherit! :search_paths
# Pods for testing
end
flutter_application_path = 'flutter_module/.ios/Flutter/podhelper.rb'
eval(File.read(File.join(flutter_application_path)), binding)
end
我也试过
flutter_application_path = 'flutter_module'
eval(File.read(File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')), binding)
此外,该文件存在于
flutter_module/.ios/Flutter/podhelper.rb
请帮忙。提前致谢。
最佳答案
我成功了。我在项目目录中删除了 podfile 并重新初始化了 pod 并更改了
flutter_application_path = 'flutter_module'
到
flutter_application_path = 'flutter_module/'
Notice the '/' at last.
现在在 pod install 之后
Analyzing dependencies
Fetching podspec for `Flutter` from `flutter_module/.ios/Flutter/engine`
Fetching podspec for `FlutterPluginRegistrant` from `flutter_module/.ios/Flutter/FlutterPluginRegistrant`
Downloading dependencies
Installing Flutter (1.0.0)
Installing FlutterPluginRegistrant (0.0.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.
[!] Automatically assigning platform `ios` with version `12.2` on target `FlutteriOSApp` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
关于ios - 无效的 `Podfile` 文件 : No such file or directory @ rb_sysopen - flutter_module/. ios/Flutter/podhelper.rb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56643966/
升级flutter后尝试用模拟器测试flutter项目时,出现了这个错误。 Launching lib/main.dart on iPhone 11 Pro in debug mode... Runn
我正在尝试将 flutter 模块集成到现有的 iOS 应用中 我的 pod 文件: # Uncomment the next line to define a global platform for
我在 iOS 应用程序中集成 flutter 模块,但在安装 pod 时出现此错误。 下面是podfile中的代码。 # Uncomment the next line to define a glo
我是一名优秀的程序员,十分优秀!