Swift CommonCrypto 添加错误
Swift CommonCrypto Adding Error
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)
我不知道:(求帮助!!
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
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)
我不知道:(求帮助!!
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