Quantcast
Channel: Active questions tagged cocoapods - Stack Overflow
Viewing all articles
Browse latest Browse all 1024

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

$
0
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


Viewing all articles
Browse latest Browse all 1024

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>