{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6801","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6801/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6801/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6801/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6801","id":236127578,"number":6801,"title":"DSLError","user":{"login":"archerLj","id":12481498,"avatar_url":"https://avatars3.githubusercontent.com/u/12481498?v=3","gravatar_id":"","url":"https://api.github.com/users/archerLj","html_url":"https://github.com/archerLj","followers_url":"https://api.github.com/users/archerLj/followers","following_url":"https://api.github.com/users/archerLj/following{/other_user}","gists_url":"https://api.github.com/users/archerLj/gists{/gist_id}","starred_url":"https://api.github.com/users/archerLj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archerLj/subscriptions","organizations_url":"https://api.github.com/users/archerLj/orgs","repos_url":"https://api.github.com/users/archerLj/repos","events_url":"https://api.github.com/users/archerLj/events{/privacy}","received_events_url":"https://api.github.com/users/archerLj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-15T09:20:30Z","updated_at":"2017-06-15T09:48:42Z","closed_at":null,"body":"# Report\r\ni create a podspec, and i get an DSLError when i run the command of \r\n\"pod spec lint A_Category.podspec --verbose --allow-warnings\"\r\n\r\n\r\n\r\n## What happened instead?\r\nand this is the error:\r\n```\r\n -> A_Category (0.0.1)\r\n    - ERROR | [iOS] unknown: Encountered an unknown error (Pod::DSLError\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-core-1.2.1/lib/cocoapods-core/specification.rb:661:in `rescue in _eval_podspec'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-core-1.2.1/lib/cocoapods-core/specification.rb:654:in `_eval_podspec'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-core-1.2.1/lib/cocoapods-core/specification.rb:562:in `block in from_string'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-core-1.2.1/lib/cocoapods-core/specification.rb:559:in `chdir'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-core-1.2.1/lib/cocoapods-core/specification.rb:559:in `from_string'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-core-1.2.1/lib/cocoapods-core/specification.rb:542:in `from_file'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/sandbox/podspec_finder.rb:15:in `block in podspecs'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/sandbox/podspec_finder.rb:14:in `each'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/sandbox/podspec_finder.rb:14:in `podspecs'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/downloader.rb:82:in `download_request'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/downloader/cache.rb:171:in `download'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/downloader/cache.rb:154:in `block in uncached_pod'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/downloader/cache.rb:181:in `in_tmpdir'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/downloader/cache.rb:153:in `uncached_pod'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/downloader/cache.rb:33:in `download_pod'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/downloader.rb:42:in `download'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer/pod_source_installer.rb:120:in `download_source'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer/pod_source_installer.rb:60:in `install!'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:357:in `install_source_of_pod'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:322:in `block (2 levels) in install_pod_sources'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:85:in `titled_section'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:321:in `block in install_pod_sources'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:313:in `each'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:313:in `install_pod_sources'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:159:in `block in download_dependencies'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:64:in `section'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:157:in `download_dependencies'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/validator.rb:408:in `block in download_pod'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/validator.rb:408:in `each'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/validator.rb:408:in `download_pod'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/validator.rb:304:in `block in perform_extensive_analysis'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/validator.rb:298:in `each'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/validator.rb:298:in `perform_extensive_analysis'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/validator.rb:79:in `validate'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/command/spec/lint.rb:67:in `block in run'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/command/spec/lint.rb:55:in `each'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/command/spec/lint.rb:55:in `run'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:52:in `run'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'\r\n/Users/archerlj/.rvm/rubies/ruby-2.3.0/bin/pod:23:in `load'\r\n/Users/archerlj/.rvm/rubies/ruby-2.3.0/bin/pod:23:in `<main>'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `eval'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `<main>'\r\n) during validation.\r\n\r\nAnalyzed 1 podspec.\r\n\r\n[!] The spec did not pass validation, due to 1 error.\r\n\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/command/spec/lint.rb:84:in `run'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:52:in `run'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'\r\n/Users/archerlj/.rvm/rubies/ruby-2.3.0/bin/pod:23:in `load'\r\n/Users/archerlj/.rvm/rubies/ruby-2.3.0/bin/pod:23:in `<main>'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `eval'\r\n/Users/archerlj/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `<main>'\r\n```\r\n\r\n## CocoaPods Environment\r\nmy CocoaPods version is 1.2.1\r\n\r\n## Project that demonstrates the issue\r\nthis is my podspec file's content:\r\n```\r\nPod::Spec.new do |s|\r\n  s.name         = \"A_Category\"\r\n  s.version      = \"0.0.1\"\r\n  s.summary      = \"A_Category.\"\r\n  s.description  = <<-DESC\r\n                    this is A_Category\r\n                   DESC\r\n  s.homepage     = \"https://github.com/LFModulizationDemo/A_Category\"\r\n  s.license      = { :type => \"MIT\", :file => \"FILE_LICENSE\" }\r\n  s.author       = { \"archerLj\" => \"lj0011977@163.com\" }\r\n  s.platform     = :ios, \"7.0\"\r\n  s.source       = { :git => \"https://github.com/LFModulizationDemo/A_Category.git\", :tag => \"0.0.1\" }\r\n  s.source_files = \"A_Category/A_Category/**/*.{h,m}\"\r\n  s.requires_arc = true\r\n  s.dependency \"CTMediator\"\r\nend\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/308684224","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6801#issuecomment-308684224","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6801","id":308684224,"user":{"login":"orta","id":49038,"avatar_url":"https://avatars1.githubusercontent.com/u/49038?v=3","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T09:48:42Z","updated_at":"2017-06-15T09:48:42Z","body":"I think if you run it with `--verbose` you'll get a better version of the error message, but this is basically a syntax error in your Podspec."}}
{"actor":{"display_login":"orta"}}