module.map创建文件
在文件中添加以下代码
module CommonCrypto [system] {
header "/usr/include/CommonCrypto/CommonCrypto.h"
link "CommonCrypto"
export *
}
Bridging-Header文件注册和
在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)
我不知道:(请求帮助请!!
答案 0 :(得分:0)
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