最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter iOS pod install Issue with Ruby: undefined method 'map' for nil:NilClass - Stack Overflow

programmeradmin1浏览0评论

I’m running into an issue while executing pod install in my Flutter iOS project. After upgrading Ruby from 2.6.0 to 3.1.0 using rbenv, I am still stuck with the following errors:

Log:

Nanaimo::Reader::ParseError - [!] Invalid character ";" in unquoted string
   #  -------------------------------------------
   #                                    "@executable_path/Frameworks",
   #                            );
376>                            PRODUCT_BUNDLE_IDENTIFIER = ;
                                                            ^
   #                            PRODUCT_NAME = "$(TARGET_NAME)";
   #                            SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
   #  ------------------------------------------

...

/Users/apple/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/nanaimo-0.4.0/lib/nanaimo/reader.rb:284:in `raise_parser_error'
/Users/apple/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/nanaimo-0.4.0/lib/nanaimo/reader.rb:150:in `parse_string'


Searching for inspections failed: undefined method `map' for nil:NilClass

      report.issues = results['items'].map { |item| Issue.new(item) }
                                      ^^^^

Environment:

  • 1.Flutter Version: 3.24.4
  • macOS Version: 13.7.3
  • Ruby Version: 3.1.0 (upgraded via rbenv from 2.6.x)
  • CocoaPods Version: Latest

Steps Taken:

  • flutter clean
  • pod deintegrate
  • Removed CocoaPods cache
  • Uninstalled and reinstalled CocoaPods
  • Deleted Generated.xcconfig and ran flutter pub get

Despite following these steps, I’m still encountering the issue. It seems to be related to both the map method error and the invalid character issue in the PRODUCT_BUNDLE_IDENTIFIER

发布评论

评论列表(0)

  1. 暂无评论