Questions tagged [xcodeproj]

Xcodeproj is a Ruby gem from the makers of CocoaPods that allows scripted access to Xcode's project file.

The Xcodeproj project is a Ruby gem from the makers of CocoaPods that allows scripted access to Xcode's project file.

Installation is as simple as:

gem install xcodeproj

Docs: http://www.rubydoc.info/gems/xcodeproj/

64 questions
0
votes
1 answer

How do you automate do "Copy Files" in Build Phases using a Cocoapods Post Install Script?

I know this is a rather trivial question, but I seem to be having the worst time with this. I've tried : obj = Xcodeproj::Project::Object::PBXCopyFilesBuildPhase.new(PATH, 10) target.build_phases.add(obj) But the UUID is 0 and nothing is added to…
gran_profaci
  • 8,087
  • 15
  • 66
  • 99
0
votes
1 answer

Get path to particular scheme

I'm writing a post_install script in a Podfile, and I need to modify a particular scheme. I'm new to Ruby, so I'm sure I have many bad/non-idiomatic habits. Here's what I have: post_install do |installer| pods_project = installer.pods_project …
Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
-1
votes
1 answer

Xcode build environment variable for scheme that is running

I've been trying to find a way to access the scheme name from a Run Script build phase. I'm writing a CLI command that updates a user's Xcode project so I don't have the luxury of tinkering with the Xcode user interface. I have been using Cocoapod's…
Russell
  • 104
  • 1
  • 9
-1
votes
1 answer

how to share common code between two projects in xcode swift

Hi We have an application that contains two modules (user and admin), Both share some common code related to a few features. As per requirement, we need to create two apps (user and admin), How can we share the code efficiently between two…
KAREEM MAHAMMED
  • 1,675
  • 14
  • 38
1 2 3 4
5