Added Xcode 12.5.1 to tests and also made this version the default one. (#3427)
* changed and added Xcode 12.5.1 * text Xcode 13 * changed to runs-on: macOS-11 * some fixes * removed duplicate * Rebuild static framework * Rebuild static framework in ios_app_with_static_frameworks * Rebuild static framework in ios_app_with_static_frameworks * Rebuild static framework in ios_app_with_transitive_framework * Rebuild static framework in ios_app_with_transitive_framework macOS * Execute `tuist` without `swift run` when executing acceptance tests * Fix `generate yields` step Co-authored-by: Stefan Fessler <Stefan.Fessler@external.erstegroup.com> Co-authored-by: apps4everyone <stefan@apps4everyone.at> Co-authored-by: Alfredo Delli Bovi <alfredo.dellibovi@gmail.com>
This commit is contained in:
parent
bd047149aa
commit
b74213286a
|
@ -20,10 +20,10 @@ env:
|
|||
jobs:
|
||||
test:
|
||||
name: Build benchmarking tooling with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macOS-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
|
|
@ -27,10 +27,10 @@ env:
|
|||
jobs:
|
||||
format:
|
||||
name: Format code with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode ${{ matrix.xcode }}
|
||||
|
@ -52,10 +52,10 @@ jobs:
|
|||
run: ./fourier format swift
|
||||
lint:
|
||||
name: Lint code with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
@ -79,10 +79,10 @@ jobs:
|
|||
run: ./fourier lint all
|
||||
lint_lockfiles:
|
||||
name: Lint lockfiles
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
|
|
@ -22,10 +22,10 @@ env:
|
|||
jobs:
|
||||
test:
|
||||
name: Test the fixture generator with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
|
|
@ -27,10 +27,10 @@ env:
|
|||
jobs:
|
||||
build:
|
||||
name: Build with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
@ -53,10 +53,10 @@ jobs:
|
|||
./fourier build tuist all
|
||||
test:
|
||||
name: Test with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
|
|
@ -22,10 +22,10 @@ env:
|
|||
jobs:
|
||||
bundle-all:
|
||||
name: Bundle tuist and tuistenv with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# release:
|
||||
# name: Release Tuist
|
||||
# if: "!contains(github.event.head_commit.author.name, 'GitHub Action')"
|
||||
# runs-on: macos-latest
|
||||
# runs-on: macOS-11
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
|
|
|
@ -27,10 +27,10 @@ env:
|
|||
jobs:
|
||||
unit_tests:
|
||||
name: Unit tests with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
@ -60,10 +60,10 @@ jobs:
|
|||
./fourier test tuist unit
|
||||
release_build:
|
||||
name: Release build with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macOS-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.2', '12.4'] # keep 12.2 to ensure backwards compatibility
|
||||
xcode: ['12.4', '12.5.1', '13.0'] # keep 12.4 to ensure backwards compatibility
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Select Xcode
|
||||
|
@ -80,10 +80,10 @@ jobs:
|
|||
run: swift build -c release --product tuistenv
|
||||
acceptance_tests:
|
||||
name: ${{ matrix.feature }} acceptance tests with Xcode ${{ matrix.xcode }}
|
||||
runs-on: macos-latest
|
||||
runs-on: macOS-11
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ['12.4']
|
||||
xcode: ['12.5.1']
|
||||
feature:
|
||||
[
|
||||
'build',
|
||||
|
|
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -4,17 +4,19 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
|
|||
|
||||
## Next
|
||||
|
||||
### Changed
|
||||
|
||||
- **Breaking** Minimum supported Xcode version bumped to 12.4.
|
||||
|
||||
### Fixed
|
||||
- settings-to-xcconfig migration command produces correct string format. [#3260](https://github.com/tuist/tuist/3260) by [@saim80](https://github.com/saim80)
|
||||
- Fix caching of manifests that use plugins [#3370](https://github.com/tuist/tuist/pull/3370) by [@luispadron](https://github.com/luispadron)
|
||||
|
||||
### Added
|
||||
|
||||
- Allow to pass Cloud authentication token via TUIST_CLOUD_TOKEN even when not CI [#3380](https://github.com/tuist/tuist/pull/3380) by [@danyf90](https://github.com/danyf90)
|
||||
- Support for cache categories argument in `tuist clean` command [#3407](https://github.com/tuist/tuist/pull/3407) by [@danyf90](https://github.com/danyf90)
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix caching of manifests that use plugins [#3370](https://github.com/tuist/tuist/pull/3370) by [@luispadron](https://github.com/luispadron)
|
||||
- Fix linking of transitive precompiled static frameworks for unit test with a host app [#3357](https://github.com/tuist/tuist/pull/3357) by [@adellibovi](https://github.com/adellibovi), [@kwridan](https://github.com/kwridan)
|
||||
- settings-to-xcconfig migration command produces correct string format. [#3260](https://github.com/tuist/tuist/3260) by [@saim80](https://github.com/saim80)
|
||||
|
||||
## 1.49.2
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -7,7 +7,7 @@ let config = TapestryConfig(
|
|||
.pre(tool: "git", arguments: ["checkout", "main"]),
|
||||
.pre(tool: "git", arguments: ["pull"]),
|
||||
.pre(tool: "bundle", arguments: ["install"]),
|
||||
.pre(tool: "sudo", arguments: ["xcode-select", "-s", "/Applications/Xcode_12.2.app"]),
|
||||
.pre(tool: "sudo", arguments: ["xcode-select", "-s", "/Applications/Xcode_12.4.app"]),
|
||||
.pre(.dependenciesCompatibility([.spm(.all)])),
|
||||
.pre(tool: "swift", arguments: ["test"]),
|
||||
.pre(.docsUpdate),
|
||||
|
|
|
@ -11,7 +11,8 @@ module Fourier
|
|||
def self.tuist(*args)
|
||||
Dir.chdir(Constants::TUIST_DIRECTORY) do
|
||||
self.system("swift", "build")
|
||||
self.system("swift", "run", "tuist", *args)
|
||||
@tuist = ".build/debug/tuist"
|
||||
self.system(@tuist, *args)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
# frozen_string_literal: true
|
||||
Then(/^tuist builds the project$/) do
|
||||
system("swift", "run", "tuist", "build", "--path", @dir)
|
||||
system(@tuist, "build", "--path", @dir)
|
||||
end
|
||||
Then(/^tuist builds the scheme ([a-zA-Z\-]+) from the project$/) do |scheme|
|
||||
system("swift", "run", "tuist", "build", scheme, "--path", @dir)
|
||||
system(@tuist, "build", scheme, "--path", @dir)
|
||||
end
|
||||
|
||||
Then(%r{^tuist builds the scheme ([a-zA-Z\-]+)\
|
||||
and configuration ([a-zA-Z\-]+) from the project$}) do |scheme, configuration|
|
||||
system("swift", "run", "tuist", "build", scheme, "--path", @dir, "--configuration", configuration)
|
||||
system(@tuist, "build", scheme, "--path", @dir, "--configuration", configuration)
|
||||
end
|
||||
|
||||
Then(%r{^tuist builds the scheme ([a-zA-Z\-]+)\
|
||||
and configuration ([a-zA-Z\-]+) from the project to output path (.+)$}) do |scheme, configuration, path|
|
||||
system("swift", "run", "tuist", "build", scheme, "--path", @dir, "--configuration", configuration,
|
||||
system(@tuist, "build", scheme, "--path", @dir, "--configuration", configuration,
|
||||
"--build-output-path", File.join(@dir, path))
|
||||
end
|
||||
|
||||
Then(/^tuist builds the project at (.+)$/) do |path|
|
||||
system("swift", "run", "tuist", "build", "--path", File.join(@dir, path))
|
||||
system(@tuist, "build", "--path", File.join(@dir, path))
|
||||
end
|
||||
|
|
|
@ -2,19 +2,19 @@
|
|||
require "xcodeproj"
|
||||
|
||||
Then(/^tuist warms the cache$/) do
|
||||
system("swift", "run", "tuist", "cache", "warm", "--path", @dir)
|
||||
system(@tuist, "cache", "warm", "--path", @dir)
|
||||
end
|
||||
|
||||
Then(/^tuist warms the cache of ([a-zA-Z]+)$/) do |target_name|
|
||||
system("swift", "run", "tuist", "cache", "warm", "--path", @dir, target_name)
|
||||
system(@tuist, "cache", "warm", "--path", @dir, target_name)
|
||||
end
|
||||
|
||||
Then(/^tuist warms the cache with xcframeworks$/) do
|
||||
system("swift", "run", "tuist", "cache", "warm", "--path", @dir, "--xcframeworks")
|
||||
system(@tuist, "cache", "warm", "--path", @dir, "--xcframeworks")
|
||||
end
|
||||
|
||||
Then(/^tuist warms the cache with ([a-zA-Z]+) profile$/) do |cache_profile|
|
||||
system("swift", "run", "tuist", "cache", "warm", "--path", @dir, "--profile", cache_profile)
|
||||
system(@tuist, "cache", "warm", "--path", @dir, "--profile", cache_profile)
|
||||
end
|
||||
|
||||
Then(/^([a-zA-Z]+) links the framework ([a-zA-Z]+) from the cache/) do |target_name, framework_name|
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
Then(/tuist fetches dependencies/) do
|
||||
_, err, status = Open3.capture3("swift", "run", "tuist", "dependencies", "fetch", "--path", @dir)
|
||||
_, err, status = Open3.capture3(@tuist, "dependencies", "fetch", "--path", @dir)
|
||||
flunk(err) unless status.success?
|
||||
end
|
||||
|
||||
Then(/tuist updates dependencies/) do
|
||||
_, err, status = Open3.capture3("swift", "run", "tuist", "dependencies", "update", "--path", @dir)
|
||||
_, err, status = Open3.capture3(@tuist, "dependencies", "update", "--path", @dir)
|
||||
flunk(err) unless status.success?
|
||||
end
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
Then(/^tuist graph$/) do
|
||||
system("swift", "run", "tuist", "graph", "--path", @dir, "--output-path", @dir)
|
||||
system(@tuist, "graph", "--path", @dir, "--output-path", @dir)
|
||||
end
|
||||
|
||||
Then(/^tuist graph of ([a-zA-Z]+)$/) do |target_name|
|
||||
system("swift", "run", "tuist", "graph", "--path", @dir, "--output-path", @dir, target_name)
|
||||
system(@tuist, "graph", "--path", @dir, "--output-path", @dir, target_name)
|
||||
end
|
||||
|
||||
Then(/^I should be able to open a graph file$/) do
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
When(/^I initialize a (.+) application named (.+) with (.+) template$/) do |platform, name, template|
|
||||
system("swift", "run", "tuist", "init", "--template", template, "--path", @dir, "--platform", platform, "--name",
|
||||
system(@tuist, "init", "--template", template, "--path", @dir, "--platform", platform, "--name",
|
||||
name)
|
||||
end
|
||||
|
||||
When(/^I initialize a (.+) application named ([^with]+)$/) do |platform, name|
|
||||
system("swift", "run", "tuist", "init", "--path", @dir, "--platform", platform, "--name", name)
|
||||
system(@tuist, "init", "--path", @dir, "--platform", platform, "--name", name)
|
||||
end
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
# frozen_string_literal: true
|
||||
Then(/tuist lints project's code and passes/) do
|
||||
_, err, status = Open3.capture3("swift", "run", "tuist", "lint", "code", "--path", @dir)
|
||||
_, err, status = Open3.capture3(@tuist, "lint", "code", "--path", @dir)
|
||||
flunk(err) unless status.success?
|
||||
end
|
||||
|
||||
Then(/tuist lints project's code and fails/) do
|
||||
_, err, status = Open3.capture3("swift", "run", "tuist", "lint", "code", "--path", @dir)
|
||||
_, err, status = Open3.capture3(@tuist, "lint", "code", "--path", @dir)
|
||||
flunk(err) if status.success?
|
||||
end
|
||||
|
||||
Then(/tuist lints code of target with name "(.+)" and passes/) do |target_name|
|
||||
_, err, status = Open3.capture3("swift", "run", "tuist", "lint", "code", target_name, "--path", @dir)
|
||||
_, err, status = Open3.capture3(@tuist, "lint", "code", target_name, "--path", @dir)
|
||||
flunk(err) unless status.success?
|
||||
end
|
||||
|
||||
Then(/tuist strict lints code of target with name "(.+)" and fails/) do |target_name|
|
||||
_, err, status = Open3.capture3("swift", "run", "tuist", "lint", "code", target_name, "--path", @dir, "--strict")
|
||||
_, err, status = Open3.capture3(@tuist, "lint", "code", target_name, "--path", @dir, "--strict")
|
||||
flunk(err) if status.success?
|
||||
end
|
||||
|
||||
Then(/tuist lints code of target with name "(.+)" and fails/) do |target_name|
|
||||
_, err, status = Open3.capture3("swift", "run", "tuist", "lint", "code", target_name, "--path", @dir)
|
||||
_, err, status = Open3.capture3(@tuist, "lint", "code", target_name, "--path", @dir)
|
||||
flunk(err) if status.success?
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
Then(/tuist lints the project and fails/) do
|
||||
_, _, status = Open3.capture3("swift", "run", "tuist", "lint", "project", "--path", @dir)
|
||||
_, _, status = Open3.capture3(@tuist, "lint", "project", "--path", @dir)
|
||||
refute(status.success?, "Expected 'tuist lint project' to fail but it didn't")
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ in ios_workspace_with_microfeature_architecture matches (.+)$}) do |framework, j
|
|||
|
||||
assert(false, "Project #{fixture_path} not found") unless File.exist?(fixture_path)
|
||||
|
||||
out, _ = Open3.capture2("swift", "run", "tuist", "migration", "list-targets", "-p", fixture_path)
|
||||
out, _ = Open3.capture2(@tuist, "migration", "list-targets", "-p", fixture_path)
|
||||
|
||||
assert(out.include?(expected_json))
|
||||
end
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Then(/^tuist runs the scheme ([a-zA-Z\-]+)t$/) do |scheme|
|
||||
system("swift", "run", "tuist", "run", "--path", @dir, scheme)
|
||||
system(@tuist, "run", "--path", @dir, scheme)
|
||||
end
|
||||
|
||||
Then(/^tuist runs the scheme ([a-zA-Z\-]+) outputting to (.+)$/) do |scheme, file|
|
||||
system("swift", "run", "tuist", "run", "--path", @dir, scheme, ">", File.join(@dir, file))
|
||||
system(@tuist, "run", "--path", @dir, scheme, ">", File.join(@dir, file))
|
||||
end
|
||||
|
||||
Then(/^tuist runs the scheme ([a-zA-Z\-]+)$/) do |scheme|
|
||||
system("swift", "run", "tuist", "run", "--path", @dir, scheme)
|
||||
system(@tuist, "run", "--path", @dir, scheme)
|
||||
end
|
||||
|
||||
Then(%r{^tuist runs the scheme ([a-zA-Z\-]+)\
|
||||
and configuration ([a-zA-Z\-]+)$}) do |scheme, configuration|
|
||||
system("swift", "run", "tuist", "run", "--path", @dir, "--configuration", configuration, scheme)
|
||||
system(@tuist, "run", "--path", @dir, "--configuration", configuration, scheme)
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Then(/tuist scaffolds a (.+) template to (.+) named (.+)/) do |template, path, name|
|
||||
system("swift", "run", "tuist", "scaffold", template, "--path", File.join(@dir, path), "--name", name)
|
||||
system(@tuist, "scaffold", template, "--path", File.join(@dir, path), "--name", name)
|
||||
end
|
||||
|
||||
Then(/content of a file named ([a-zA-Z\-_]+) in a directory (.+) should be equal to (.+)/) do |file, dir, content|
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
# frozen_string_literal: true
|
||||
require "open3"
|
||||
|
||||
Given(/tuist is available/) do
|
||||
system("swift", "build", "--package-path", File.expand_path("../../../../..", __dir__))
|
||||
system("swift", "build")
|
||||
@tuist = ".build/debug/tuist"
|
||||
@tuistenv = ".build/debug/tuistenv"
|
||||
end
|
||||
|
||||
Then(/^tuist generates the project$/) do
|
||||
system("swift", "run", "tuist", "generate", "--path", @dir)
|
||||
system(@tuist, "generate", "--path", @dir)
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/^tuist generates the project and outputs: (.+)$/) do |output|
|
||||
out, err, status = Open3.capture3("swift", "run", "tuist", "generate", "--path", @dir)
|
||||
out, err, status = Open3.capture3(@tuist, "generate", "--path", @dir)
|
||||
assert(status.success?, err)
|
||||
assert out.include?(output), "The output from Tuist generate doesn't include: #{output}"
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
|
@ -21,76 +22,76 @@ end
|
|||
|
||||
Then(/^tuist generates the project with environment variable (.+) and value (.+)$/) do |variable, value|
|
||||
ENV[variable] = value
|
||||
system("swift", "run", "tuist", "generate", "--path", @dir)
|
||||
system(@tuist, "generate", "--path", @dir)
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "*.xcodeproj")).first
|
||||
ENV[variable] = nil
|
||||
end
|
||||
|
||||
Then(%r{^tuist generates the project at ([a-zA-Z]/+)$}) do |path|
|
||||
system("swift", "run", "tuist", "generate", "--path", File.join(@dir, path))
|
||||
system(@tuist, "generate", "--path", File.join(@dir, path))
|
||||
@workspace_path = Dir.glob(File.join(@dir, path, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, path, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/^tuist focuses the target ([a-zA-Z]+)$/) do |target|
|
||||
system("swift", "run", "tuist", "focus", "--no-open", "--path", @dir, target)
|
||||
system(@tuist, "focus", "--no-open", "--path", @dir, target)
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/^tuist focuses the target ([a-zA-Z]+) with ([a-zA-Z]+) profile$/) do |target, cache_profile|
|
||||
system("swift", "run", "tuist", "focus", "--no-open", "--path", @dir, target, "--profile", cache_profile)
|
||||
system(@tuist, "focus", "--no-open", "--path", @dir, target, "--profile", cache_profile)
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(%r{^tuist focuses the target ([a-zA-Z]+) at ([a-zA-Z]/+)$}) do |target, path|
|
||||
system("swift", "run", "tuist", "focus", "--no-open", "--path", File.join(@dir, path), target)
|
||||
system(@tuist, "focus", "--no-open", "--path", File.join(@dir, path), target)
|
||||
@workspace_path = Dir.glob(File.join(@dir, path, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, path, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(%r{^tuist focuses the targets ([a-zA-Z,]+) at ([a-zA-Z]/+)$}) do |targets, path|
|
||||
system("swift", "run", "tuist", "focus", "--no-open", "--path", File.join(@dir, path), *targets.split(","))
|
||||
system(@tuist, "focus", "--no-open", "--path", File.join(@dir, path), *targets.split(","))
|
||||
@workspace_path = Dir.glob(File.join(@dir, path, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, path, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/^tuist focuses the target ([a-zA-Z]+) using xcframeworks$/) do |target|
|
||||
system("swift", "run", "tuist", "focus", "--no-open", "--path", @dir, target, "--xcframeworks")
|
||||
system(@tuist, "focus", "--no-open", "--path", @dir, target, "--xcframeworks")
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(%r{^tuist focuses the target ([a-zA-Z]+) at ([a-zA-Z]/+) using xcframeworks$}) do |target, path|
|
||||
system("swift", "run", "tuist", "focus", "--no-open", "--path", File.join(@dir, path), target, "--xcframeworks")
|
||||
system(@tuist, "focus", "--no-open", "--path", File.join(@dir, path), target, "--xcframeworks")
|
||||
@workspace_path = Dir.glob(File.join(@dir, path, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, path, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(%r{^tuist focuses the targets ([a-zA-Z,]+) at ([a-zA-Z]/+) using xcframeworks$}) do |targets, path|
|
||||
system("swift", "run", "tuist", "focus", "--no-open", "--path", File.join(@dir, path), *targets.split(","),
|
||||
system(@tuist, "focus", "--no-open", "--path", File.join(@dir, path), *targets.split(","),
|
||||
"--xcframeworks")
|
||||
@workspace_path = Dir.glob(File.join(@dir, path, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, path, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/tuist edits the project/) do
|
||||
system("swift", "run", "tuist", "edit", "--path", @dir, "--permanent")
|
||||
system(@tuist, "edit", "--path", @dir, "--permanent")
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/tuist sets up the project/) do
|
||||
system("swift", "run", "tuist", "up", "--path", @dir)
|
||||
system(@tuist, "up", "--path", @dir)
|
||||
@workspace_path = Dir.glob(File.join(@dir, "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/tuist generate yields error "(.+)"/) do |error|
|
||||
expected_msg = error.gsub("${ARG_PATH}", @dir)
|
||||
_, stderr, status = Open3.capture3("swift", "run", "--skip-build", "tuist", "generate", "--path", @dir)
|
||||
_, stderr, status = Open3.capture3(@tuist, "generate", "--path", @dir)
|
||||
actual_msg = stderr.strip
|
||||
|
||||
error_message = <<~EOD
|
||||
|
@ -109,5 +110,5 @@ Then(/tuistenv should succeed in installing the latest version/) do
|
|||
# Matches: let version = "3.2.1"
|
||||
version = File.read(constants_path).match(/let\sversion\s=\s\"(.+)\"/)[1].chomp
|
||||
|
||||
system("swift", "run", "tuistenv", "install", version)
|
||||
system(@tuistenv, "install", version)
|
||||
end
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Then(/^tuist runs a task ([a-zA-Z\-]+)$/) do |name|
|
||||
system("swift", "run", "tuist", "exec", name, "--path", @dir)
|
||||
system(@tuist, "exec", name, "--path", @dir)
|
||||
end
|
||||
|
||||
Then(/^tuist runs a task (.+) with attribute (.+) as (.+)$/) do |name, attribute, attribute_value|
|
||||
system("swift", "run", "tuist", "exec", name, "--#{attribute}", attribute_value, "--path", @dir)
|
||||
system(@tuist, "exec", name, "--#{attribute}", attribute_value, "--path", @dir)
|
||||
end
|
||||
|
||||
Then(/^content of a file named ([a-zA-Z\-_]+) should be equal to (.+)$/) do |file, content|
|
||||
|
|
|
@ -1,26 +1,27 @@
|
|||
# frozen_string_literal: true
|
||||
require "xcodeproj"
|
||||
|
||||
|
||||
Then(/^tuist tests the scheme ([a-zA-Z\-]+) from the project$/) do |scheme|
|
||||
system("swift", "run", "tuist", "test", scheme, "--path", @dir)
|
||||
system(@tuist, "test", scheme, "--path", @dir)
|
||||
end
|
||||
|
||||
Then(/^tuist tests the scheme ([a-zA-Z\-]+) and configuration ([a-zA-Z]+) from the project$/) do |scheme, configuration|
|
||||
system("swift", "run", "tuist", "test", scheme, "--path", @dir, "--configuration", configuration)
|
||||
system(@tuist, "test", scheme, "--path", @dir, "--configuration", configuration)
|
||||
end
|
||||
|
||||
Then(/^tuist tests the project at (.+)$/) do |path|
|
||||
system("swift", "run", "tuist", "test", "--path", File.join(@dir, path))
|
||||
system(@tuist, "test", "--path", File.join(@dir, path))
|
||||
end
|
||||
|
||||
Then(/^tuist tests the project$/) do
|
||||
system("swift", "run", "tuist", "test", "--path", @dir)
|
||||
system(@tuist, "test", "--path", @dir)
|
||||
@workspace_path = Dir.glob(File.join(@dir, "Automation", "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "Automation", "*.xcodeproj")).first
|
||||
end
|
||||
|
||||
Then(/^tuist tests and cleans the project$/) do
|
||||
system("swift", "run", "tuist", "test", "--clean", "--path", @dir)
|
||||
system(@tuist, "test", "--clean", "--path", @dir)
|
||||
@workspace_path = Dir.glob(File.join(@dir, "Automation", "*.xcworkspace")).first
|
||||
@xcodeproj_path = Dir.glob(File.join(@dir, "Automation", "*.xcodeproj")).first
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
|
||||
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
|
||||
#ifndef PREBUILTSTATICFRAMEWORK_SWIFT_H
|
||||
#define PREBUILTSTATICFRAMEWORK_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
|
||||
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
|
||||
#ifndef PREBUILTSTATICFRAMEWORK_SWIFT_H
|
||||
#define PREBUILTSTATICFRAMEWORK_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
|
||||
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
|
||||
#ifndef PREBUILTSTATICFRAMEWORK_SWIFT_H
|
||||
#define PREBUILTSTATICFRAMEWORK_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
|
||||
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
|
||||
#ifndef FRAMEWORK2_SWIFT_H
|
||||
#define FRAMEWORK2_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -3,7 +3,7 @@
|
|||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>20D80</string>
|
||||
<string>21A5506j</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
|
@ -27,21 +27,21 @@
|
|||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>12D4e</string>
|
||||
<string>12E507</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>11.1</string>
|
||||
<string>11.3</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>20C63</string>
|
||||
<string>20E214</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx11.1</string>
|
||||
<string>macosx11.3</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1240</string>
|
||||
<string>1251</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>12D4e</string>
|
||||
<string>12E507</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>11.1</string>
|
||||
<string>11.3</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright Tuist©. All rights reserved.</string>
|
||||
</dict>
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
|
||||
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
|
||||
#ifndef FRAMEWORK2_SWIFT_H
|
||||
#define FRAMEWORK2_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue