Crash on Xcodeproj Acknowledgements plist generation #675

Closed
xslim opened this Issue Dec 4, 2012 · 9 comments

Projects

None yet

3 participants

@xslim

Report

  • What did you do? pod install

Stack

   CocoaPods : 0.16.0
        Ruby : ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.8.2 (12C60)
       Xcode : 4.5.2 (4G2008a)
Ruby lib dir : /Users/slim/.rvm/rubies/ruby-1.9.3-p194/lib
Repositories : master - git@github.com:CocoaPods/Specs.git @ 13dc1fc799301c4f465d4ac97a75433d2762ceb8
               xaton - git@github.com:Xaton/CocoaPodSpecs.git @ d2c2542b2df620ea135cc75784c56e40499219db

Podfile

          xcodeproj 'Events'

platform :ios, '5.0'

# Core
#pod 'UIDeviceAddition'
pod 'Injective'
#pod 'RestKit', :podspec => 'https://raw.github.com/RestKit/RestKit/feature/reboot-networking-layer/RestKit.podspec'
pod 'AFIncrementalStore', :head #:git => 'https://github.com/xslim/AFIncrementalStore' #, :head
pod 'MagicalRecord', :head  #:git => 'https://github.com/magicalpanda/MagicalRecord', :commit => '5206b43ae0c0081b9ab3c034726aff7c1c1bf1d7' 
#, :podspec => 'https://raw.github.com/magicalpanda/MagicalRecord/master/MagicalRecord.podspec'


# Helpers
pod 'ISO8601DateFormatter'
#pod 'AFHTTPRequestOperationLogger'
#pod 'PonyDebugger', :head

# UI
pod 'TKThemeManager', :podspec => 'https://raw.github.com/xslim/TKThemeManager/master/TKThemeManager.podspec'
pod 'MDAboutController'
pod 'UIGlossyButton'
pod 'SVProgressHUD'
pod 'DDPageControl', '0.1'
pod 'JMTabView'
pod 'MHTabBarController', :podspec => 'https://raw.github.com/gist/3832321/14c550aa22b2d784f2e9b1fc06eea323ec8b6e26/MHTabBarController.podspec'
pod 'GHSidebarNav'

# Social
pod 'Facebook-iOS-SDK', '1.2'
pod 'ShareKit/Facebook'
pod 'ShareKit/Twitter'
pod 'FlurrySDK'

# Testing
pod 'TestFlightSDK'
pod 'DCIntrospect'

Error

Unable to convert value of key `:FooterText'.
/Users/slim/src/tools/CocoaPods/lib/cocoapods/generator/acknowledgements/plist.rb:11:in `write_plist'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/generator/acknowledgements/plist.rb:11:in `save_as'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/generator/acknowledgements.rb:16:in `block in save_as'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/generator/acknowledgements.rb:15:in `each'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/generator/acknowledgements.rb:15:in `save_as'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/installer.rb:168:in `block in generate_target_support_files'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/installer.rb:164:in `each'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/installer.rb:164:in `generate_target_support_files'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/installer.rb:122:in `block (2 levels) in install!'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/user_interface.rb:77:in `message'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/installer.rb:121:in `block in install!'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/user_interface.rb:37:in `section'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/installer.rb:112:in `install!'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/command/install.rb:46:in `run_install_with_update'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/command/install.rb:51:in `run'
/Users/slim/src/tools/CocoaPods/lib/cocoapods/command.rb:75:in `run'
/Users/slim/src/tools/CocoaPods/bin/pod:16:in `<main>'
@xslim xslim added a commit to xslim/CocoaPods that referenced this issue Dec 4, 2012
@xslim xslim Don't crash if Xcodeproj plist generation fails #675 ba943b5
@alloy
CocoaPods member

Can you reduce the issue to the (one?) pod that is causing this? There might be a broken character used in one of the attributes.

@xslim

It's FlurrySDK (4.0.5)
But I can't see any FooterText there in the pod

https://github.com/CocoaPods/Specs/blob/master/FlurrySDK/4.0.5/FlurrySDK.podspec

@fabiopelosin
CocoaPods member

For visual purposes the FootText of settings is used to show the license. This issue is likely generated by this footer: https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/generator/acknowledgements/plist.rb#L41.
I think that it is an encoding or a similar issue of the License stored in the root of the FlurrySDK repo.

@alloy
CocoaPods member

Hmm, I am able to successfully run pod install with FlurrySDK on Ruby 1.9.3p194 (although mine is installed through rbenv).

@irrationalfab Were you able to reproduce this?

@xslim
@alloy
CocoaPods member

Any ideas how can I get info what character Xcodeproj didn't like while generating plist?

Just before the serialisation call, add something like:

      def save_as(path)
        if (path.extname != ".plist")
          path = Pathname.new(path.dirname + "#{path.basename.to_s}.plist")
        end
        p header_text
        p header_text.encoding
        Xcodeproj.write_plist(plist, path)
      end
@fabiopelosin
CocoaPods member

Can we close this issue?

@xslim

yep

@xslim xslim closed this Mar 9, 2013
@fabiopelosin
CocoaPods member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment