Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Dash iPhone Wallet

Discussion in 'Projects' started by QuantumExplorer, Sep 4, 2015.

  1. darkred

    darkred Active Member

    Joined:
    Feb 6, 2015
    Messages:
    235
    Likes Received:
    262
    Trophy Points:
    123
  2. QuantumExplorer

    QuantumExplorer Active Member
    Core Developer

    Joined:
    Aug 20, 2014
    Messages:
    123
    Likes Received:
    160
    Trophy Points:
    93
    wow guys, I just saw this thread, you guys went far into this. I'll figure out what's wrong and update you guys shortly.
     
    • Like Like x 4
  3. rango

    rango Active Member

    Joined:
    Jun 19, 2014
    Messages:
    158
    Likes Received:
    221
    Trophy Points:
    103
    Managed to get gmp working.

    You have to configure it with "--enable-cxx" to enable c support (which is not enabled by default). Moved it to the dashwallet directory and included it at two locations:

    #include <gmp-6.1.0/gmp.h>

    ----

    After doing all this the error we started with returned "Unknown type name 'secp256k1_context_t" :confused:

    Maybe somebody is able to go one step ahead with this.
     
  4. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
  5. QuantumExplorer

    QuantumExplorer Active Member
    Core Developer

    Joined:
    Aug 20, 2014
    Messages:
    123
    Likes Received:
    160
    Trophy Points:
    93
    Repo should work fine now, just pull again. Though I have no idea about gmp as I'm not running into that at all.

    Is anyone else having an issue there?
     
  6. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    it would be great if we had a step by step guide !
    ;)
     
  7. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member

    Joined:
    Jul 15, 2014
    Messages:
    2,718
    Likes Received:
    2,613
    Trophy Points:
    1,183
    Sorry, there will be no "TAO'S IPHONE WALLET GUIDE FOR DUMMIES"... :D
     
  8. rango

    rango Active Member

    Joined:
    Jun 19, 2014
    Messages:
    158
    Likes Received:
    221
    Trophy Points:
    103
    QuantumExplorer

    Great, putting it on my phone worked now. You may want to change the bundle name within the github repository to something that has not been taken. So other users just have to download xcode, clone the dashwallet repo and compile it without making changes to the code.
     
  9. rango

    rango Active Member

    Joined:
    Jun 19, 2014
    Messages:
    158
    Likes Received:
    221
    Trophy Points:
    103
    Guys, we also could think of uploading the iOS app at signcloud.com That's basicly a app resigning service, which could bring the iOS dashwallet to users, which don't want to take the hassle to compile it themselves. Membership fee of about 15 USD per year sucks, but better than no wallet at all on iOS.
     
  10. QuantumExplorer

    QuantumExplorer Active Member
    Core Developer

    Joined:
    Aug 20, 2014
    Messages:
    123
    Likes Received:
    160
    Trophy Points:
    93
    Ok sounds good.

    Step 1 : Download Xcode
    Step 2 : Open Terminal
    Step 3 : type in commands

    if you have a src directory in Documents
    cd ~/Documents/src
    git clone https://github.com/QuantumExplorer/dashwallet.git
    cd dashwallet
    git branch distribution origin/distribution
    git checkout distribution
    git pull

    otherwise

    cd ~/Documents
    mkdir src
    cd src
    git clone https://github.com/QuantumExplorer/dashwallet.git
    cd dashwallet
    git branch distribution origin/distribution
    git checkout distribution
    git pull

    Step 4 : Navigate to project in finder, open DashWallet.xcodeproj
    Step 5 : Plug in phone
    Step 6 : Press Run (top left play style button)

    Can someone test this out for me to make sure I didn't forget anything? (I already changed the id of the project.)
     
    #100 QuantumExplorer, Nov 8, 2015
    Last edited by a moderator: Nov 12, 2015
    • Like Like x 2
  11. the-baker

    the-baker Member

    Joined:
    Mar 12, 2015
    Messages:
    70
    Likes Received:
    70
    Trophy Points:
    58
    I don't have an iPhone handy right now, but if I compile without one, I get the following error:

    ValidateEmbeddedBinary Library/Developer/Xcode/DerivedData/DashWallet-cpvgksatpsacznezinmawmqmlbtg/Build/Products/Debug-iphonesimulator/dashwallet.app/PlugIns/TodayExtension.appex
    cd dashwallet
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-embeddedBinaryValidationUtility Library/Developer/Xcode/DerivedData/DashWallet-cpvgksatpsacznezinmawmqmlbtg/Build/Products/Debug-iphonesimulator/dashwallet.app/PlugIns/TodayExtension.appex -info-plist-path Library/Developer/Xcode/DerivedData/DashWallet-cpvgksatpsacznezinmawmqmlbtg/Build/Products/Debug-iphonesimulator/dashwallet.app/Info.plist​

    error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.

    Embedded Binary Bundle Identifier: com.darkcoinfoundation.dashwallet.TodayExtension
    Parent App Bundle Identifier: com.darkcoinfoundation.dashwallettest​
     
  12. QuantumExplorer

    QuantumExplorer Active Member
    Core Developer

    Joined:
    Aug 20, 2014
    Messages:
    123
    Likes Received:
    160
    Trophy Points:
    93
    Sorry about that, pull again ('git pull' in the dash directory, or (In XCode) -> Source Control -> Pull))
     
  13. the-baker

    the-baker Member

    Joined:
    Mar 12, 2015
    Messages:
    70
    Likes Received:
    70
    Trophy Points:
    58
    That was fast :)

    Build succeeded now & runs fine in the simulator. I might try again with a real phone tomorrow :)
     
  14. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    Please do not share yet
    i just tried (and talked to quantum)
    there is still something to fix
    we are here now:
    [​IMG]
     
  15. QuantumExplorer

    QuantumExplorer Active Member
    Core Developer

    Joined:
    Aug 20, 2014
    Messages:
    123
    Likes Received:
    160
    Trophy Points:
    93
    hey tungfa, I updated the guide, sadly using this method with no signing we don't have access to the extension, it makes sense because you need entitlements for that. So removing that fixed the issue. Tell me if it works now for you.

    For you do (in the dashwallet directory)

    git branch distribution origin/distribution
    git checkout distribution
    git pull

    then try it.
     
    • Like Like x 2
  16. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    am trying
    looks good so far
    but now here (since 30-45 min)
    [​IMG]
     
  17. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    i erased everything
    started and pulled new and got this:(Build Failed)
    [​IMG]
     
  18. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    did anybody else try this ?
    mine is still not working, am chatting with quantum about some changes, but still not on
     
  19. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    cleaned it up again
    now wallet is running on Mac Simulator and said build was successful
    but nothing on phone yet ?!?

    [​IMG]
     
  20. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member

    Joined:
    Jul 15, 2014
    Messages:
    2,718
    Likes Received:
    2,613
    Trophy Points:
    1,183
    Good luck guys, I hope you are successful.
     
  21. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    ok
    - i finally found how to direct this to the correct devise (my phone)
    - build failed (again)
    - problem seems to be “no code signed identity found"


    [​IMG]
     
    #111 tungfa, Nov 10, 2015
    Last edited by a moderator: Nov 10, 2015
  22. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Try to click "Fix issue" button to create new signing identity. You might also need to change Bundle Identifier to smth else if you have test version installed (not sure, I'm just guessing here).
     
  23. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    can not find "fix issue"

    did anybody manage to pull this off ?
     
  24. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    :what:

    You image, my arrow ;)

    em0SWob.png
     
    • Like Like x 2
  25. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    tx man
    but does not work
    (i used my iTunes ID, but that is not enough)
    i pinged quantum already (multiple times about that)
    :what:
    [​IMG]
     
  26. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    ahhh, tungfa, tungfa .... grab some coffee :tongue:
    make it "com.darkcoinfoundation.dashwallet.test" for example and it should compile
     
  27. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    com.darkcoinfoundation.dashwallet.test17
    worked
    but still:
    [​IMG]

    did a clean
    shift - command - k
    tried again
    same same

    Edit:
    and we all know that i am definitely the wrong person for this job !
     
  28. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Hmmm.. I didn't have it... maybe it's smth with "TodayExtension"?

    Try to switch to it and check if settings there match (there is a list to choose build product, see arrow)

    em0SWob.png
     
  29. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    tried
    but
    press ok
    and still failed
    (i used com.darkcoinfoundation.dashwallet.test17 as before)

    [​IMG]
     
  30. ALX3K

    ALX3K New Member

    Joined:
    Sep 7, 2015
    Messages:
    19
    Likes Received:
    9
    Trophy Points:
    3
    Another good way for an wallet is like kryptokit´s rushwallet or the ethereum wallet. but dont know if some similar exist for dash.