Skip to content
Easy multi blockchain wallet management SDK for iOS.
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Frameworks
Libraries
NRLWalletSDK Example
NRLWalletSDK.xcodeproj
Sources
.gitignore
.swift-version
.travis.yml
Api.md
Cartfile
Cartfile.resolved
LICENSE
NRLWalletSDK.framework.zip
Readme.md

Readme.md

How to use

environment

carthage

xcode setting

  • Select proper command line tool from Xcode > Preferences > Locations
  • Disable bitecode at build settings.

Cartfile

To use NRLWalletSDK, need to make Cartfile at the root folder of your project.

github "krzyzanowskim/CryptoSwift"
github "attaswift/BigInt" ~> 3.0
github "Boilertalk/Web3.swift"
github "Alamofire/Alamofire" ~> 4.7
github "Hearst-DD/ObjectMapper" ~> 3.2
github "SwiftyJSON/SwiftyJSON" ~> 4.0
github "gedanziger/nrlwallet-ios-sdk"

Update Carthage

Once you made cartfile, you can now update carthage.

carthage update --platform iOS

Embed frameworks

After update carthage, now you can embed frameworks to your target.

  • Select target to integrate with NRLWalletSDK.
  • General tab and go to Embedded Binaries section.
  • Push plus button and import frameworks which was made from carthage.

Now you can use NRLWalletSDK!

Dependency libraries

Carthage

  • make Cartfile at the root folder of project
github "krzyzanowskim/CryptoSwift"
github "attaswift/BigInt" ~> 3.0
github "Boilertalk/Web3.swift"
github "Alamofire/Alamofire" ~> 4.7
github "Hearst-DD/ObjectMapper" ~> 3.2
github "SwiftyJSON/SwiftyJSON" ~> 4.0
github "gedanziger/nrlwallet-ios-sdk"
  • run following command

carthage update --platform iOS --no-use-binaries

framework

neoutils.framework

https://github.com/O3Labs/neo-utils need setting of bitcode disabled need to manually include from O3Labs to build neo-utils, need to install go and go-mobile

included sources

web3.swift

https://github.com/Boilertalk/Web3.swift

CocoaLumberjack (Libraries)

can be downloaded from BitcoinSPV pod. or

https://github.com/CocoaLumberjack/CocoaLumberjack

secp256k1

https://github.com/bitcoin-core/secp256k1 need to add in Libraries manually

BitcoinSPV (Libraries)

https://github.com/keeshux/BitcoinSPV/ need to add in Libraries manually

openssl

can be downloaded from BitcoinSPV pod. or

to libs of libssl and libcrypto should be explicitly included as linked library of NRLWalletSDK

https://github.com/openssl/openssl need to add in Libraries manually

loafwallet-core (Libraries)

https://github.com/litecoin-foundation/loafwallet-ios only included loafwallet-core

stellar-ios-mac-sdk

https://github.com/Soneso/stellar-ios-mac-sdk only included part of this sdk, so need to update for each files

Build Carthage framework

build

download dependences

carthage update --platform iOS --no-use-binaries

build project at xcode

carthage build

carthage build --no-skip-current carthage archive NRLWalletSDK

git push ---> this carthage can be used as global carthage file

key / address test

bitcoin, litecoin, ethereum

https://iancoleman.io/bip39/

neo

https://coranos.github.io/neo/ledger-nano-s/recovery/

stellar

https://github.com/stellar/go/releases/ stellar-hd-wallet

transaction test

ethereum

bitcoin

litecoin

neo

stellar

Error cases

  • If there exists carthage errors, try following console commands, which will clear carthage cache.

rm -rf ~/Library/Caches/org.carthage.CarthageKit rm -rf ~/Library/Caches/carthage

  • If there exists carthage dependency problem between web3 and promisekit, please refer the dependency version from web3
You can’t perform that action at this time.