Checkout a git submodule in Xcode 8 Build Phase script -
i have git repo on bitbucket utility project , use git submodule in other projects. wrote xcode build phase script clones, initializes , updates submodule fails cloning error:
cloning '[location of working copy]'... ssh_askpass: exec(/usr/x11r6/bin/ssh-askpass): no such file or directory permission denied (publickey). fatal: not read remote repository.
i can checkout xcode's interface, can checkout command line, , can run same script command line myself, , works, prompted passphrase. except when script run xcode.
i contacted bitbucket support , pointed out according error xcode trying use /usr/x11r6/bin/ssh-askpass
prompt me passphrase of private key can't find file (i found /usr/x11r6 symlink /opt/x11). suggested check following links:
i installed missing binary last link using homebrew, symlinked location xcode needs , got seemingly broken dialog box:
i tried copying binary instead of symlinking didn't make difference.
any ideas?
just make sure ran test see if there's problem ssh configs...
$ ssh -vt git@bitbucket.org
...but according results ok.
the guys on @ https://github.com/theseal/ssh-askpass/ helped me figure out.
i had install missing ssh-askpass
add ssh key agent ssh-add -c
before xcode launched. adding key while xcode running resulted in build phase script returning error:
sign_and_send_pubkey: signing failed: agent refused operation
you can read troubleshooting details here.
Comments
Post a Comment