148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
# File 'lib/pindo/module/build/commonconfuseproj.rb', line 148
def config_confuse_project(clang_path:nil, project_name:nil, project_path:nil, default_type:"symash1")
project_fullname = File.join(project_path, project_name) + ".xcodeproj"
project_obj = Xcodeproj::Project.open(project_fullname)
external_sources(yaml_file:File.join(project_path, "Pods/Manifest.lock"))
project_obj.targets.each do |target|
target.build_configurations.each do |config|
process_config_setting(clang_path:clang_path, config:config, default_type:default_type)
end
end
project_obj.save
pods_proj_fullname = File.join(project_path, "Pods", "Pods") + ".xcodeproj"
if File.exist?(pods_proj_fullname)
pods_project_obj = Xcodeproj::Project.open(pods_proj_fullname)
process_root_setting(clang_path:clang_path,root_object:project_obj.root_object, default_type:default_type)
pods_project_obj.targets.each do |target|
target.build_configurations.each do |config|
process_config_setting(clang_path:clang_path, config:config, default_type:default_type)
end
end
pods_project_obj.save
end
end
|