Post

Replies

Boosts

Views

Activity

Reply to swift: Calling "/usr/bin/defaults" returns no data
For the records: I use now the Prefrerences Utilities. The readBool code was already given by Quinn above. Here is my writeBool code: func writeBool(domain: String, key: String, value: Bool) { let appID = domain as CFString let cfKey = key as CFString let cfValue: CFPropertyList = value as CFBoolean CFPreferencesSetValue(cfKey, cfValue, appID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost) CFPreferencesSynchronize(appID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost) }
Topic: App & System Services SubTopic: General Tags:
Mar ’26
Reply to Can't run Swift App on Mojave
I did several times a clean build. My development machine is a MacBook Pro M1 on Monterey and therefore I cannot use Xcode 12 anymore. I wan to copy just the application to the older Mac and not use Xcode on that machine. The test project was also created on my development machine. Any yes: The error message is really strange.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’22
Reply to swift: Calling "/usr/bin/defaults" returns no data
For the records: I use now the Prefrerences Utilities. The readBool code was already given by Quinn above. Here is my writeBool code: func writeBool(domain: String, key: String, value: Bool) { let appID = domain as CFString let cfKey = key as CFString let cfValue: CFPropertyList = value as CFBoolean CFPreferencesSetValue(cfKey, cfValue, appID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost) CFPreferencesSynchronize(appID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost) }
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Can't run Swift App on Mojave
I did several times a clean build. My development machine is a MacBook Pro M1 on Monterey and therefore I cannot use Xcode 12 anymore. I wan to copy just the application to the older Mac and not use Xcode on that machine. The test project was also created on my development machine. Any yes: The error message is really strange.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22