DevMate / DevMateKit

Development and Distribution Assistance Platform for Mac Developers
https://devmate.com
21 stars 3 forks source link

Podspec is failing #1

Closed Dids closed 9 years ago

Dids commented 9 years ago
Downloading dependencies
Installing DevMateKit (1.1.1)
[!] /bin/bash -c 
set -e
RUBY_SCRIPT='copy_xpc_build_phase.rb'; if [ -f $RUBY_SCRIPT ]; then ruby $RUBY_SCRIPT 'DevMateKit.podspec'; fi

Current directory: /Users/Dids/Library/Caches/CocoaPods/Pods/Release/DevMateKit/1.1.1-35e88

Path to spec: DevMateKit.podspec

Installing from spec repo...
copy_xpc_build_phase.rb:27:in `+': no implicit conversion of nil into String (TypeError)

    from copy_xpc_build_phase.rb:27:in `<main>'
Dids commented 9 years ago

False alarm, it was probably a temporary network issue as it's working fine now. :)

Dids commented 9 years ago

Getting this again with version 1.1.3, no idea why. Using the latest version of Cocoapods.

Dids commented 9 years ago

Just ran it with --verbose and got the following:

 > Running prepare command
   $ /bin/bash -c  set -e RUBY_SCRIPT='copy_xpc_build_phase.rb'; if [ -f
   $RUBY_SCRIPT ]; then ruby $RUBY_SCRIPT 'DevMateKit.podspec'; fi
   copy_xpc_build_phase.rb:27:in `+': no implicit conversion of nil into String (TypeError)
    from copy_xpc_build_phase.rb:27:in `<main>'
   Current directory: /Users/Dids/Library/Caches/CocoaPods/Pods/Release/DevMateKit/1.1.3-89ba5
   Path to spec: DevMateKit.podspec
   Installing from spec repo...
<snip>
copy_xpc_build_phase.rb:27:in `+': no implicit conversion of nil into String (TypeError)
    from copy_xpc_build_phase.rb:27:in `<main>'

Could it be a path issue with the ruby script?

dimaty commented 9 years ago

Yes it is. But according to your log i can't understand why ruby script runs from Caches folder. Can you remove Caches folder and update pod again? You can use script https://gist.github.com/mbinna/4202236 for this.

Dids commented 9 years ago

Same error I'm afraid. I'm using the latest version of both OS X Yosemite and Xcode.

Ruby version: ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14] Cocoapods version: 0.37.2

dimaty commented 9 years ago

Ok. I've found steps that lead to the problem. It will be fixed in the near future.

Dids commented 9 years ago

Thanks! I'll link the framework manually in the meantime.

dimaty commented 9 years ago

Hi there. We've fixed this issue with new release v1.2. Could you, please, check it and inform us if it works? Before updating pods you need to update your Podfile with next lines

platform :osx, '10.7'
pod 'DevMateKit'

post_install do |installer|
    system("RUBY_SCRIPT='Pods/DevMateKit/copy_xpc_build_phase.rb'; if [ -f $RUBY_SCRIPT ]; then ruby $RUBY_SCRIPT '#{path}'; fi")
end
Dids commented 9 years ago

Seems to be working fine now, even without the post_install script part. I'm on a different Mac now though, so not sure if the issue exists on this specific Mac. I'll still close the issue though, thank you!