Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/108.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何创建可以通过swift中的cocoapods安装的pods_Ios_Swift_Github_Cocoapods - Fatal编程技术网

Ios 如何创建可以通过swift中的cocoapods安装的pods

Ios 如何创建可以通过swift中的cocoapods安装的pods,ios,swift,github,cocoapods,Ios,Swift,Github,Cocoapods,事实上,我已经创建了pod,也在cocoapods上发表了文章,但我来这里是为了解决这个问题,我想创建一个框架,而不是开放代码 所以,当开发者安装我的pods时,开发者可以使用我的代码,但看不到我的代码,也不能更改代码中的任何内容 安装的pod看起来只是框架开发人员看不到代码 正如我所看到的关于我的问题的一个教程,但有一个步骤,我们必须创建zip,然后上传到git,我遵循它,但在这一步骤之后,我无法配置.podspec文件,因为从zip命令找不到其他可用的文件 我提到的那个教程的网址也请看 我

事实上,我已经创建了pod,也在cocoapods上发表了文章,但我来这里是为了解决这个问题,我想创建一个框架,而不是开放代码

所以,当开发者安装我的pods时,开发者可以使用我的代码,但看不到我的代码,也不能更改代码中的任何内容

安装的pod看起来只是框架开发人员看不到代码

正如我所看到的关于我的问题的一个教程,但有一个步骤,我们必须创建zip,然后上传到git,我遵循它,但在这一步骤之后,我无法配置.podspec文件,因为从zip命令找不到其他可用的文件

我提到的那个教程的网址也请看

我在这里还向你们展示了我在检查终端问题时遇到的错误

- WARN  | source: The version should be included in the Git tag.
- ERROR | [iOS] file patterns: The `vendored_frameworks` pattern did not match any file.
- WARN  | [iOS] license: Unable to find a license file
- NOTE  | xcodebuild:  note: Using new build system
- NOTE  | [iOS] xcodebuild:  note: Planning build
- NOTE  | [iOS] xcodebuild:  note: Constructing build description
- NOTE  | [iOS] xcodebuild:  note: Execution policy exception registration f

提前谢谢。

在podspec set tag中,如果没有设置,git中的分支上应该有相同的标记-
git tag 1.0.6
我已经将标记设置为我的分支名称。source={:git=>'',:tag=>'master'}@alexandrkolesnik现在你必须将标记'master'添加到分支上,但使用字符串是个坏主意,查看我在我的存储库中创建的分支并仅在该分支中上载库的手册@亚历山德科尔斯尼克