美文网首页
cocoapods提交私有库遇到的问题

cocoapods提交私有库遇到的问题

作者: 1seven | 来源:发表于2017-08-01 09:33 被阅读428次

1.cocoapods通过验证后如果是第一次提交需要注册一下

pod trunk register 邮箱名 'name' --description='macbook air'

邮箱验证完继续提交

2.依赖错误

- ERROR | [iOS] unknown: Encountered an unknown error (The 'Pods-App' target has transitive dependencies that include static binaries

因为依赖库包含了.a静态s库造成的,导致验证不能通过.可以使--use-libraries来通过验证

3.警告

非语法错误是不给出错误原因的,可以使--verbose来查看详细的验证错误帮助定位错误

如果允许警告的话可--allow-warnings

4.Pod  update报错:

admindeMac-mini-4:XXX admin$ pod update

Update all pods

Setting up CocoaPods master repo

$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress

Cloning into 'master'...

fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': Could not resolve proxy: XXX

[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.

You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.

原因:设置了代理

解决办法:

1.查看当前设置的代理git config --global http.proxy

2.取消代理git config --global --unset http.proxy

5.Pod update报一堆openssl的警告

解决办法:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

或者报错:

异常问题

1、xcrun simctl install booted /path/xxx.app

2、xcrun: error: unable to find utility “simctl”, not a developer tool or in PATH`

xcrun simctl install booted /path/xxx.app

3、xcrun: error: active developer path (“/Volumes/Xcode/Xcode.app/Contents/Developer”) does not exist, usexcode-select –switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or seeman xcode-select)

No devices are booted`

解决:方法同上

相关文章

  • cocoapods提交私有库遇到的问题

    1.cocoapods通过验证后如果是第一次提交需要注册一下 pod trunk register 邮箱名 'na...

  • CocoaPods使用总结

    CocoaPods 公共库的创建CocoaPods 本地私有库的创建(模板创建方式)CocoaPods 本地私有库...

  • CocoaPods私有库走过的坑

    CocoaPods创建私有库遇到的坑 1、私有库依赖自己仓库的私有库执行pod spec lint时,需要在pod...

  • CocoaPods公有库

    最近在学习CocoaPods公有库、本地私有库、远程私有库,其中遇到了许多问题,怕过后又忘记了,所以记录下来...

  • The 'Pods-App' target ha

    原文CocoaPods建立自己的Podspec(三)Cocoapods使用私有库中遇到的坑 The 'Pods-A...

  • cocoaPods制作私有库遇到的问题

    您的配置中指定要合并远程的引用 'refs/heads/master 问题原因:我发版出现这个问题的表面原因是,私...

  • pod私有库

    接着上两篇文章CocoaPods公有库和CocoaPods本地私有库,这篇就来讲解下CocoaPods远程私有库,...

  • 使用Cocoapods创建私有podspec

    参考文章: CocoaPods私有库配置笔记 使用Cocoapods创建私有podspec cocoapods应用...

  • target has transitive dependenci

    遇到这个问题;说明你建的私有pod的依赖(dependency)含有静态库。这个是Cocoapods的局限。解决方...

  • cocoapods提交自己库遇到的问题

    前几天将自己写的开源库 (JYFORM) 发布到了cocoapods上,因为第一次搞,所以碰到了N多问题,在这里简...

网友评论

      本文标题:cocoapods提交私有库遇到的问题

      本文链接:https://www.haomeiwen.com/subject/vuodlxtx.html