我正在组建一个私有podspec,专门在版本5.1.5中构建Lua,并添加了许多Lua。
以下podspec应该与我们的"手动放在一起" -code并为Lua提供openssl,socket和zlib支持。
{
"name": "Lua51",
"version": "5.1.5",
"summary": "The lua language (for embedding).",
"homepage": "https://github.com/qmx/lua",
"license": {
"type": "MIT"
},
"authors": {
"The Lua team": "team@lua.org"
},
"source": {
"http": "http://www.lua.org/ftp/lua-5.1.5.tar.gz",
"sha1": "b3882111ad02ecc6b972f8c1241647905cb2e3fc"
},
"platforms": {
"ios": "4.0",
"osx": "10.6"
},
"public_header_files": "src/*.h",
"source_files": "src/*.{c,h}",
"exclude_files": [
"src/lua.c",
"src/luac.c"
],
"requires_arc": false,
"subspecs": [
{
"name": "Socket",
"license": {
"file": "LICENSE"
},
"authors": {
"Bruno Silvestre": ""
},
"source": {
"git": "https://github.com/brunoos/luasocket.git",
"commit": "5edf093643cceb329392aec9606ab3988579b821"
},
"source_files": "src/*.*"
},
{
"name": "Sec",
"license": {
"file": "LICENSE"
},
"authors": {
"Bruno Silvestre": ""
},
"source": {
"git": "https://github.com/brunoos/luasec.git",
"tag": "luasec-0.5"
},
"source_files": [
"src/*.c",
"src/*.h",
"src/*.lua",
"src/luasocket/*.c",
"src/luasocket/*.h"
],
"public_header_files": [
"src/*.h",
"src/luasocket/*.h"
]
},
{
"name": "z",
"license": {
"type": "Info-ZIP"
},
"authors": {
"Kresten Krab Thorup": "krab@trifork.com"
},
"source": {
"git": "https://github.com/krestenkrab/luaz.git",
"commit": "ff51dbce77997d5e1c3fce206a7e5885bdf135a8"
},
"source_files": "src/*.*",
"exclude_files": []
}
]
}
但是在检查输出时:
pod spec lint Specs/Lua51/5.1.5/Lua51.podspec.json --verbose
我注意到应该下载和编译的.c文件不是。
例如" luaz" repo包含一个无处可见的luau.c文件。仅编译主规范(lua-5.1.5.tar.gz)中包含的.c文件,不编译任何子规范。
我已阅读并重读过去一天半的cocoapods指南,但这并没有帮助我弄清楚出了什么问题。
你能帮我弄清楚如何用我作为cocoapod添加来编译Lua吗?