子规范中带有源的Podspec无法编译

Cod*_*per 5 ios cocoapods podspec subspec

我聚集了一个专用的podspec来专门在5.1.5版中构建Lua,并对Lua进行了许多补充。

下面的podspec应该对应于我们的“手动组合”代码,并为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": []
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

但是,在检查以下内容的输出时:

pod spec lint Specs/Lua51/5.1.5/Lua51.podspec.json --verbose
Run Code Online (Sandbox Code Playgroud)

我注意到应该下载并编译的.c文件不是。

例如,“ luaz”存储库包含一个luau.c文件,该文件无处可见。仅会编译主规范(lua-5.1.5.tar.gz)中包含的.c文件,而不会编译任何子规范中的任何.c文件。

在过去一天半的时间里,我已经阅读并重新阅读了可可足目指南,但这并没有帮助我弄清楚哪里出了问题。

您能帮我弄清楚如何用我的添加物作为Coapapod编译Lua吗?