question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'react_native_geolocation_service.modulemap' not found

See original GitHub issue

I have already reviewed existing bugs for this repository, with regards to this issue, as well as of course trying multiple other resolutions from other sources.

My issue is that when I go to build my React Native (0.63.3) project I receive the following error from XCode (12.5).

I am using version 5.3.0-beta.1 of this library.

<unknown>:0: error: module map file '/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx-ecleklmmhmlvkgabouhmdsqprivh/Build/Products/Debug-iphonesimulator/react-native-geolocation-service/react_native_geolocation_service.modulemap' not found

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

23reactions
Risovascommented, Feb 7, 2022

Faced this issue today, running on a M1 Mac, react-native@0.67.2 and react-native-geolocation-service@5.2.0. Doing as @rossjohnsonMP said fixed it. Already had platform :ios, ‘11.0’ set on Podfile, but there were still some references to 10.0 on XCode files. On XCode, I selected the target I wanted on the project navigator, then Build Settings > Deployment > IOS Deployment Target > Changed it to 11.0, boom, it worked

12reactions
gaspopcommented, Nov 27, 2021

If it helps anyone, I had the same problem and I got it to build by adding ‘arm64’ to ‘Excluded Architectures’ under Build Settings, both in the main project and for the pod. I’m using react-native 0.66.0, on M1-machine in Xcode 13.

Build settings for the app under Targets (setting it under Project didn’t seem to help):

image

Modified post_install in my Podfile. Since multiple pods were causing the ‘modulemap not found’-error, this makes sure all of them adds ‘arm64’ to ‘Excluded Architectures’:

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

    # Added code below
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      end
    end
  end

Run ‘pod install’

Note: I don’t know if it’s a good idea to apply these settings to pods where it’s not needed, but I haven’t noticed any issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xcode error on debug build with existing project. (M1 chip)
... /Debug-iphonesimulator/react-native-geolocation-service/react_native_geolocation_service.modulemap' not found :0: error: module map file ...
Read more >
react-native-geolocation-service - npm
This library is created in an attempt to fix the location timeout issue on android with the react-native's current implementation of Geolocation ......
Read more >
module map file '/Users/hosein/Lib… | Apple Developer Forums
I was able to create a brand new React Native project and run it in a simulator no problem so it seems to...
Read more >
react-native-geolocation-service - npm package - Snyk
We found a way for you to contribute to the project! Looks like react-native-geolocation-service is missing a security policy.
Read more >
Error when building project : r/reactnative - Reddit
... /Products/Debug-iphoneos/YogaKit/YogaKit.modulemap' not found ... r/reactnative - Building a real-time bidding system with Socket.io and.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found