BuckSample
BuckSample copied to clipboard
Precompiled Library Issue (no such module)
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
Can you reproduce in a branch on this repo? It'd be helpful for us to be able to reproduce the failure.
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).