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:
Now all the code in CoreIpfsNode.h looks like this:
// skipped field IpfsNode.Identity with unsupported type: github.com/libp2p/go-libp2p-peer.ID
// skipped field IpfsNode.Repo with unsupported type: github.com/ipfs/go-ipfs/repo.Repo
// skipped field IpfsNode.Pinning with unsupported type: github.com/ipfs/go-ipfs/pin.Pinner
...
Any suggestions how to fix this?
Thank you!
mNizhurin commentedApr 25, 2019
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 envOutputWhat 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: