React-native-ble-plx: Tutorial failing to build with 'modulemap'

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

Expected

Xcode should build the project clearly.

Current

Get Error :

<unknown>:0: error: module map file '/Users/me/Library/Developer/Xcode/DerivedData/bleplx-gevvblkqzrxbjediwbytdxcmpufo/Build/Products/Debug-iphonesimulator/react-native-ble-plx-swift/react_native_ble_plx_swift.modulemap' not found
<unknown>:0: error: module map file '/Users/me/Library/Developer/Xcode/DerivedData/bleplx-gevvblkqzrxbjediwbytdxcmpufo/Build/Products/Debug-iphonesimulator/react-native-ble-plx-swift/react_native_ble_plx_swift.modulemap' not found
2 errors generated.
<unknown>:0: error: failed to emit precompiled header '/Users/me/Library/Developer/Xcode/DerivedData/bleplx-gevvblkqzrxbjediwbytdxcmpufo/Build/Intermediates.noindex/PrecompiledHeaders/bleplx-Bridging-Header-swift_YXQHX0LCXQ6A-clang_1Y5VOCRBO1JAC.pch' for bridging header '/Users/me/Desktop/bleplx/ios/bleplx-Bridging-Header.h'

I installed it according to the manual and a problem occurred.
I don't know how to fix it.
How can i solve this problem?

question stale

Most helpful comment

i just spent a couple nights on trying to figure this out. after you follow the instructions open project.xcworkspace and build from that not the xcodeproj. worked for me after that
@yslee9311

All 10 comments

i just spent a couple nights on trying to figure this out. after you follow the instructions open project.xcworkspace and build from that not the xcodeproj. worked for me after that
@yslee9311

@chazguerrero Did you see any changes in your project's files after doing your last step? I would like to know if something changed.

@Cierpliwy I didn鈥檛, tonight I can try a new project with the same steps and let you know.

Getting the same problem with these dependencies:

{
    "react": "16.8.6",
    "react-native": "0.60.4",
    "react-native-ble-plx": "^1.0.3",
    "react-native-gesture-handler": "^1.4.1",
    "react-native-json-tree": "^1.2.0",
    "react-navigation": "^3.12.1"
}

Make sure to go to the ios folder and run pod update inside it. Remember to open the workspace file in the XCode (not a project). Do full clean/build cycle.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Make sure to go to the ios folder and run pod update inside it. Remember to open the workspace file in the XCode (not a project). Do full clean/build cycle.

I'm just going to add on to this point here that if you are running using xcodebuild, you also need to target the workspace -workspace instead of -project.

For me also it worked by pointing out workspace instead of project.
http://helpinterview.com/?q=content/fatal-error-module-map-file-not-found-xcode

why should u open the .xcworkspace instead of the .xcproj

why should u open the .xcworkspace instead of the .xcproj

Cocoapods

Was this page helpful?
0 / 5 - 0 ratings