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

Closed
dsanghan opened this issue May 10, 2020 · 2 comments
Labels
FrozenDueToAge 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

@dsanghan
Copy link

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 Android, iOS, and x/mobile label May 10, 2020
@toothrot toothrot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label May 11, 2020
@toothrot
Copy link
Contributor

/cc @hyangah

@changkun
Copy link
Member

It seems that it is an issue with the provided module https://github.com/ProtonMail/gopenpgp as the module did not support Go Modules. At the moment, ProtonMail/gopenpgp@b5823b9 have updated their build process, which seems to suggest this issue has become obsolete. Therefore close this due to outdated.

@golang golang locked and limited conversation to collaborators Feb 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge 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

4 participants