Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile: go test golang.org/x/mobile/bind/objc failed with Xcode 11.1 #35155

Open
hajimehoshi opened this issue Oct 25, 2019 · 0 comments
Open
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@hajimehoshi
Copy link
Member

What version of Go are you using (go version)?

$ go version
go version go1.13.1 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/hajimehoshi/Library/Caches/go-build"
GOENV="/Users/hajimehoshi/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/hajimehoshi/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/ht/ky_bwgzs4bd5z1hh02k34x_h0000gn/T/go-build920015374=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

cd $(go env GOPATH)/src/golang.org/x/mobile
go test ./bind/objc/

What did you expect to see?

The test passes

What did you see instead?

The test fails for example

--- FAIL: TestObjcCustomPkg (49.76s)
    seq_test.go:116: tmpdir = /var/folders/ht/ky_bwgzs4bd5z1hh02k34x_h0000gn/T/bind-objc-seq-test-201072910
    seq_test.go:149: User defaults from command line:
            IDETestRunOnlyIdentifiers = (
            xcodetestTests
        )

        xcodebuild: error: Unable to find a destination matching the provided destination specifier:
                        { platform:iOS Simulator, OS:latest, name:iPhone 6s Plus }

                The requested device could not be found because no available devices matched the request.

                Available destinations for the "xcodetest" scheme:
                        { platform:iOS Simulator, id:1FBDEEDC-D891-47EE-A4E4-C9B5E902110C, OS:13.1, name:iPad Air (3rd generation) }
                        { platform:iOS Simulator, id:30824713-61F9-4BA7-A1EE-248DA40E4E27, OS:13.1, name:iPad Pro (9.7-inch) }
                        { platform:iOS Simulator, id:AF88039D-79C0-4483-8BBD-C30CC066DBEF, OS:13.1, name:iPad Pro (11-inch) }
                        { platform:iOS Simulator, id:0E1C991D-11C6-482A-B9E9-A053C7E91525, OS:13.1, name:iPad Pro (12.9-inch) (3rd generation) }
                        { platform:iOS Simulator, id:E0DB1DB4-2F99-44FA-8DC8-EDB96140E527, OS:13.1, name:iPhone 8 }
                        { platform:iOS Simulator, id:70D15E50-999C-4DAA-8C4A-1EBD680C0A2F, OS:13.1, name:iPhone 8 Plus }
                        { platform:iOS Simulator, id:22A966A1-9AE5-4BFE-9B1A-F7CAB1FACC37, OS:13.1, name:iPhone 11 }
                        { platform:iOS Simulator, id:8E935EFC-97B6-449A-B589-1B0ED3972246, OS:13.1, name:iPhone 11 Pro }
                        { platform:iOS Simulator, id:5F62606E-C1E5-4918-8930-4FCFA9CC8B19, OS:13.1, name:iPhone 11 Pro Max }

                Ineligible destinations for the "xcodetest" scheme:
                        { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
                        { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }
    seq_test.go:150: failed to run xcodebuild: exit status 70
FAIL
FAIL    golang.org/x/mobile/bind/objc   206.323s
FAIL
$ xcodebuild -version
Xcode 11.1
Build version 11A1027

CC @hyangah

@gopherbot gopherbot added this to the Unreleased milestone Oct 25, 2019
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Oct 25, 2019
@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants