Skip to content

[BUG] Errno::ENOENT - No such file or directory @ rb_sysopen - /Users/matthew/temp/mt6/ios/Pods/Local Podspecs/maplibre.podspec.json #249

@mattrltrent

Description

@mattrltrent

Platforms

All

Version of flutter-maplibre

0.2.0

Bug Description

This happens anytime I go to run the app. I'm completely unable to even test the library. Spent a day debugging. Seems to be a serious internal issue. Let me know if you need more info to debug. I really want to test this package; it looks awesome.

(base) matthew@mac ~/temp/mt6 % flutter run
Launching lib/main.dart on iPhone 15 in debug mode...
Running pod install...                                           1,429ms
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
      Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)

    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `maplibre` from `.symlinks/plugins/maplibre/ios`
    -> Fetching podspec for `pointer_interceptor_ios` from `.symlinks/plugins/pointer_interceptor_ios/ios`
    -> Fetching podspec for `url_launcher_ios` from `.symlinks/plugins/url_launcher_ios/ios`

    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_b_0_0.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/b/0/0/MapLibre/6.12.1/MapLibre.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/b/0/0/MapLibre/6.5.0/MapLibre.podspec.json exists! Returning local because checking is only performed in repo update

    Comparing resolved specification to the sandbox manifest
      A Flutter
      A MapLibre
      A maplibre
      A pointer_interceptor_ios
      A url_launcher_ios

    Downloading dependencies

    -> Installing Flutter (1.0.0)

    -> Installing MapLibre (6.5.0)
      > Copying MapLibre from `/Users/matthew/Library/Caches/CocoaPods/Pods/Release/MapLibre/6.5.0-0ebfa` to `Pods/MapLibre`

    -> Installing maplibre (0.0.1)

    -> Installing pointer_interceptor_ios (0.0.1)

    -> Installing url_launcher_ios (0.0.1)
      - Running pre install hooks
      - Running pre integrate hooks

    Generating Pods project
      - Creating Pods project
      - Installing files into Pods project
        - Adding source files
        - Adding frameworks
        - Adding libraries
        - Adding resources
        - Adding development pod helper files
        - Linking headers
      - Installing Pod Targets
        - Installing target `Flutter` iOS 12.0
        - Installing target `MapLibre` iOS 12.0
        - Installing target `maplibre` iOS 12.0
          - Generating module map file at `Pods/Target Support Files/maplibre/maplibre.modulemap`
          - Generating umbrella header at `Pods/Target Support Files/maplibre/maplibre-umbrella.h`
          - Generating Info.plist file at `Pods/Target Support Files/maplibre/maplibre-Info.plist`
          - Generating dummy source at `Pods/Target Support Files/maplibre/maplibre-dummy.m`
        - Installing target `pointer_interceptor_ios` iOS 12.0
          - Generating Info.plist file at `Pods/Target Support
          Files/pointer_interceptor_ios/ResourceBundle-pointer_interceptor_ios_privacy-pointer_interceptor_ios-Info.plist`
          - Generating module map file at `Pods/Target Support Files/pointer_interceptor_ios/pointer_interceptor_ios.modulemap`
          - Generating umbrella header at `Pods/Target Support Files/pointer_interceptor_ios/pointer_interceptor_ios-umbrella.h`
          - Generating Info.plist file at `Pods/Target Support Files/pointer_interceptor_ios/pointer_interceptor_ios-Info.plist`
          - Generating dummy source at `Pods/Target Support Files/pointer_interceptor_ios/pointer_interceptor_ios-dummy.m`
        - Installing target `url_launcher_ios` iOS 12.0
          - Generating Info.plist file at `Pods/Target Support Files/url_launcher_ios/ResourceBundle-url_launcher_ios_privacy-url_launcher_ios-Info.plist`
          - Generating module map file at `Pods/Target Support Files/url_launcher_ios/url_launcher_ios.modulemap`
          - Generating umbrella header at `Pods/Target Support Files/url_launcher_ios/url_launcher_ios-umbrella.h`
          - Generating Info.plist file at `Pods/Target Support Files/url_launcher_ios/url_launcher_ios-Info.plist`
          - Generating dummy source at `Pods/Target Support Files/url_launcher_ios/url_launcher_ios-dummy.m`
      - Installing Aggregate Targets
        - Installing target `Pods-Runner` iOS 12.0
          - Generating Info.plist file at `Pods/Target Support Files/Pods-Runner/Pods-Runner-Info.plist`
          - Generating module map file at `Pods/Target Support Files/Pods-Runner/Pods-Runner.modulemap`
          - Generating umbrella header at `Pods/Target Support Files/Pods-Runner/Pods-Runner-umbrella.h`
          - Generating dummy source at `Pods/Target Support Files/Pods-Runner/Pods-Runner-dummy.m`
        - Installing target `Pods-RunnerTests` iOS 12.0
          - Generating Info.plist file at `Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests-Info.plist`
          - Generating module map file at `Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests.modulemap`
          - Generating umbrella header at `Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests-umbrella.h`
          - Generating dummy source at `Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests-dummy.m`
      - Integrating targets

    Integrating target `MapLibre`
        Adding Build Phase '[CP] Copy XCFrameworks' to project.
      - Generating deterministic UUIDs
      - Stabilizing target UUIDs
      - Running post install hooks
        - Podfile
      - Writing Xcode project file to `Pods/Pods.xcodeproj`
      Cleaning up sandbox directory

    Integrating client project

    Integrating target `Pods-Runner` (`Runner.xcodeproj` project)

    Integrating target `Pods-RunnerTests` (`Runner.xcodeproj` project)
      - Running post integrate hooks
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update

    ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

    ### Command

    ```
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod install --verbose
    ```

    ### Report

    * What did you do?

    * What did you expect to happen?

    * What happened instead?


    ### Stack

    ```
       CocoaPods : 1.16.2
            Ruby : ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [arm64-darwin24]
        RubyGems : 3.6.3
            Host : macOS 15.1.1 (24B91)
           Xcode : 16.2 (16C5032a)
             Git : git version 2.39.5 (Apple Git-154)
    Ruby lib dir : /opt/homebrew/Cellar/ruby/3.4.2/lib
    Repositories : trunk - CDN - https://cdn.cocoapods.org/
    ```

    ### Plugins

    ```
    cocoapods-deintegrate : 1.0.5
    cocoapods-plugins     : 1.0.0
    cocoapods-search      : 1.0.1
    cocoapods-trunk       : 1.6.0
    cocoapods-try         : 1.2.0
    ```

    ### Podfile

    ```ruby
    # Uncomment this line to define a global platform for your project
    platform :ios, '12.0'

    # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
    ENV['COCOAPODS_DISABLE_STATS'] = 'true'

    project 'Runner', {
      'Debug' => :debug,
      'Profile' => :release,
      'Release' => :release,
    }

    def flutter_root
      generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
      unless File.exist?(generated_xcode_build_settings_path)
        raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
      end

      File.foreach(generated_xcode_build_settings_path) do |line|
        matches = line.match(/FLUTTER_ROOT\=(.*)/)
        return matches[1].strip if matches
      end
      raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
    end

    require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

    flutter_ios_podfile_setup

    target 'Runner' do
      use_frameworks!
      use_modular_headers!

      flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
      target 'RunnerTests' do
        inherit! :search_paths
      end
    end

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
      end
    end
    ```

    ### Error

    ```
    Errno::ENOENT - No such file or directory @ rb_sysopen - /Users/matthew/temp/mt6/ios/Pods/Local Podspecs/maplibre.podspec.json
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification.rb:690:in 'IO.read'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification.rb:690:in 'Pod::Specification#checksum'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/lockfile.rb:543:in 'block in Pod::Lockfile.generate_checksums'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/lockfile.rb:542:in 'Array#each'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/lockfile.rb:542:in 'Pod::Lockfile.generate_checksums'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/lockfile.rb:428:in 'Pod::Lockfile.generate'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:871:in 'Pod::Installer#generate_lockfile'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:879:in 'Pod::Installer#write_lockfiles'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:172:in 'Pod::Installer#install!'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:52:in 'Pod::Command::Install#run'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in 'CLAide::Command.run'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in 'Pod::Command.run'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/bin/pod:55:in '<top (required)>'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in 'Kernel#load'
    /opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in '<main>'
    ```

    ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

    [!] Oh no, an error occurred.

    Search for existing GitHub issues similar to yours:
    https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-+%2FUsers%2Fmatthew%2Ftemp%2Fmt6%2Fios%2FPods%2FLocal+Podspecs%2Fmaplibre.pod
    spec.json&type=Issues

    If none exists, create a ticket, with the template displayed above, on:
    https://github.com/CocoaPods/CocoaPods/issues/new

    Be sure to first read the contributing guide for details on how to properly submit a ticket:
    https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

    Don't forget to anonymize any private data!

    Looking for related issues on cocoapods/cocoapods...
    Found no similar issues. To create a new issue, please visit:
    https://github.com/cocoapods/cocoapods/issues/new

Steps to Reproduce

  1. flutter create <app_name>
  2. flutter pub add maplibre
  3. Copy the example Flutter map from here
  4. BOOM

Expected Results

Flutter app launching.

Actual Results

Huge error message. Crash.

Code Sample

import 'package:flutter/material.dart';

import 'package:maplibre/maplibre.dart';

class MapScreen extends StatefulWidget {
  const MapScreen({super.key});

  @override
  State<MapScreen> createState() => MapScreenState();
}

class MapScreenState extends State<MapScreen> {
  MapController? _mapController;

  void _onMapCreated(MapController controller) {
    _mapController = controller;
    // Use _mapController here if needed
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: MapLibreMap(
        onMapCreated: (controller) {
          // Don't add additional annotations here,
          // wait for the onStyleLoadedCallback.
          _mapController = controller;
        },
        onStyleLoaded: (style) {
          debugPrint('Map loaded 😎');
        },
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions