gym 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gym/error_handler.rb +47 -2
- data/lib/gym/generators/build_command_generator.rb +0 -1
- data/lib/gym/options.rb +1 -1
- data/lib/gym/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75864b84915d5e3c5635f47646c5a52b93c5b864
|
4
|
+
data.tar.gz: d4e5481e0583592fa053b3413dc026ca2558f0f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6e543c1149bb8e97ddf7b323cb7cd07b9804af50b1942ac239ece109bcd0e22ed99c93617e2bacf56cb1c8e111abfb906cd6863008205d1bdf54119e853037e
|
7
|
+
data.tar.gz: 50bc17ce8838a81692c052fc7e3459637902ec4a945bce0d29fe1a3e446b0bfbbc003d352762d2044560b6d88329002963e0df74983c0cc1f44445484f77dfab
|
data/lib/gym/error_handler.rb
CHANGED
@@ -51,6 +51,8 @@ module Gym
|
|
51
51
|
print "https://stackoverflow.com/a/17031697/445598"
|
52
52
|
end
|
53
53
|
print_full_log_path
|
54
|
+
print_xcode_path_instructions
|
55
|
+
print_xcode_version
|
54
56
|
UI.user_error!("Error building the application - see the log above")
|
55
57
|
end
|
56
58
|
|
@@ -134,8 +136,51 @@ module Gym
|
|
134
136
|
def print_full_log_path
|
135
137
|
return if Gym.config[:disable_xcpretty]
|
136
138
|
log_path = Gym::BuildCommandGenerator.xcodebuild_log_path
|
137
|
-
UI.
|
138
|
-
UI.
|
139
|
+
UI.important("📋 For a more detailed error log, check the full log at:")
|
140
|
+
UI.important("📋 #{log_path}")
|
141
|
+
end
|
142
|
+
|
143
|
+
def print_xcode_version
|
144
|
+
# lots of the times, the user didn't set the correct Xcode version to their Xcode path
|
145
|
+
# since many users don't look at the table of summary before running a tool, let's make
|
146
|
+
# sure they are aware of the Xcode version and SDK they're using
|
147
|
+
values = {
|
148
|
+
xcode_path: File.expand_path("../..", FastlaneCore::Helper.xcode_path),
|
149
|
+
gym_version: Gym::VERSION
|
150
|
+
}
|
151
|
+
|
152
|
+
sdk_path = Gym.project.build_settings(key: "SDKROOT")
|
153
|
+
values[:sdk] = File.basename(sdk_path) if sdk_path.to_s.length > 0
|
154
|
+
|
155
|
+
FastlaneCore::PrintTable.print_values(config: values,
|
156
|
+
hide_keys: [],
|
157
|
+
title: "Build environment".yellow)
|
158
|
+
end
|
159
|
+
|
160
|
+
def print_xcode_path_instructions
|
161
|
+
xcode_path = File.expand_path("../..", FastlaneCore::Helper.xcode_path)
|
162
|
+
default_xcode_path = "/Applications/"
|
163
|
+
|
164
|
+
xcode_installations_in_default_path = Dir[File.join(default_xcode_path, "Xcode*.app")]
|
165
|
+
if xcode_installations_in_default_path.count > 1
|
166
|
+
UI.error "Found multiple versions of Xcode in '#{default_xcode_path}'"
|
167
|
+
UI.error "Make sure you selected the right version for your project"
|
168
|
+
UI.error "This build process was executed using '#{xcode_path}'"
|
169
|
+
UI.important "If you want to update your Xcode path, either"
|
170
|
+
UI.message ""
|
171
|
+
|
172
|
+
UI.message "- Specify the Xcode version in your Fastfile"
|
173
|
+
UI.command_output "xcversion(version: \"8.1\") # Selects Xcode 8.1.0"
|
174
|
+
UI.message ""
|
175
|
+
|
176
|
+
UI.message "- Specify an absolute path to your Xcode installation in your Fastfile"
|
177
|
+
UI.command_output "xcode_select \"/Applications/Xcode8.app\""
|
178
|
+
UI.message ""
|
179
|
+
|
180
|
+
UI.message "- Manually update the path using"
|
181
|
+
UI.command_output "sudo xcode-select -s /Applications/Xcode.app"
|
182
|
+
UI.message ""
|
183
|
+
end
|
139
184
|
end
|
140
185
|
end
|
141
186
|
end
|
@@ -33,7 +33,6 @@ module Gym
|
|
33
33
|
|
34
34
|
options = []
|
35
35
|
options += project_path_array
|
36
|
-
options << "-configuration '#{config[:configuration]}'" if config[:configuration]
|
37
36
|
options << "-sdk '#{config[:sdk]}'" if config[:sdk]
|
38
37
|
options << "-toolchain '#{config[:toolchain]}'" if config[:toolchain]
|
39
38
|
options << "-destination '#{config[:destination]}'" if config[:destination]
|
data/lib/gym/options.rb
CHANGED
@@ -107,7 +107,7 @@ module Gym
|
|
107
107
|
FastlaneCore::ConfigItem.new(key: :export_method,
|
108
108
|
short_option: "-j",
|
109
109
|
env_name: "GYM_EXPORT_METHOD",
|
110
|
-
description: "
|
110
|
+
description: "Method used to export the archive. Valid values are: app-store, ad-hoc, package, enterprise, development, developer-id",
|
111
111
|
is_string: true,
|
112
112
|
optional: true,
|
113
113
|
verify_block: proc do |value|
|
data/lib/gym/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gym
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.57.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.57.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
302
|
version: '0'
|
303
303
|
requirements: []
|
304
304
|
rubyforge_project:
|
305
|
-
rubygems_version: 2.5.1
|
305
|
+
rubygems_version: 2.4.5.1
|
306
306
|
signing_key:
|
307
307
|
specification_version: 4
|
308
308
|
summary: Building your iOS apps has never been easier
|