小编Spe*_*edy的帖子

处理 Podfile 的安装后挂钩时发生错误。无法在 iOS 模拟器上运行 flutter 项目并出现 pod 错误

我已经为我的 flutter 项目设置了一个 firebase 项目,但在运行该项目时出现以下错误。我尝试正确安装 Pod,但执行时仍然出现错误。如果您有任何想法,请告诉我。我已经分享了控制台日志

- Generating dummy source at `Pods/Target Support Files/Pods-Runner/Pods-Runner-dummy.m`
      - Generating deterministic UUIDs
      - Stabilizing target UUIDs
      - Running post install hooks
    [!] An error occurred while processing the post-install hook of the Podfile.

    undefined method `each_child' for #<Dir:0x00007fd6d1da4a58>

    Documents/Flutter/packages/flutter_tools/bin/podhelper.rb:57:in `block in flutter_additional_ios_build_settings'
    Documents/Flutter/packages/flutter_tools/bin/podhelper.rb:54:in `each'
    Documents/Flutter/packages/flutter_tools/bin/podhelper.rb:54:in `flutter_additional_ios_build_settings'
    flutter-project/ios/Podfile:41:in `block (3 levels) in from_ruby'
    flutter-projecty/ios/Podfile:40:in `each'
    flutter-project/ios/Podfile:40:in `block (2 levels) in from_ruby'
    /Users/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.10.2/lib/cocoapods-core/podfile.rb:179:in
    `post_install!'
    /Users/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.2/lib/cocoapods/installer.rb:897:in
    `run_podfile_post_install_hook'
    /Users/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.2/lib/cocoapods/installer.rb:885:in `block in
    run_podfile_post_install_hooks'
    /Users/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.2/lib/cocoapods/user_interface.rb:145:in `message'
    /Users/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.2/lib/cocoapods/installer.rb:884:in
    `run_podfile_post_install_hooks'
    /Users/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.2/lib/cocoapods/installer.rb:329:in `block …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods visual-studio-code flutter

5
推荐指数
2
解决办法
2万
查看次数

如何从 master 创建发布分支,不包括已经在 master 中合并的特定分支

我有分支 A、B、C、D,它们在我的master中合并,我想创建包含 A、C、D 的发布分支,并且我想排除 B 分支更改,以便我的发布分支仅包含 A、C、 B 分行。请你帮我解决这个问题。谢谢你。

git version-control xcode bitbucket

1
推荐指数
1
解决办法
98
查看次数