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.

ObjcLibrary modulemap generation

See original GitHub issue

Please provide the following information. The more we know about your system and use case, the more easily and likely we can help.

Description of the problem / feature request / question:

Question: I’m currently exploring adding modulemaps for static libraries I build using objc_library. There is a module_map key in ObjcProvider and it’s not obvious from the documentation if modulemap files are generated by Bazel if enable_modules is enabled.

Is this currently supported or do I need to write a custom rule to generate a correct modulemap?

If possible, provide a minimal example to reproduce the problem:

N/A

Environment info

  • Operating System: macOS Sierra

  • Bazel version (output of bazel info release): release 0.5.0rc8

Have you found anything relevant by searching the web?

(e.g. StackOverflow answers, GitHub issues, email threads on the bazel-discuss Google group)

I have searched the documentation, stack overflow and bazel-discuss and haven’t found anything relevant. Also, I have tried to look through the ObjC*.java files to see if I could find any code that generates this file.

Anything else, information or logs or outputs that would be helpful?

(If they are large, please upload as attachment or provide link).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
rahul-malikcommented, Oct 15, 2019

We just ended up writing a rule to create a module map and pass it as an ObjCProvider

0reactions
jmmvcommented, May 14, 2020

Let’s assume no. We can always reopen this if told otherwise!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Framework internal ModuleMap leaks… - Apple Developer
I have a "Objective-C" Framework that is mostly Swift based except for the primary headerfile. Because you cannot use a bridging header within...
Read more >
Understanding Objective-C Modules - Sam Symons
Here is the generated module map for a custom framework target which ... Xcode comes with great support for automatically generating modules ...
Read more >
Adding Module.Modulemap Causes Cycle In Dependencies
The LLVM compiler is the next-generation compiler introduced in Xcode 3.2 for Snow Leopard based error: redefinition of module 'libcmark' module libcmark.
Read more >
LegacyCompilationSupport.java example - Javatips.net
This class describes the usage of LegacyCompilationSupport.java.
Read more >
Kotlin Language Documentation - Amazon S3
Kotlin has now the option of generating Java 8 bytecode ( -jvm-target 1.8 ... Some libraries have proper module.modulemap or module.map les in...
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