Command Line Tool Embedding in SwiftUI App

I have added 2 command line tools in my swiftUI app for macOS, it was working fine locally, but it gives error when i try to make archive of it. I am not sure about the reason, but it was related to sandboxing the command line tools, after this i have tried multiple solutions but i am unable to resolve this issue, how should i handle the helper command line tools

Answered by DTS Engineer in 826673022

szymczyk wrote:

Written by szymczyk in 826603022
List the solutions you tried so people do not suggest things you tried.

Yes, exactly that. I have a bunch of advice on how to use the forums effectively in Quinn’s Top Ten DevForums Tips.

As to your main question, my general advice on that topic is in Embedding a command-line tool in a sandboxed app. I suspect you’ve found that already, in which case my first question for you is whether you’re building the tool using Xcode or not. That article outlines two separate paths, one for folks building the tool in Xcode and one for folks building the tool in some other way.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

i have tried multiple solutions but i am unable to resolve this issue

List the solutions you tried so people do not suggest things you tried.

szymczyk wrote:

Written by szymczyk in 826603022
List the solutions you tried so people do not suggest things you tried.

Yes, exactly that. I have a bunch of advice on how to use the forums effectively in Quinn’s Top Ten DevForums Tips.

As to your main question, my general advice on that topic is in Embedding a command-line tool in a sandboxed app. I suspect you’ve found that already, in which case my first question for you is whether you’re building the tool using Xcode or not. That article outlines two separate paths, one for folks building the tool in Xcode and one for folks building the tool in some other way.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Command Line Tool Embedding in SwiftUI App
 
 
Q