React-native-ble-plx: react_native_ble_plx_swift.modulemap' not found

Created on 10 Aug 2018  路  12Comments  路  Source: Polidea/react-native-ble-plx

I keep getting this error when building in xcode:

:0: error: module map file '/Users/.../Library/Developer/Xcode/DerivedData/...-ddineicerhcwzmemgxqivvkqammg/Build/Products/Debug-iphonesimulator/react-native-ble-plx-swift/react_native_ble_plx_swift.modulemap' not found

as well as:

:0: error: failed to emit precompiled header '/Users/.../Library/Developer/Xcode/DerivedData/...-ddineicerhcwzmemgxqivvkqammg/Build/Intermediates.noindex/PrecompiledHeaders/...-Bridging-Header-swift_1YY2538E66OCR-clang_11Y2ANE0GION0.pch' for bridging header '/Users/.../.../.../ios/...-Bridging-Header.h'

I'm new to working with xcode, which may be the problem, I come from a javascript background.

All 12 comments

Even I am facing the same issue. Any help will be appreciated.

By using a pure React Native build everything worked fine, the above was when using Expo.

Closing as the author solved the issue.

My xcode build works fine, but I get the above error when building with fastlane.

<unknown>:0: error: module map file '/Users/../Library/Developer/Xcode/DerivedData/AppName-hcfeypxdnfwftnexobelztcqblci/Build/Intermediates.noindex/ArchiveIntermediates/AppName (staging)/BuildProductsPath/Release-iphoneos/react-native-ble-plx-swift/react_native_ble_plx_swift.modulemap' not found
<unknown>:0: error: module map file '/Users/../Library/Developer/Xcode/DerivedData/AppName-hcfeypxdnfwftnexobelztcqblci/Build/Intermediates.noindex/ArchiveIntermediates/AppName (staging)/BuildProductsPath/Release-iphoneos/react-native-ble-plx-swift/react_native_ble_plx_swift.modulemap' not found
<unknown>:0: error: failed to emit precompiled header '/Users/../Library/Developer/Xcode/DerivedData/AppName-hcfeypxdnfwftnexobelztcqblci/Build/Intermediates.noindex/ArchiveIntermediates/AppName (staging)/PrecompiledHeaders/AppName-Bridging-Header-swift_19EHT42NFAN8T-clang_38ICGW5AVBWY.pch' for bridging header '/Users/../Projects/appname/client/ios/AppName-Bridging-Header.h'

@TrebuhD did you by any chance manage to solve your issue?

Currently having issues with this very thing. Would be nice to know the solution OP found!

Why is this closed? This is happening without Expo.

still having this issue!

?

I'm having this issue with a bare workflow Expo project. It's running fine when doing react-native run-ios, but if I try to run from xCode, I get these errors.

Edit: I fixed it for my case. I think the problem was 1) I was opening the .xcodeproj file instead of the .xcworkspace file in my /ios folder, and 2) my Podfile:

  use_unimodules!

  pod 'react-native-ble-plx', :path => '../node_modules/react-native-ble-plx'
  pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'

I changed it to this:

  pod 'react-native-ble-plx', :path => '../node_modules/react-native-ble-plx'
  pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'

  use_unimodules!

And then in the ios folder ran pod update from the terminal, ran on XCode, and it worked. I'm not sure if the Podfile change did anything since I'm not familiar with how it works, but figured I'd drop it here in case it makes a difference.

open .xcworkspace insted of .xcodeproj works for me.

I have the same issue. any one found solution?

Was this page helpful?
0 / 5 - 0 ratings