okx / exchain

⛓️ EVM & Wasm $ IBC-compatible, OKTC is a L1 blockchain network built on top of Cosmos SDK that aims for optimal interoperability and performance ✨
https://www.okx.com/oktc
Other
568 stars 181 forks source link

'SecTrustedApplicationCreateFromPath' is deprecated #1050

Open ruofei-wang opened 2 years ago

ruofei-wang commented 2 years ago

按照 https://github.com/okex/okexchain-docs/blob/master/docs/getting-start/install-okexchain.md 这里的教程文档安装 exchaind 和 exchaincli,安装过程中没有报错 只有如下 waring 信息

go install -v -ldflags '-X github.com/cosmos/cosmos-sdk/version.Version=v0.19.6 -X github.com/cosmos/cosmos-sdk/version.Name=exchain -X github.com/cosmos/cosmos-sdk/version.ServerName=exchaind -X github.com/cosmos/cosmos-sdk/version.ClientName=exchaincli -X github.com/cosmos/cosmos-sdk/version.Commit=e41c7b19776d7913c271eba6a16b9c3cd32f324b -X github.com/cosmos/cosmos-sdk/version.CosmosSDK=v0.39.2 -X github.com/cosmos/cosmos-sdk/version.Tendermint=v0.33.9 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo" -X github.com/tendermint/tendermint/types.startBlockHeightStr=0 -X github.com/cosmos/cosmos-sdk/types.MILESTONE_MERCURY_HEIGHT=0'  -gcflags "all=-N -l" -tags "" ./cmd/exchaincli
# github.com/keybase/go-keychain
cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here
github.com/okex/exchain/cmd/exchaincli

执行 exchaind version --longexchaincli version --long 显示 zsh: command not found: exchaind
zsh: command not found: exchaincli

banishee commented 2 years ago

应该是你本地 go env问题

banishee commented 2 years ago

warning可以忽略

ruofei-wang commented 2 years ago

warning可以忽略

是呀 我也觉得 warning 可以忽略 ,但是 command not found

cwbhhjl commented 2 years ago

可能你 GOPATH 下的bin目录不在 PATH 里?