简体   繁体   English

XCode无法识别“ pod键”

[英]XCode doesn't recognize `pod keys`

Here's my setup 这是我的设置

Env: ENV:

  • Mac 10.11.6 Mac 10.11.6
  • Gem 2.4.8 宝石2.4.8

Gemfile: 的Gemfile:

source 'https://rubygems.org'

gem 'cocoapods', '~> 1.1.1'
gem 'cocoapods-keys', '~> 1.7.0'
gem 'fastlane'

Installed Cocoapods-keys using: 使用以下命令安装的Cocoapods键

gem install cocoapods-keys

Added Fabric Run Script: 添加了Fabric运行脚本:

"${PODS_ROOT}/Fabric/iOS/Fabric.framework/run" `pod keys get FabricAPIKey` `pod keys get FabricAPISecret`

Errors: 错误:

[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8
[0m
~/Development/Projects/ABC/raven/Pods/Fabric/iOS/Fabric.framework/run: eval: line 18: syntax error near unexpected token `('
~/Development/Projects/ABC/raven/Pods/Fabric/iOS/Fabric.framework/run: eval: line 18: `"~/Development/Projects/ABC/raven/Pods/Fabric/iOS/Fabric.framework/uploadDSYM" [!] Unknown command: `keys` Did you mean: repo Usage: $ pod COMMAND CocoaPods, the Cocoa library package manager. Commands: + cache Manipulate the CocoaPods cache + init Generate a Podfile for the current directory. + install Install project dependencies to Podfile.lock versions + ipc Inter-process communication + lib Develop pods + list List pods + outdated Show outdated project dependencies + plugins Show available CocoaPods plugins + repo Manage spec-repositories + search Search for pods. + setup Setup the CocoaPods environment + spec Manage pod specs + trunk Interact with the CocoaPods API (e.g. publishing new specs) + try Try a Pod! + update Update outdated project dependencies and create new Podfile.lock Options: --silent Show nothing --version Show the version of the tool --verbose Show more debugging information --no-ansi Show output without ANSI codes --help Show help banner of specified command [!] Unknown command: `keys` Did you mean: repo Usage: $ pod COMMAND CocoaPods, the Cocoa library package manager. Commands: + cache Manipulate the CocoaPods cache + init Generate a Podfile for the current directory. + install Install project dependencies to Podfile.lock versions + ipc Inter-process communication + lib Develop pods + list List pods + outdated Show outdated project dependencies + plugins Show available CocoaPods plugins + repo Manage spec-repositories + search Search for pods. + setup Setup the CocoaPods environment + spec Manage pod specs + trunk Interact with the CocoaPods API (e.g. publishing new specs) + try Try a Pod! + update Update outdated project dependencies and create new Podfile.lock Options: --silent Show nothing --version Show the version of the tool --verbose Show more debugging information --no-ansi Show output without ANSI codes --help Show help banner of specified command validate run-script'
Command /bin/sh failed with exit code 1

Fixes that I've tried that didn't work: 我尝试过的修复不起作用:

  • added export LANG=en_US.UTF-8 to ~/.profile, ~/.bash_profile 在〜/ .profile,〜/ .bash_profile中添加了export LANG=en_US.UTF-8
  • export LANG=en_US.UTF-8 using this 使用导出LANG = en_US.UTF-8
  • fix permission using this 使用修复权限
  • deleted /Pods, Pod.lock and ran bundle install and bundle exec pod install 删除/Pods、Pod.lock并运行bundle installbundle exec pod install

Things that works: 起作用的东西:

  • On Terminal, run pod keys 在终端上,运行pod keys

So apparently pod keys runs well on my mac, but XCode doesn't recognise it, any thoughts are greatly appreciated! 因此,很明显pod keys在我的Mac上运行良好,但是XCode无法识别它,任何想法都将不胜感激!

您是否尝试在脚本中bundle exec pod install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM