Class: Pod::Installer::PostInstallHooksContext
- Inherits:
-
Object
- Object
- Pod::Installer::PostInstallHooksContext
- Defined in:
- lib/cocoapods-ppbuild/reference/reference_source_code.rb
Instance Method Summary collapse
-
#refrence_source_code ⇒ Object
将源码引入主工程,方便源码调试.
Instance Method Details
#refrence_source_code ⇒ Object
将源码引入主工程,方便源码调试
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/cocoapods-ppbuild/reference/reference_source_code.rb', line 10 def refrence_source_code sandbox_path = Pathname.new(sandbox.root) pre_sandbox = Pod::PrebuildSandbox.from_standard_sandbox(sandbox) exsited_framework_pod_names = pre_sandbox.exsited_framework_pod_names || [] proj_path = sandbox_path + get_project_name("Pods") project = Xcodeproj::Project.open(proj_path) exsited_framework_pod_names.each do |target_name| real_reference("_Prebuild/#{target_name}", project, target_name) end project.save; end |