Commit 7190cd0c authored by Orta's avatar Orta

Merge pull request #5123 from CocoaPods/orta_init_update

Update `pod init` for 1.0
parents f8d3ffb7 a4826705
...@@ -34,8 +34,8 @@ module Pod ...@@ -34,8 +34,8 @@ module Pod
help! "Xcode project at #{@project_path} does not exist" unless File.exist? @project_path help! "Xcode project at #{@project_path} does not exist" unless File.exist? @project_path
project_path = @project_path project_path = @project_path
else else
raise Informative, 'No xcode project found, please specify one' unless @project_paths.length > 0 raise Informative, 'No Xcode project found, please specify one' unless @project_paths.length > 0
raise Informative, 'Multiple xcode projects found, please specify one' unless @project_paths.length == 1 raise Informative, 'Multiple Xcode projects found, please specify one' unless @project_paths.length == 1
project_path = @project_paths.first project_path = @project_paths.first
end end
@xcode_project = Xcodeproj::Project.open(project_path) @xcode_project = Xcodeproj::Project.open(project_path)
...@@ -54,10 +54,10 @@ module Pod ...@@ -54,10 +54,10 @@ module Pod
# #
def podfile_template(project) def podfile_template(project)
podfile = '' podfile = ''
podfile << "xcodeproj '#{@project_path}'\n\n" if @project_path podfile << "project '#{@project_path}'\n\n" if @project_path
podfile << <<-PLATFORM.strip_heredoc podfile << <<-PLATFORM.strip_heredoc
# Uncomment this line to define a global platform for your project # Uncomment this line to define a global platform for your project
# platform :ios, '8.0' # platform :ios, '9.0'
# Uncomment this line if you're using Swift # Uncomment this line if you're using Swift
# use_frameworks! # use_frameworks!
PLATFORM PLATFORM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment