Skip to content

Commit b2286a9

Browse files
Add UI Target support (#94)
* update osxkeychain to work with go 1.11 version. * feat: init xcodeUITestsCmd * filterScheme by BuildFortesting == YES * - * filter schemes: If the scheme has a UITest target then we will list it * add xcodeuitestcmd.go * dep: add xcode-project to the dependency list. * init codesigndocUITests.go temporarily. * Certs only * get profile for UITestTarget * clean * - * clean * add BuildForTestingError; If the scheme has multiple UITest target run the scanner with each of them; * remove LogPretty() and clean * add CreateXcodeManagedSelectableCodeSignGroupFilter * CI fix * dep: update go-xcode dependency * fix some log * dep: update go-xcode and xcode-project dependendcies * dep: re-init dep: add prune option and remove the unused dependencies * PR clean - fix * fix some log / comment * PR clean - fix * ref: --certs-only flag moved from global flag to xcode and xamarin command flag, because the xcudeuitests command does not support it yet * Revert "ref: --certs-only flag moved from global flag to xcode and xamarin command flag, because the xcudeuitests command does not support it yet" This reverts commit 0ae0e55. * add some log for scheme scanning * dep: lock deps on master branch; dep update * PR: change filterCertificates method name to selectFilteredCertificates; and it will return a new array of selected certs which needed to append to the selectedCertificates later;
1 parent e4bebc5 commit b2286a9

File tree

983 files changed

+61620
-147561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

983 files changed

+61620
-147561
lines changed

Gopkg.lock

Lines changed: 62 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1+
12
[[constraint]]
2-
name = "github.com/bitrise-io/go-utils"
33
branch = "master"
4+
name = "github.com/bitrise-io/go-utils"
45

56
[[constraint]]
6-
name = "github.com/bitrise-io/goinp"
77
branch = "master"
8+
name = "github.com/bitrise-io/goinp"
89

910
[[constraint]]
10-
name = "github.com/bitrise-tools/go-xamarin"
1111
branch = "master"
12+
name = "github.com/bitrise-tools/go-xamarin"
1213

1314
[[constraint]]
15+
branch = "master"
1416
name = "github.com/bitrise-tools/go-xcode"
17+
18+
[[constraint]]
1519
branch = "master"
20+
name = "github.com/bitrise-tools/xcode-project"
1621

1722
[[constraint]]
1823
name = "github.com/pkg/errors"
@@ -25,3 +30,7 @@
2530
[[constraint]]
2631
name = "github.com/stretchr/testify"
2732
branch = "master"
33+
34+
[prune]
35+
go-tests = true
36+
unused-packages = true

bitriseio/bitrise/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (client *Client) GetUploadedProvisioningProfileUUIDby(profileSlug string) (
118118
return "", err
119119
}
120120

121-
data, err := profileutil.NewProvisioningProfileInfo(*plistData, profileutil.ProfileTypeIos)
121+
data, err := profileutil.NewProvisioningProfileInfo(*plistData)
122122
if err != nil {
123123
return "", err
124124
}

cmd/scan.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,30 @@ with as many details & logs as you can share!
5858
` + colorstring.Redf("Error: %s", e.msg)
5959
}
6060

61+
// BuildForTestingError ...
62+
type BuildForTestingError struct {
63+
tool Tool
64+
msg string
65+
}
66+
67+
// Error ...
68+
func (e BuildForTestingError) Error() string {
69+
return colorstring.Redf("Error: %s", e.msg) + `
70+
71+
------------------------------` + `
72+
First of all, check the selected scheme in ` + string(e.tool) + `:
73+
- Make sure, you have enabled at least one UITest target for test run in the selected scheme's build option.
74+
- Make sure that the UITest target is added (and enabled) in the selected scheme's test option.
75+
76+
After this ` + colorstring.Red("please make sure that you can run build-for-testing for your app from "+e.tool+".") + `
77+
codesigndoc only works if you can run build-for-testing for your app from ` + string(e.tool) + `.
78+
For this run a ` + colorstring.Red("clean") + ` in your ` + string(e.tool) + `, after that, run a ` + colorstring.Red("build-for-testing") + ` for your app in ` + string(e.tool) + `.
79+
If you can, and you get a valid *-Runner.app file, ` + colorstring.Red("please create an issue") + ` on GitHub at: https://github.com/bitrise-tools/codesigndoc/issues
80+
with as many details & logs as you can share!
81+
------------------------------
82+
`
83+
}
84+
6185
func printFinished(provProfilesUploaded bool, certsUploaded bool) {
6286
fmt.Println()
6387
log.Successf("That's all.")

0 commit comments

Comments
 (0)