diff --git a/cmd/common_test.go b/cmd/common_test.go index 5326a143..ad2d61f3 100644 --- a/cmd/common_test.go +++ b/cmd/common_test.go @@ -4,9 +4,8 @@ import ( "testing" "time" - "github.com/stretchr/testify/require" - "github.com/bitrise-tools/go-xcode/profileutil" + "github.com/stretchr/testify/require" ) func createTime(t *testing.T, timeStr string) time.Time { diff --git a/cmd/xcode.go b/cmd/xcode.go index 16d1c3f1..7f45a2f4 100644 --- a/cmd/xcode.go +++ b/cmd/xcode.go @@ -3,6 +3,7 @@ package cmd import ( "fmt" "path/filepath" + "strings" "github.com/bitrise-io/go-utils/colorstring" "github.com/bitrise-io/go-utils/fileutil" @@ -67,7 +68,8 @@ the one you usually open in Xcode, then hit Enter. if err != nil { return fmt.Errorf("failed to read input: %s", err) } - projectPath = projpth + + projectPath = strings.Trim(strings.TrimSpace(projpth), "'\"") } log.Debugf("projectPath: %s", projectPath) xcodeCmd.ProjectFilePath = projectPath