passforios icon indicating copy to clipboard operation
passforios copied to clipboard

Cloning fails with error: Foundation._GenericObjCError error 0.

Open grll opened this issue 2 years ago • 5 comments

I was trying to clone from a private GitHub repository using an ssh key file sent to my iphone over airdrop and the following configuration:

git repo url: ssh://[email protected]/grll/pass

branch name: master

username: git

auth method: SSH Key

When ever I wanted to clone the repository it was throwing me this "Foundation._GenericObjCError error 0." I pinpointed the issue using the Xcode debugger to come from the following file and the following line:

// passKit/Models/PasswordStore - line 184
try checkoutAndChangeBranch(withName: branchName, progressBlock: checkoutProgressBlock)

Turns out I forgot that I used the new default branch name of "main" instead of "master"...

so if you encounter this error in the futur check again all your repository settings. Also I am not an iOS developer so I don't know if the issue is coming from passforios or the passKit library used in this specific case but you might want to improve the error message thrown on that one :)

Thanks for the great app!

grll avatar Jul 02 '22 19:07 grll

Thank you so much for this!

grouNDfx avatar Sep 19 '22 08:09 grouNDfx

Thank you, help me a lot :)

tpa0 avatar Nov 09 '22 18:11 tpa0

this one got me as well

ViktorEvil avatar Nov 23 '23 11:11 ViktorEvil

Appreciate it, ran into this same issue!

NerKnutson avatar Jan 21 '24 01:01 NerKnutson