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.

Tutorial failing to build with 'modulemap'

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
chazguerrerocommented, Aug 20, 2019

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

4reactions
geganacommented, Jan 31, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial failing to build with 'modulemap' · Issue #523 - GitHub
Make sure to go to the ios folder and run pod update inside it. Remember to open the workspace file in the XCode...
Read more >
How to use static library and module map file with Swift?
1 Answer 1 · Configure SWIFT_INCLUDE_PATHS – a list of paths to be searched by the Swift compiler for additional Swift modules. This...
Read more >
Error building objective-c module | Apple Developer Forums
The module.modulemap file looks like this: ... If bar.h includes foo (e.g. #import "Foo.h"), building the app fails with the following error:
Read more >
[Solved]-`YogaKit.modulemap not found` prevents iOS build
Coding example for the question `YogaKit.modulemap not found` prevents iOS ... native ios build fails with error - 'EXUpdates/EXUpdatesAppController.h' file ...
Read more >
Modules — Clang 16.0.0git documentation
Modules provide an alternative, simpler way to use software libraries that provides better compile-time scalability and eliminates many of the problems ...
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