Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:openatx/wdaproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 23, 2017
2 parents 0080e4d + 87b05fa commit d2a7a91
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,30 @@ func main() {
if err = c.Start(); err != nil {
log.Fatal(err)
}

// close writers when xcodebuild exit
go func() {
c.Wait()
writer.Close()
}()

lineStr := ""
for {
line, isPrefix, err := bufrd.ReadLine()
if err != nil {
log.Fatal("[WDA] exit", err)
}

if isPrefix {
lineStr = lineStr + string(line)
continue
} else {
lineStr = string(line)
}
lineStr := strings.TrimSpace(string(line))
lineStr = strings.TrimSpace(string(line))

if debug {
fmt.Printf("[WDA] %s\n", lineStr)
}
if err != nil {
log.Fatal("[WDA] exit", err)
}
if strings.Contains(lineStr, "Successfully wrote Manifest cache to") {
log.Println("[WDA] test ipa successfully generated")
}
Expand Down

0 comments on commit d2a7a91

Please sign in to comment.