Issue #480

Use modulemap

modulemap approach

I use modulemap in my wrapper around CommonCrypto,

For those getting header not found, please take a look or run xcode-select --install

  • Make a folder CCommonCrypto containing module.modulemap

        module CCommonCrypto {
          header "/usr/include/CommonCrypto/CommonCrypto.h"
          export *
  • Go to Built Settings -> Import Paths


Cocoapods with modulemap approach

public header approach

Cocoapods with public header approach

          s.libraries        = "xml2"
          s.xcconfig         = { 'HEADER_SEARCH_PATHS' =>           '$(SDKROOT)/usr/include/libxml2', 'OTHER_LDFLAGS' => '-lxml2' }

🐝 Interesting related posts

CommonCrypto from Xcode 10

From Xcode 10, we can just

import CommonCrypto