Commit daf72f5c authored by Eloy Duran's avatar Eloy Duran

Generated Pods.xcodeproj and workspace for ConfigureTest app.

With: cd examples/ConfigureTest && ../../bin/pod install ConfigureTest.xcodeproj
parent dbcd3f64
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Workspace version="1.0"><FileRef location="group:ConfigureTest.xcodeproj"></FileRef><FileRef location="group:Pods/Pods.xcodeproj"></FileRef></Workspace>
\ No newline at end of file
......@@ -123,24 +123,16 @@ module Pod
end
app_project.main_group << configfile
# This doesn't work yet.
# A working example from having dragged libPods.a over:
# {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libPods.a;
# path = "Pods/build/Release-iphoneos/libPods.a"; sourceTree = "<group>"; };
# Need to figure out how to calculate that path, which appears to be
# based on the Pods.xcodeproj's BUILT_PRODUCTS_DIR.
#
# libfile = app_project.files.new({
# 'path' => 'libPods.a',
# 'lastKnownFileType' => 'archive.ar',
# 'includeInIndex' => '0',
# 'sourceTree' => 'BUILT_PRODUCTS_DIR'
# })
# app_project.objects.select_by_class(Xcode::Project::PBXFrameworksBuildPhase).each do |build_phase|
# build_phase.files << libfile.build_file
# end
# app_project.main_group << libfile
libfile = app_project.files.new({
'path' => 'libPods.a',
'lastKnownFileType' => 'archive.ar',
'includeInIndex' => '0',
'sourceTree' => 'BUILT_PRODUCTS_DIR'
})
app_project.objects.select_by_class(Xcode::Project::PBXFrameworksBuildPhase).each do |build_phase|
build_phase.files << libfile.build_file
end
app_project.main_group << libfile
app_project.save_as(projpath)
end
......
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