gym 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/assets/GymfileTemplate +1 -1
- data/lib/assets/package_application_patches/PackageApplication_MD5 +2 -1
- data/lib/assets/wrap_xcodebuild/xcbuild-safe.sh +8 -0
- data/lib/gym.rb +1 -0
- data/lib/gym/error_handler.rb +1 -1
- data/lib/gym/generators/build_command_generator.rb +1 -1
- data/lib/gym/generators/package_command_generator_legacy.rb +22 -2
- data/lib/gym/generators/package_command_generator_xcode7.rb +6 -6
- data/lib/gym/options.rb +3 -3
- data/lib/gym/version.rb +1 -1
- data/lib/gym/xcodebuild_fixes/package_application_fix.rb +3 -3
- 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: 3cb5dfb0c034f1f176aa33c251efe825fc565588
|
4
|
+
data.tar.gz: ad83beb96bae35108114fba5b82ceef5beb20582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b2ef7b42f1ac411b048ab1d31a31fdc224aa81d286bb19dab22c2775815863089010b02d52cc6d602f77de69aa95be1e5147b6a72ab57eb4f6bd60ccbc74549
|
7
|
+
data.tar.gz: 8e9661c7de9d06cbfd85a752085ea01b31df8cad059d51de6b48bee97f5a466e726be94e1812821d032caf1b83f83f2d04ac31a09da6c0d4773e5e2d5c4b969e
|
data/README.md
CHANGED
@@ -180,7 +180,12 @@ export_options(
|
|
180
180
|
|
181
181
|
For the list of available options run `xcodebuild -help`.
|
182
182
|
|
183
|
-
|
183
|
+
## Setup code signing
|
184
|
+
|
185
|
+
- [More information on how to get started with codesigning](/fastlane/docs/Codesigning)
|
186
|
+
- [Docs on how to set up your Xcode project](/fastlane/docs/Codesigning/XcodeProject.md)
|
187
|
+
|
188
|
+
## Automating the whole process
|
184
189
|
|
185
190
|
`gym` works great together with [fastlane](https://fastlane.tools), which connects all deployment tools into one streamlined workflow.
|
186
191
|
|
data/lib/assets/GymfileTemplate
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
a434316d561ce5c4392a8447b58c18e7
|
1
|
+
a434316d561ce5c4392a8447b58c18e7
|
2
|
+
75c29555834c603566a2319c5e4d2838
|
@@ -41,6 +41,14 @@ if [[ $? -eq 0 ]]; then
|
|
41
41
|
unset BUNDLE_GEMFILE
|
42
42
|
fi
|
43
43
|
|
44
|
+
if which rbenv > /dev/null; then
|
45
|
+
echo "rbenv detected, removing env variables"
|
46
|
+
unset RUBYLIB
|
47
|
+
unset RUBYOPT
|
48
|
+
unset GEM_HOME
|
49
|
+
unset GEM_PATH
|
50
|
+
fi
|
51
|
+
|
44
52
|
# to help troubleshooting
|
45
53
|
# env | sort > /tmp/env.wrapper
|
46
54
|
# rvm info >> /tmp/env.wrapper
|
data/lib/gym.rb
CHANGED
data/lib/gym/error_handler.rb
CHANGED
@@ -88,7 +88,7 @@ module Gym
|
|
88
88
|
standard_output = read_standard_output output
|
89
89
|
print standard_output if standard_output
|
90
90
|
print "There was an error exporting your application"
|
91
|
-
print "Unfortunately the new Xcode export API is unstable and causes problems on some
|
91
|
+
print "Unfortunately the new Xcode export API is unstable and causes problems on some projects"
|
92
92
|
print "You can temporary use the :use_legacy_build_api option to get the build to work again"
|
93
93
|
end
|
94
94
|
UI.user_error!("Error packaging up the application")
|
@@ -57,7 +57,7 @@ module Gym
|
|
57
57
|
|
58
58
|
def suffix
|
59
59
|
suffix = []
|
60
|
-
suffix << "CODE_SIGN_IDENTITY
|
60
|
+
suffix << "CODE_SIGN_IDENTITY=#{Gym.config[:codesigning_identity].shellescape}" if Gym.config[:codesigning_identity]
|
61
61
|
suffix
|
62
62
|
end
|
63
63
|
|
@@ -11,7 +11,9 @@ module Gym
|
|
11
11
|
class PackageCommandGeneratorLegacy
|
12
12
|
class << self
|
13
13
|
def generate
|
14
|
-
|
14
|
+
print_legacy_information
|
15
|
+
|
16
|
+
parts = ["/usr/bin/xcrun #{XcodebuildFixes.patch_package_application.shellescape} -v"]
|
15
17
|
parts += options
|
16
18
|
parts += pipe
|
17
19
|
|
@@ -30,7 +32,7 @@ module Gym
|
|
30
32
|
end
|
31
33
|
|
32
34
|
if Gym.config[:codesigning_identity]
|
33
|
-
options << "--sign
|
35
|
+
options << "--sign #{Gym.config[:codesigning_identity].shellescape}"
|
34
36
|
end
|
35
37
|
|
36
38
|
options
|
@@ -77,6 +79,24 @@ module Gym
|
|
77
79
|
def apps_path
|
78
80
|
""
|
79
81
|
end
|
82
|
+
|
83
|
+
def print_legacy_information
|
84
|
+
if Gym.config[:include_bitcode]
|
85
|
+
UI.important "Legacy build api is enabled, the `include_bitcode` value will be ignored"
|
86
|
+
end
|
87
|
+
|
88
|
+
if Gym.config[:include_symbols]
|
89
|
+
UI.important "Legacy build api is enabled, the `include_symbols` value will be ignored"
|
90
|
+
end
|
91
|
+
|
92
|
+
if Gym.config[:export_team_id].to_s.length > 0
|
93
|
+
UI.important "Legacy build api is enabled, the `export_team_id` value will be ignored"
|
94
|
+
end
|
95
|
+
|
96
|
+
if Gym.config[:export_method].to_s.length > 0
|
97
|
+
UI.important "Legacy build api is enabled, the `export_method` value will be ignored"
|
98
|
+
end
|
99
|
+
end
|
80
100
|
end
|
81
101
|
end
|
82
102
|
end
|
@@ -10,9 +10,9 @@ module Gym
|
|
10
10
|
class PackageCommandGeneratorXcode7
|
11
11
|
class << self
|
12
12
|
def generate
|
13
|
-
print_legacy_information
|
13
|
+
print_legacy_information
|
14
14
|
|
15
|
-
parts = ["/usr/bin/xcrun #{XcodebuildFixes.wrap_xcodebuild} -exportArchive"]
|
15
|
+
parts = ["/usr/bin/xcrun #{XcodebuildFixes.wrap_xcodebuild.shellescape} -exportArchive"]
|
16
16
|
parts += options
|
17
17
|
parts += pipe
|
18
18
|
|
@@ -161,10 +161,10 @@ module Gym
|
|
161
161
|
end
|
162
162
|
|
163
163
|
def print_legacy_information
|
164
|
-
if Gym.config[:provisioning_profile_path]
|
165
|
-
|
166
|
-
|
167
|
-
|
164
|
+
return if Gym.config[:provisioning_profile_path].to_s.length == 0
|
165
|
+
|
166
|
+
UI.error "You're using Xcode 7, the `provisioning_profile_path` value will be ignored"
|
167
|
+
UI.error "Please follow the Code Signing Guide: https://codesigning.guide (for match) or https://github.com/fastlane/fastlane/blob/master/fastlane/docs/CodeSigning.md"
|
168
168
|
end
|
169
169
|
end
|
170
170
|
end
|
data/lib/gym/options.rb
CHANGED
@@ -163,8 +163,9 @@ module Gym
|
|
163
163
|
env_name: "GYM_PROVISIONING_PROFILE_PATH",
|
164
164
|
description: "The path to the provisioning profile (optional)",
|
165
165
|
optional: true,
|
166
|
+
deprecated: 'Use target specific provisioning profiles instead',
|
166
167
|
verify_block: proc do |value|
|
167
|
-
UI.user_error!("Provisioning profile not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
|
168
|
+
UI.user_error!("Provisioning profile not found at path '#{File.expand_path(value)}'") unless File.exist?(File.expand_path(value))
|
168
169
|
end),
|
169
170
|
FastlaneCore::ConfigItem.new(key: :destination,
|
170
171
|
short_option: "-d",
|
@@ -194,8 +195,7 @@ module Gym
|
|
194
195
|
env_name: "SUPPRESS_OUTPUT",
|
195
196
|
description: "Suppress the output of xcodebuild to stdout. Output is still saved in buildlog_path",
|
196
197
|
optional: true,
|
197
|
-
is_string: false
|
198
|
-
)
|
198
|
+
is_string: false)
|
199
199
|
]
|
200
200
|
end
|
201
201
|
end
|
data/lib/gym/version.rb
CHANGED
@@ -11,16 +11,16 @@ module Gym
|
|
11
11
|
return @patched_package_application_path if File.exist?(@patched_package_application_path)
|
12
12
|
|
13
13
|
Dir.mktmpdir do |tmpdir|
|
14
|
-
# Check current PackageApplication MD5
|
14
|
+
# Check current set of PackageApplication MD5 hashes
|
15
15
|
require 'digest'
|
16
16
|
|
17
17
|
path = File.join(Helper.gem_path("gym"), "lib/assets/package_application_patches/PackageApplication_MD5")
|
18
|
-
|
18
|
+
expected_md5_hashes = File.read(path).split("\n")
|
19
19
|
|
20
20
|
# If that location changes, search it using xcrun --sdk iphoneos -f PackageApplication
|
21
21
|
package_application_path = "#{Xcode.xcode_path}/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication"
|
22
22
|
|
23
|
-
UI.crash!("Unable to patch the `PackageApplication` script bundled in Xcode. This is not supported.") unless
|
23
|
+
UI.crash!("Unable to patch the `PackageApplication` script bundled in Xcode. This is not supported.") unless expected_md5_hashes.include?(Digest::MD5.file(package_application_path).hexdigest)
|
24
24
|
|
25
25
|
# Duplicate PackageApplication script to PackageApplication4Gym
|
26
26
|
FileUtils.copy_file(package_application_path, @patched_package_application_path)
|
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.
|
4
|
+
version: 1.7.0
|
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
|
+
date: 2016-07-16 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.43.
|
19
|
+
version: 0.43.3
|
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.43.
|
29
|
+
version: 0.43.3
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
284
|
version: '0'
|
285
285
|
requirements: []
|
286
286
|
rubyforge_project:
|
287
|
-
rubygems_version: 2.
|
287
|
+
rubygems_version: 2.5.1
|
288
288
|
signing_key:
|
289
289
|
specification_version: 4
|
290
290
|
summary: Building your iOS apps has never been easier
|