Module: RXCode
- Defined in:
- lib/rxcode.rb,
lib/rxcode/tasks.rb,
lib/rxcode/command.rb,
lib/rxcode/macruby.rb,
lib/rxcode/workspace.rb,
lib/rxcode/environment.rb,
lib/rxcode/preferences.rb,
lib/rxcode/commands/env.rb,
lib/rxcode/models/model.rb,
lib/rxcode/commands/init.rb,
lib/rxcode/models/target.rb,
lib/rxcode/models/archive.rb,
lib/rxcode/models/project.rb,
lib/rxcode/spec/rake_task.rb,
lib/rxcode/commands/unwrap.rb,
lib/rxcode/tasks/ios_framework.rb,
lib/rxcode/spec/nserror_helpers.rb,
lib/rxcode/models/file_reference.rb,
lib/rxcode/models/archived_object.rb,
lib/rxcode/models/build_configuration.rb,
lib/rxcode/models/build_configuration_list.rb
Defined Under Namespace
Modules: Commands, Spec, XCode
Classes: Archive, ArchivedObject, BuildConfiguration, BuildConfigurationList, Command, Environment, FileReference, Model, Preferences, Project, Target, Workspace
Constant Summary
collapse
- VERSION =
File.read(File.expand_path('../../VERSION', __FILE__)).strip
Class Method Summary
collapse
Class Method Details
.being_run_by_xcode? ⇒ Boolean
5
6
7
|
# File 'lib/rxcode/tasks.rb', line 5
def self.being_run_by_xcode?
ENV['XCODE_VERSION_ACTUAL'] != nil
end
|
.building_cocoa_framework? ⇒ Boolean
9
10
11
|
# File 'lib/rxcode/tasks.rb', line 9
def self.building_cocoa_framework?
ENV['PACKAGE_TYPE'] == 'com.apple.package-type.wrapper.framework'
end
|
.env ⇒ Object
76
77
78
|
# File 'lib/rxcode/environment.rb', line 76
def self.env
@env ||= Environment.new(Dir.pwd)
end
|
.framework(framework_name) ⇒ Object
3
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/rxcode/macruby.rb', line 3
def self.framework(framework_name)
if workspace = RXCode.env.workspace
framework_path = File.join(workspace.built_products_dir, 'Debug', "#{framework_name}.framework")
::Kernel.framework(framework_path)
else
raise "Unable to determine current XCode workspace."
end
end
|
.xcode_action ⇒ Object
13
14
15
|
# File 'lib/rxcode/tasks.rb', line 13
def self.xcode_action
ENV['ACTION']
end
|
.xcode_preferences ⇒ Object
5
6
7
|
# File 'lib/rxcode/preferences.rb', line 5
def self.xcode_preferences
@preferences ||= Preferences.new
end
|