lib/cocoapods-bb-PodAssistant/command/stable/update.rb in cocoapods-bb-PodAssistant-0.2.4 vs lib/cocoapods-bb-PodAssistant/command/stable/update.rb in cocoapods-bb-PodAssistant-0.2.5
- old
+ new
@@ -43,9 +43,13 @@
source_manager.merge_stable_data(@pods, @force)
end
podStartTime = Time.new
update_spec
if @pods.any?
+ if !File.exist?(File.join(Dir.pwd,"Podfile.lock"))
+ puts "工程第一次先执行pod 初始化 pod install"
+ system "pod install"
+ end
pods_str = @pods.join(" ")
system "pod update #{pods_str}"
else
system "pod update"
end