Pod install problem - TeamCity

Hi,

I'm trying to generate an automatic build for an iOS app using TeamCity. The steps to build, create an ipa file and upload to Hockey are all fine. I've got some errors in the initial step to install the external libraries using cocoapods. In particular when run 'pod install' command, I've got the following log

Step 1/4: CocoaPods install (Command Line)
[16:24:59][Step 1/4] Starting: /Users/qa/Documents/teamCity_temp/agentTmp/custom_script7379992463628995512
[16:24:59][Step 1/4] in directory: /Users/qa/Documents/teamCity_work/af426379c66b2e5b
[16:24:59][Step 1/4] /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods/config.rb:24:in `join': no implicit conversion of nil into String (TypeError)
[16:24:59][Step 1/4] from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods/config.rb:24:in `<class:Config>'
[16:24:59][Step 1/4] [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
[16:24:59][Step 1/4] from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods/config.rb:4:in `<module:Pod>'
[16:24:59][Step 1/4] from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods/config.rb:1:in `<top (required)>'
[16:24:59][Step 1/4] possible solutions. [0m
[16:24:59][Step 1/4] from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[16:24:59][Step 1/4]
[16:24:59][Step 1/4] from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[16:24:59][Step 1/4] from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods.rb:20:in `<module:Pod>'
[16:24:59][Step 1/4] from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods.rb:15:in `<top (required)>'
[16:24:59][Step 1/4] from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[16:24:59][Step 1/4] from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[16:24:59][Step 1/4] from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/bin/pod:32:in `<top (required)>'
[16:24:59][Step 1/4] from /usr/bin/pod:23:in `load'
[16:24:59][Step 1/4] from /usr/bin/pod:23:in `<main>'
[16:24:59][Step 1/4] Process exited with code 1
[16:24:59][Step 1/4] Step CocoaPods install (Command Line) failed


Any suggestions?
Thanks
1 comment
Comment actions Permalink

Hi,

Does "pod install" command run successfully on the same machine as the TeamCity agent and under the same user that the agent is running?
Also please have a look at this feature request, probably it will be helpful.

0

Please sign in to leave a comment.