cocoapods提交私有库遇到的问题

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提交私有库遇到的问题)