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: file is universal (4 slices) but does not contain the arm64 architecture #38981

Open
dsanghan opened this issue May 10, 2020 · 1 comment

Comments

@dsanghan
Copy link

@dsanghan dsanghan commented May 10, 2020

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

$ go version
go version go1.14.2 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/dev/Library/Caches/go-build"
GOENV="/Users/dev/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/dev/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14.2_1/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.2_1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/dev/go/src/github.com/ProtonMail/gopenpgp/go.mod"
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/j8/c5jk9r4j7s5dgj8hvk7k0wmm0000gp/T/go-build996154893=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Follow instructions here: https://github.com/ProtonMail/gopenpgp

cd $GOPATH
mkdir -p src/github.com/ProtonMail/
cd $GOPATH/src/github.com/ProtonMail/
git clone git@github.com:ProtonMail/gopenpgp.git
cd gopenpgp
sh build.sh

Add the generated frameworks to any objective-c project & call any function.

What did you expect to see?

Would be able to use generated framework without issue.

What did you see instead?

ld: warning: ignoring file /Users/dev/Developer/canary/Canary/Canary-iOS/Crypto.framework/Crypto, file is universal (4 slices) but does not contain the arm64 architecture: /Users/dev/Developer/canary/Canary/Canary-iOS/Crypto.framework/Crypto
Undefined symbols for architecture arm64:
  "_CryptoNewKey", referenced from:
      -[CanaryCorePGPManager migrateKeys] in CanaryCorePGPManager.o
ld: symbol(s) not found for architecture arm64
@gopherbot gopherbot added this to the Unreleased milestone May 10, 2020
@gopherbot gopherbot added the mobile label May 10, 2020
@toothrot
Copy link
Contributor

@toothrot toothrot commented May 11, 2020

/cc @hyangah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.