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
go get github.com/ipfs/go-ipfs/cmd/ipfs
go get -d github.com/ipfs/go-ipfs/cmd/ipfs/...
gomobile bind -target=ios github.com/ipfs/go-ipfs
What did you expect to see?
Framework with .h file containing interface for classes, constructors and methods to work with ipfs.
What did you see instead?
As you can see, only IpfsVersion is available:
Ipfs.h:
// Objective-C API for talking to the following Go packages
//
// github.com/ipfs/go-ipfs
//
// File is generated by gomobile bind. Do not edit.
#ifndef __Ipfs_FRAMEWORK_H__
#define __Ipfs_FRAMEWORK_H__
#include "Ipfs.objc.h"
#include "Universe.objc.h"
#endif
Ipfs.objc.h
// Objective-C API for talking to github.com/ipfs/go-ipfs Go package.
// gobind -lang=objc github.com/ipfs/go-ipfs
//
// File is generated by gobind. Do not edit.
#ifndef __Ipfs_H__
#define __Ipfs_H__
@import Foundation;
#include "ref.h"
#include "Universe.objc.h"
FOUNDATION_EXPORT NSString* _Nonnull const IpfsApiVersion;
/**
* CurrentVersionNumber is the current application's version literal
*/
FOUNDATION_EXPORT NSString* _Nonnull const IpfsCurrentVersionNumber;
@interface Ipfs : NSObject
/**
* CurrentCommit is the current git commit, this is set as a ldflag in the Makefile
*/
+ (NSString* _Nonnull) currentCommit;
+ (void) setCurrentCommit:(NSString* _Nonnull)v;
@end
#endif
The text was updated successfully, but these errors were encountered:
bradfitz
changed the title
[gomobile] after binding ios framework for go-ipfs it has nothing in it.
x/mobile/bind: after binding ios framework for go-ipfs it has nothing in it
Apr 24, 2019
That's all the github.com/ipfs/go-ipfs package contains (according to https://godoc.org/github.com/ipfs/go-ipfs). You have to list all Go packages you want to bind on the gomobile command line.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go get github.com/ipfs/go-ipfs/cmd/ipfs
go get -d github.com/ipfs/go-ipfs/cmd/ipfs/...
gomobile bind -target=ios github.com/ipfs/go-ipfs
What did you expect to see?
Framework with .h file containing interface for classes, constructors and methods to work with ipfs.
What did you see instead?
As you can see, only IpfsVersion is available:
Ipfs.h:
Ipfs.objc.h
The text was updated successfully, but these errors were encountered: