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

pod lib create ends with SyntaxError #2616

Closed
anderkh opened this issue Oct 8, 2014 · 10 comments
Closed

pod lib create ends with SyntaxError #2616

anderkh opened this issue Oct 8, 2014 · 10 comments

Comments

@anderkh
Copy link

anderkh commented Oct 8, 2014

I've installed 0.34.1 on Mavericks, and I'm getting a SyntaxError:

SyntaxError - /Users/kanderson/Projects/MobileMachinations/Frameworks/MMSync/MMSync/Example/Podfile:2: syntax error, unexpected keyword_end, expecting end-of-input
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.34.1/lib/cocoapods-core/podfile.rb:247:in eval' /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.34.1/lib/cocoapods-core/podfile.rb:247:inblock in from_ruby'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.34.1/lib/cocoapods-core/podfile.rb:51:in instance_eval' /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.34.1/lib/cocoapods-core/podfile.rb:51:ininitialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.34.1/lib/cocoapods-core/podfile.rb:244:in new' /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.34.1/lib/cocoapods-core/podfile.rb:244:infrom_ruby'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.34.1/lib/cocoapods-core/podfile.rb:220:in from_file' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/config.rb:176:inpodfile'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/command.rb:101:in verify_podfile_exists!' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/command/project.rb:100:inrun'
/Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:271:in run' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/command.rb:48:inrun'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/bin/pod:33:in <top (required)>' /usr/bin/pod:23:inload'
/usr/bin/pod:23:in `

'

All I did was run pod lib create MMSync in a clean directory, and answered the questions:
No, None, No, MM

Here's the additional data:

   CocoaPods : 0.34.1
        Ruby : ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
    RubyGems : 2.4.2
        Host : Mac OS X 10.9.4 (13E28)
       Xcode : 6.0.1 (6A317)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 1db4d7e7ce0036e34bfbc4ca32e3d772696f34cd

Plugins

cocoapods-plugins : 0.3.1
cocoapods-trunk   : 0.2.0
cocoapods-try     : 0.4.1

Help!

Thanks,
Ken

@neonichu
Copy link
Member

neonichu commented Oct 8, 2014

What does the created Podfile actually look like?

@anderkh
Copy link
Author

anderkh commented Oct 8, 2014

Here's the complete file:

#
# Be sure to run `pod lib lint MMSync.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = "MMSync"
  s.version          = "0.1.0"
  s.summary          = "A short description of MMSync."
  s.description      = <<-DESC
                       An optional longer description of MMSync

                       * Markdown format.
                       * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://github.com/<GITHUB_USERNAME>/MMSync"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'MIT'
  s.author           = { "Ken Anderson" => "emailaddress" }
  s.source           = { :git => "https://github.com/<GITHUB_USERNAME>/MMSync.git", :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '7.0'
  s.requires_arc = true

  s.source_files = 'Pod/Classes'
  s.resource_bundles = {
    'MMSync' => ['Pod/Assets/*.png']
  }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end

@3lvis
Copy link

3lvis commented Oct 9, 2014

Same here

@3lvis
Copy link

3lvis commented Oct 9, 2014

SyntaxError - /Users/elvisnunez/Projects/Personal/AwesomeKid/Example/Podfile:2: syntax error, unexpected keyword_end, expecting end-of-input
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-core-0.34.2/lib/cocoapods-core/podfile.rb:247:in `eval'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-core-0.34.2/lib/cocoapods-core/podfile.rb:247:in `block in from_ruby'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-core-0.34.2/lib/cocoapods-core/podfile.rb:51:in `instance_eval'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-core-0.34.2/lib/cocoapods-core/podfile.rb:51:in `initialize'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-core-0.34.2/lib/cocoapods-core/podfile.rb:244:in `new'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-core-0.34.2/lib/cocoapods-core/podfile.rb:244:in `from_ruby'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-core-0.34.2/lib/cocoapods-core/podfile.rb:220:in `from_file'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-0.34.2/lib/cocoapods/config.rb:176:in `podfile'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-0.34.2/lib/cocoapods/command.rb:101:in `verify_podfile_exists!'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-0.34.2/lib/cocoapods/command/project.rb:100:in `run'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-0.34.2/lib/cocoapods/command.rb:48:in `run'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0@global/gems/cocoapods-0.34.2/bin/pod:33:in `<top (required)>'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0/bin/pod:23:in `load'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0/bin/pod:23:in `<main>'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
/Users/elvisnunez/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'

@zenangst
Copy link

zenangst commented Oct 9, 2014

Same

@neonichu
Copy link
Member

neonichu commented Oct 9, 2014

Can anyone of you please share the contents of the Podfile (Example/Podfile)?

@zenangst
Copy link

zenangst commented Oct 9, 2014

pod "TestPod", :path => "../"
end

target 'TestPod', :exclusive => true do
  pod "TestPod", :path => "../"


end

@neonichu
Copy link
Member

neonichu commented Oct 9, 2014

OK, saying "No" to the first question is actually broken inside the template, let's move this to the correct repo's issues.

@neonichu
Copy link
Member

neonichu commented Oct 9, 2014

In the meantime, I recommend just saying 'Yes' to the example project as a workaround.

@3lvis
Copy link

3lvis commented Oct 9, 2014

Thanks <3

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

4 participants