I have a requirement to download and install a required package before starting the actual task in a MAC application. and the downloaded package is coming from the private server through https API, I tried to run mount process for the file but it fails for .dmg formate.
It says hdiutil: attach failed - Device not configured
So I thought of asking the backend developer to provide .XIP, would that be a solution? Because I think that won't give any signing or permission issue. Any Suggestion?
Code Block let task = Process.launchedProcess(launchPath: "/usr/bin/hdiutil", arguments: ["attach", "-verbose", "-debug", "-mountroot", "/dev/disk2","<path of downloaded file>"]) task.waitUntilExit()
It says hdiutil: attach failed - Device not configured
So I thought of asking the backend developer to provide .XIP, would that be a solution? Because I think that won't give any signing or permission issue. Any Suggestion?