You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
Unable to upgrade to the version v0.3.0 of go-libp2p-connmgr in a gomobile project. The build fails because of an error from the build of this dependency: github.com/elastic/gosigar.
The libproc.h header file seems to be missing in the Xcode iOS SDK.
$ gomobile bind -target ios/arm64 -o BAR.xcframework github.com/FOO/BAR
gomobile: ios/arm64: go build -buildmode=c-archive -o /var/folders/95/316g3tpn3cj_3lfqwgtqwfkr0000gn/T/gomobile-work-1004638070/BAR-ios-arm64.a ./gobind failed: exit status 2
# github.com/elastic/gosigar
/var/folders/95/316g3tpn3cj_3lfqwgtqwfkr0000gn/T/gomobile-work-1004638070/ios/pkg/mod/github.com/elastic/[email protected]/sigar_darwin.go:12:10: fatal error: 'libproc.h' file not found
#include <libproc.h>
^~~~~~~~~~~
1 error generated.
iOS gomobile is not one of the platforms we're targeting.
Feel free to go ahead an file an issue with gosigar and bubble up the change once it's fixed there, but the libp2p team won't actively work on a fix for this.
birros
added a commit
to birros/gosigar
that referenced
this issue
Dec 19, 2021
Unable to upgrade to the version
v0.3.0
ofgo-libp2p-connmgr
in a gomobile project. The build fails because of an error from the build of this dependency: github.com/elastic/gosigar.The
libproc.h
header file seems to be missing in the Xcode iOS SDK.Related to #137 and #134
macOS 12.1
v0.3.0
go1.17.5 darwin/amd64
v0.0.0-20211207041440-4e6c2922fdee
The text was updated successfully, but these errors were encountered: