I want to checkout a working copy:
apr_pool_t *pool = NULL;
apr_pool_create(&pool, NULL);
svn_client_ctx_t *context = NULL;
svn_client_create_context(&context, pool);
svn_opt_revision_t revision;
revision.kind = svn_opt_revision_head;
svn_client_checkout3(NULL,
repo.URL.absoluteString.UTF8String, // repo URL
localURL.path.UTF8String, // local path
&revision,
&revision,
svn_depth_infinity,
TRUE,
FALSE,
context,
pool);
apr_pool_destroy(pool);
It crashes at svn_client_checkout3
with EXC_BAD_ACCESS
(probably a segmentation fault). I read the documentation but I can't find out what I'm doing wrong.
What could be the cause of this error?