module-map

Non-modular headers of OpenSSL library when using modulemap for Swift framework

Deadly 提交于 2020-05-29 04:23:30
问题 I'm trying to link statically OpenSSL library to my Swift framework, using XCode. Most approaches mentioned online are not correct, because they suggest using Import path ( SWIFT_INCLUDE_PATHS ). As a result, the framework binary is locked to a specific location in the file system and the binary itself is not portable. While this is not end of the world, I'd still like to be able to distribute the binary via Carthage for example and following above-mentioned approach doesn't enable that. I

Failing to integrate a Swift and Objective-C framework

痞子三分冷 提交于 2019-12-11 07:58:23
问题 I'm trying to add swift support to an existing Objective-C based framework and I'm running into compilation errors when integrating the framework into the app (the framework alone builds fine). My goal is to be able to access from swift, Objective-C project headers and to achieve this I've been using a modulemap file to list all the project files as indicated for example here: http://nsomar.com/project-and-private-headers-in-a-swift-and-objective-c-framework/ My directory structure is as

Swift Project: “Missing Required Modules” when import a modular framework

你。 提交于 2019-11-30 09:38:41
Setup I create a swift framework which include C library (CommonCrypto) and a Objective C file. There is no bridge-header in swift project. So I create a module.modulemap to import CommonCrypto and Objective-C file into my swift framework. module.modulemap content: Here is the module.modulemap sample link: Importing CommonCrypto in a swift framework In project settings, adding modulus.modulusmap path to swift compile So, in my swift framework, everything works fine. I can use modulus like this Problem shows Archive the modular framework and export as a built products. In my swift sample

Swift Project: “Missing Required Modules” when import a modular framework

拥有回忆 提交于 2019-11-29 14:12:11
问题 Setup I create a swift framework which include C library (CommonCrypto) and a Objective C file. There is no bridge-header in swift project. So I create a module.modulemap to import CommonCrypto and Objective-C file into my swift framework. module.modulemap content: Here is the module.modulemap sample link:Importing CommonCrypto in a swift framework In project settings, adding modulus.modulusmap path to swift compile So, in my swift framework, everything works fine. I can use modulus like this