Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemStackError - stack level too deep after updating to 0.25.0 #1384

Closed
OliverLetterer opened this issue Sep 21, 2013 · 3 comments
Closed

Comments

@OliverLetterer
Copy link

Report

  • What did you do?
    Upgraded from 0.24.0 to 0.25.0 and ran pod from the command line.
  • What did you expect to happen?
    Normal pod install routine to get the newest and greatest cocoapods features.
  • What happened instead?
    Crash below.

Stack

   CocoaPods : 0.25.0
        Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
    RubyGems : 2.0.3
        Host : Mac OS X 10.8.5 (12F37)
       Xcode : 5.0 (5A1412)
Ruby lib dir : /usr/local/Cellar/ruby/2.0.0-p247/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 105ffc8549933b2563e6fae82937d9cb74ca561c
               wecuyaca - git@github.com:Sparrow-Labs/Specs.git @ 3b0e49c52ddd4a41c9131b73be7aa696425e0462

Podfile

platform :ios, '7.0'

xcodeproj 'iCuisineWaiter/waiter.xcodeproj'

pod 'SLRESTfulCoreData'

Error

SystemStackError - stack level too deep
/usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/gems/2.0.0/gems/xcodeproj-0.11.0/lib/xcodeproj/project/object_attributes.rb:95
@OliverLetterer
Copy link
Author

Updated Podfile because pod 'SLRESTfulCoreData' seems to be causing this issue.

@OliverLetterer
Copy link
Author

Here is the SLRESTfulCoreData.podspec

Pod::Spec.new do |spec|
  spec.name         = 'SLRESTfulCoreData'
  spec.version      = '1.3.4'
  spec.platform     = :ios, '6.0'
  spec.license      = 'MIT'
  spec.source       = { :git => 'https://github.com/OliverLetterer/SLRESTfulCoreData.git', :tag => spec.version.to_s }
  spec.frameworks   = 'Foundation', 'UIKit', 'CoreData'
  spec.requires_arc = true
  spec.homepage     = 'https://github.com/OliverLetterer/SLRESTfulCoreData'
  spec.summary      = 'Objc naming conventions, autogenerated accessors at runtime, URL substitutions and intelligent attribute mapping.'
  spec.author       = { 'Oliver Letterer' => 'oliver.letterer@gmail.com' }

  spec.default_subspec = 'Complete'

  spec.subspec 'Core' do |sp|
    sp.source_files = 'SLRESTfulCoreData/SLRESTfulCoreData/*.{h,m}', 'SLRESTfulCoreData/SLRESTfulCoreData/**/*.{h,m}', 'SLRESTfulCoreData/SLRESTfulCoreData/Framework Additions/**/**/*.{h,m}'
  end

  spec.subspec 'Complete' do |sp|
    sp.dependency 'SLRESTfulCoreData/Core'

    sp.dependency 'AFNetworking', '~> 1.3.1'
    sp.dependency 'AFRESTfulCoreDataBackgroundQueue', '>= 1.0.1'
    sp.dependency 'SLCoreDataStack', '>= 0.2.0'
  end
end

Commenting out sp.dependency 'AFRESTfulCoreDataBackgroundQueue', '>= 1.0.1' seems to fix the issue. Here is the AFRESTfulCoreDataBackgroundQueue.podspec

Pod::Spec.new do |spec|
  spec.name          = 'AFRESTfulCoreDataBackgroundQueue'
  spec.version       = '1.0.6'
  spec.platform      = :ios, '6.0'
  spec.license       = 'MIT'
  spec.source        = { :git => 'https://github.com/OliverLetterer/AFRESTfulCoreDataBackgroundQueue.git', :tag => spec.version.to_s }
  spec.source_files  = 'AFRESTfulCoreDataBackgroundQueue'
  spec.frameworks    = 'MobileCoreServices', 'SystemConfiguration', 'Security', 'CoreGraphics', 'Foundation'
  spec.requires_arc  = true
  spec.homepage      = 'https://github.com/OliverLetterer/AFRESTfulCoreDataBackgroundQueue'
  spec.summary       = 'AFNetworking based AFHTTPClient conforming to SLRESTfulCoreDataBackgroundQueue.'
  spec.author        = { 'Oliver Letterer' => 'oliver.letterer@gmail.com' }

  spec.dependency 'AFNetworking', '~> 1.3.1'
  spec.dependency 'SLRESTfulCoreData', '>= 1.0.0'

  spec.prefix_header_contents = <<-EOS
#import <Availability.h>

#define _AFNETWORKING_PIN_SSL_CERTIFICATES_

#if __IPHONE_OS_VERSION_MIN_REQUIRED
  #import <SystemConfiguration/SystemConfiguration.h>
  #import <MobileCoreServices/MobileCoreServices.h>
  #import <Security/Security.h>
#else
  #import <SystemConfiguration/SystemConfiguration.h>
  #import <CoreServices/CoreServices.h>
  #import <Security/Security.h>
#endif
EOS
end

Maybe xcodeproj-0.11.0 is running into an endless recursive loop due to SLRESTfulCoreData declaring AFRESTfulCoreDataBackgroundQueue as a dependency and vice versa?

@alloy
Copy link
Member

alloy commented Sep 21, 2013

Thanks for the detailed report, I can successfully reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants