module.map创建文件
在文件中添加以下代码,

module CommonCrypto [system] {
  header "/usr/include/CommonCrypto/CommonCrypto.h"
  link "CommonCrypto"
  export *
}

桥接头文件注册和
在module.map中注册的搜索路径和文件路径
生成执行,错误。。。
ld: library not found for -lCommonCrypto for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不知道:(请帮忙!!

最佳答案

module CommonCrypto [system] {
   header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h"
   export *
}

https://ungacy.atlassian.net/wiki/display/IOS/Importing+CommonCrypto+in+a+Swift+framework

关于swift - Swift CommonCrypto添加错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37961188/

10-13 05:00