Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompiled Library Issue (no such module) #129

Open
edias opened this issue Jan 20, 2020 · 2 comments
Open

Precompiled Library Issue (no such module) #129

edias opened this issue Jan 20, 2020 · 2 comments

Comments

@edias
Copy link

edias commented Jan 20, 2020

I'm trying to get a build of a precompiled library (https://cocoapods.org/pods/AdobeMobileSDK). It compiles normally but when I try to import on my Swift project I'm getting stuck on no such module 'AdobeMobileSDK'.

prebuilt_cxx_library(
  name = 'AdobeMobileSDK',
  visibility = ["PUBLIC"],
  static_lib = 'AdobeMobileSDK/AdobeMobileLibrary/libAdobeMobile.a',
  exported_headers = glob([
    'Target Support Files/AdobeMobileSDK/*.h',
    'AdobeMobileSDK/AdobeMobileLibrary/*.h',
  ])
)

I'm wondering me if somebody is familiar with this issue

@dfed
Copy link
Collaborator

dfed commented Jan 20, 2020

Can you reproduce in a branch on this repo? It'd be helpful for us to be able to reproduce the failure.

@thedavidharris
Copy link

thedavidharris commented Feb 11, 2020

prebuilt_cxx_library(
  name = 'ADBMobile',
  static_lib = 'AdobeMobileLibrary/AdobeMobileLibrary.a',
  preferred_linkage = 'static',
  header_dirs = [
      'AdobeMobileLibrary'
  ],
  visibility = [
    'PUBLIC'
  ]
)

seemed to work for us back a while ago, they don't ship module maps or anything so linking their SDK into any dynamic Swift framework was always weird. We've changed up the way we link most of our modules, I think we defined the module map ourselves to get this to work (had issues in Xcode as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants