Posts

Post not yet marked as solved
10 Replies
273 Views
I wrote a little test app which must also run on some older Macs still using macOS 10.14.6. When I copy the app to the old Mac I get following error message: You can’t use this version of the application “APPNAME” with this version of macOS. You have macOS 10.14.6. The application requires macOS 10.14 or later. It seems to be a build bug… I use Xcode 13.3 on macOS 12.3.1. Any clue how to solve this issue?
Posted
by GreatOm.
Last updated
.
Post marked as solved
6 Replies
260 Views
Hi! I have an issue calling mount_smbfs with a user from a specific domain. A sample shell call is mount_smbfs -N -o nodev,nosuid "//DOMAIN;USER:PASS@SERVER_ADDRESS" /SOMEPATH Using the code below I get an invalid command because the semicolon ends the command in shell. var server = "//DOMAIN;USER:PASS@SERVER_ADDRESS" let remotePath = "/REMOTEPATH" let localPath = "/LOCALPATH" let cmd = Process() cmd.executableURL = URL(fileURLWithPath: "/sbin/mount_smbfs") cmd.arguments = ["-N", "-o nodev,nosuid", "\(server)\(remotePath)", localPath] Using a quoted semicolon var server = "//DOMAIN\;USER:PASS@SERVER_ADDRESS" does also not work, because the backslash is quoted to DOMAIN\\;USER automatically via Process class. So I end up with two backslash. Using quotes did also not work for me. Any clue how to solve this issue?
Posted
by GreatOm.
Last updated
.
Post marked as solved
8 Replies
468 Views
Hi! I wrote a backup console application. It does use ssh/sshfs to access a web server via public key. Also it does send an SMTP-mail when finished. If the process is started via launchctl load DAEMON it works always properly (RunAtLoad is true). But when the daemon is called automatically at night it does not always work. In my log I get these errors: ssh: connect to host SERVERURL port 22: Undefined error: 0 and Failed sending: NIOConnectionError(host: "mail.mydomain", port: 25, dnsAError: Optional(NIOCore.SocketAddressError.unknown(host: "mail.mydomain", port: 25)), dnsAAAAError: Optional(NIOCore.SocketAddressError.unknown(host: "mail.mydomain", port: 25)), connectionErrors: []) it does run on a MacMini M1 with macOS 12.2. Any clue what's wrong or how to find the reason of this issue? PS. On another MacMini (Intel) with macOS 11.6 the backup works since a year but there is always an admin user logged in.
Posted
by GreatOm.
Last updated
.
Post marked as solved
3 Replies
1.6k Views
Hi! I need a clue how to solve this issue. I can't build a universal command line app on my new MacBook Pro. I use Swift with some Swift packages and get the error Could not find module 'NIO' for target 'x86_64-apple-macos'; found: arm64, arm64-apple-macos, at: BUILDPATH Where do I have to look in Xcode (v 13.1) to get universal packages?
Posted
by GreatOm.
Last updated
.
Post marked as solved
3 Replies
604 Views
Hi! I wrote a backup program in Swift which is used for several servers. It does send an email each day about the backup status. Currently I use /usr/bin/mail because it works well with via postfix configuration. Now I need to add an attachment (an image about the access statistics) and this is not possible using the mail command. I looked at the docs and I found NSSharingService(named: NSSharingService.Name.composeEmail) but it does just create a mail which is opened in Mail.app. Is there really no OS provided way to send an SMTP mail without any user interaction? I don't want to implement a 3rd party SMTP-Library. TIA, GreatOm
Posted
by GreatOm.
Last updated
.