BuckSample icon indicating copy to clipboard operation
BuckSample copied to clipboard

Precompiled Library Issue (no such module)

Open edias opened this issue 5 years ago • 2 comments

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

edias avatar Jan 20 '20 04:01 edias

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

dfed avatar Jan 20 '20 19:01 dfed

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).

thedavidharris avatar Feb 11 '20 23:02 thedavidharris