Post AP2vBAQXpSJAdWRk48 by Sanguish@mastodon.social
(DIR) More posts by Sanguish@mastodon.social
(DIR) Post #AP2vBAQXpSJAdWRk48 by Sanguish@mastodon.social
2022-10-28T23:07:23Z
0 likes, 0 repeats
Give this a shot for technical help with a swift argument parser issueSomeone project with the content of the result example in the repo. I’ve added it to a new, empty project.And attempting to run the binary I’m getting this error
(DIR) Post #AP2vBB13dhW0SlWtyi by schwa@mastodon.social
2022-10-28T23:13:43Z
0 likes, 0 repeats
@Sanguish Yeah because swift on the command line is a pain in the ass.
(DIR) Post #AP2vBBN2Jz61YvoSEi by Sanguish@mastodon.social
2022-10-28T23:14:59Z
0 likes, 0 repeats
@schwa is there a work around? What’s the point of having a cli target and an arg parser I’d it’s a pain?
(DIR) Post #AP2vBBjixdFChIQZbE by schwa@mastodon.social
2022-10-28T23:29:37Z
0 likes, 0 repeats
@Sanguish It depends what you're trying to do.But yeah the binary you compile has a bunch of dependencies. So it's not just a single executable.You'll need copy the dependencies to the right place for the binary. Somewhere on it's @rpath
(DIR) Post #AP2vBCDVAv40BeMM0u by Sanguish@mastodon.social
2022-10-29T02:20:40Z
0 likes, 0 repeats
@schwa that’s nuts. And specifically what I was trying to avoid by doing it as a binary. Sigh.Thanks, I’ll have to figure that out.
(DIR) Post #AP2vBCcJgeufQbyAgy by shadowfacts@social.shadowfacts.net
2022-10-29T02:55:23.275430Z
0 likes, 0 repeats
@Sanguish @schwa if you're including it as a Swift package, isn't it statically linked by default? that's been my experience with SwiftPM (though admittedly I haven't written any CLI tools with it)
(DIR) Post #AP34CxogaKuXgxfajY by Sanguish@mastodon.social
2022-10-29T04:30:12Z
0 likes, 0 repeats
@shadowfacts @schwa definitely isn’t by default for the cli target. Because I’ve not disabled it. I know it is enabled for applications.
(DIR) Post #AP34CyQcJJFhabPsrA by shadowfacts@social.shadowfacts.net
2022-10-29T04:36:34.776678Z
0 likes, 0 repeats
@Sanguish @schwa weird, you'd think it'd be _more_ important for cli tools