Closed zhuamaodeyu closed 2 years ago
Take a look at my profile. I made a swift wrapper for libplist. Its called CPlist. I do not plan to maintain it, but you can fork it. Your problem is, that you must not include C++ header files in your swift module. Swift only supports plain C. That means, symlink plist.h to the include folder of the swift module and ignore all other headers. Only compile the C files, not the C++ files.
@nikias I think you can close this issue.
@zhuamaodeyu see @Schlaubischlump's response.
I am creating a private swift pods lib,incloud libplist, I need to initialize libplist as a module, but i create modulemap file, is not work,
error: 'cstddef' file not found
Steps:
run
pod lib create XXX
, swift version.build libplist to static library
copy static library to pod
create module.modulemap.
build example
result. failed: 'cstddef' file not found