Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
913dc00d
Commit
913dc00d
authored
Oct 24, 2011
by
Nolan Waite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Don't) add libPods.a to App.xcodeproj
parent
e13d6b10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
installer.rb
lib/cocoapods/installer.rb
+19
-0
No files found.
lib/cocoapods/installer.rb
View file @
913dc00d
...
@@ -123,6 +123,25 @@ module Pod
...
@@ -123,6 +123,25 @@ module Pod
end
end
app_project
.
main_group
<<
configfile
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
app_project
.
save_as
(
projpath
)
app_project
.
save_as
(
projpath
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment