Posts

Post not yet marked as solved
10 Replies
0 Views
I build Universal Binary and so it should run on M1 and Intel based Macs.
Post not yet marked as solved
10 Replies
0 Views
Now I made another test: New Xib-based Swift project (macOS, App). Set the build target to macOS 10.14. Build without any changes. Copy to a Mac running Mojave. Result: the same error message. It seems so that the support of older macOS versions is broken in current Xcode.
Post not yet marked as solved
10 Replies
0 Views
It is a Xib based project and so it should run on Mojave. Now I tried to set the target OS to macOS 10.13. It does still now work. The error message is now 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.13 or later.
Post not yet marked as solved
10 Replies
0 Views
In "Project" and "Targets" is the target 10.14. Therefore the error message shows that OS version.
Post marked as solved
6 Replies
0 Views
Now I got it working. I fixed the "-o" option by removing the space and removed all additional quoting. Many thanks for your help (again).
Post marked as solved
6 Replies
0 Views
Thanks for your explanation. My assumption was obviously wrong. In fact the command mount_smbfs -onodev,nosuid "//DOMAIN;USER:PASS@SERVER_ADDRESS/REMOTEPATH" /SOMEPATH works well in shell. Note: The password needs a HTML like % encoding for funny chars, e.g. "my%23pass" for "my#pass". I use a similar call already with sshfs on a Linux server. Now I will perform some more debugging to get a clue what's wrong. I will post a reply with my discoveries.
Post marked as solved
6 Replies
0 Views
Oops. The code has to be Hex encoded. It does also not work: $ mount_smbfs -N -o nodev,nosuid "//DOMAIN%3BUSER:PASS@SERVER_ADDRESS/REMOTEPATH" /LOCALPATH mount_smbfs: server rejected the connection: Authentication error
Post marked as solved
6 Replies
0 Views
No. I tried backslash quoting and quotes. Unfortunately it does not work using percent encoding. In Terminal I get this error: $ mount_smbfs -N -o nodev,nosuid "//DOMAIN%59USER:PASS@SERVER_ADDRESS/REMOTEPATH" /LOCALPATH mount_smbfs: server rejected the connection: Authentication error Also it does not work in my application.
Post marked as solved
8 Replies
0 Views
Now I got it working. I use a check at start of my application with following code: if !NetworkCheck().waitForNetwork() {     print("Error: No network available!")     exit(exitCodes.NoNetwork.rawValue) } and this is my NetworkCheck class: import Foundation import Network class NetworkCheck {    private let networkMonitor : NWPathMonitor    init() {       self.networkMonitor = NWPathMonitor(requiredInterfaceType: .wiredEthernet)       self.networkMonitor.start(queue: .global())    }    func waitForNetwork(networkTimeout : Double = 30.0) -> Bool {        let networkLookupStart = Date.now        var isConected         = false        while abs(networkLookupStart.timeIntervalSinceNow) <= networkTimeout {            networkMonitor.pathUpdateHandler = { path in                if path.status == .satisfied {                    isConected = true                }            }            if isConected {                break            }            sleep(1)        }        return isConected    }    deinit {        networkMonitor.cancel()    } }
Post marked as solved
8 Replies
0 Views
Today I got a working backup. So it is in fact the missing network after sleeping. I did now add a check to wait for a network connection. I will post an update next week with some sample code when I got it working.
Post marked as solved
8 Replies
0 Views
Many thanks for your help. Just a few minutes ago I thought the same because Remote Desktop and it showed me sleeping for the server… As a quick solution I added a launch daemon plist which calls caffeinate to prevent sleeping. I'm eager so see if the backup does run tonight and I will post the result tomorrow.
Post marked as solved
8 Replies
0 Views
The networking stack on the Mac should work independently of whether a user is logged in. I think so, too but I have no clue why it works always when called manually vs. automatically. It looks like you’re using SwiftNIO for your networking. Are you use Network framework under the covers? That is, are you using NIO Transport Services? Yes. I use SwiftNIO 2.35.0 for my Mailer class which is based on SwiftSMTP. But even when there is a SwiftNIO issue the shell call using sshfs to mount a remote volume should work still work… I wonder if there is a security issue. The deamon process is called as admin user <key>UserName</key> <string>admin</string> <key>GroupName</key> <string>admin</string> and this works as expected. I checked this via ProcessInfo().userName debug output. Edit: AFAIK I don't use NIOTransportServices although the package is included in projects package list. A source search for NIOTransportServices gave no hit.
Post marked as solved
8 Replies
0 Views
StartCalendarInterval like this (for the other days the same): <key>StartCalendarInterval</key> <array> <dict> <key>Weekday</key> <integer>0</integer> <key>Hour</key> <integer>5</integer> <key>Minute</key> <integer>0</integer> </dict> Edit: The job is started properly but the log shows the errors above. I assume there is a networking issue in case no user is logged in (GUI or via ssh in Terminal).
Post marked as solved
3 Replies
0 Views
It is still no good solution because building for "Any Mac" does prevent a debug run. I need to switch back to "My Mac". I would prefer a solution wich works for both scenarios…
Post marked as solved
3 Replies
0 Views
I could solve this issue. As stated at https://forums.swift.org/t/xcode-12-2-spm-swift-nio-fails-to-build-for-apple-silicon-arm64/42197/22 I had the same issue & realized I was building for "My Mac", and not "Any Mac".. that fixed it & built the packages for both. (Top left of the center portion of the Xcode main screen.. where you pick your scheme) So building for "Any Mac (Apple Silicon, Intel)" works.