macos-catalina

NSSoftLinking - The function 'SLSIsSuppressedByScreenTime' can't be found in the (null) framework

人盡茶涼 提交于 2019-12-01 18:08:35
问题 On macOS Catalina (beta), I create a fresh macOS project in Xcode 11 (beta). In the creation wizard I select Objective-C, and "Use XIBs". If I run the project, I get the following console output: foo_project[20548:102646] NSSoftLinking - The function 'SLSIsSuppressedByScreenTime' can't be found in the (null) framework. foo_project[20548:102646] Metal API Validation Enabled Can anyone explain this message? EDIT: @vardaasen reports: Not the same problem but a similar message. I get the message

NSSoftLinking - The function 'SLSIsSuppressedByScreenTime' can't be found in the (null) framework

…衆ロ難τιáo~ 提交于 2019-12-01 17:47:53
On macOS Catalina (beta), I create a fresh macOS project in Xcode 11 (beta). In the creation wizard I select Objective-C, and "Use XIBs". If I run the project, I get the following console output: foo_project[20548:102646] NSSoftLinking - The function 'SLSIsSuppressedByScreenTime' can't be found in the (null) framework. foo_project[20548:102646] Metal API Validation Enabled Can anyone explain this message? EDIT: @vardaasen reports: Not the same problem but a similar message. I get the message when I run: sh /opt/local/share/java/android-sdk-macosx/tools/android Installing java and android

Weird relative path while creating new files in Xcode. Is it related with macOS Catalina beta 4 version?

痞子三分冷 提交于 2019-12-01 04:03:21
问题 I am not sure if it is related with beta software I am using. I've recorded a video which shows the problem: https://youtu.be/AuxjNpylaMc When I create new files in Xcode, they're put in super weird location which causes a lot of problems when pushing files to repository. When I create a file in Xcode (no matter where in project, no matter which project I am loaded into, no matter where is the project located on my drive) this is how the relative path is generated: ../../../../../../System

NSButton in Catalina has no selected state

陌路散爱 提交于 2019-11-28 00:50:24
问题 I have an NSButton set as a checkbox with the following code on Catalina (Mojave is fine): let checkbox = NSButton(frame: NSRect(x: 0, y: 0, width: 200, height: 32)) checkbox.setButtonType(.switch) checkbox.title = "Sustain" checkbox.state = .off self.view.addSubview(checkbox) It looks fine when I load the app But as soon as I check it, the tick mark that I expect to be there isn't there If I load up the visual hierarchy debugger I can see it fine, I've tried putting this code straight onto a

Detecting screen recording settings on macOS Catalina

大兔子大兔子 提交于 2019-11-27 10:59:11
问题 What's is a reliable way to detect if user has enabled this API? CGWindowListCreateImage returns a valid object even if screen recording API is disabled. There are multiple combinations possible ( kCGWindowListOptionIncludingWindow , kCGWindowListOptionOnScreenBelowWindow ) and only some will return NULL. - (CGImageRef)createScreenshotImage { NSWindow *window = [[self view] window]; NSRect rect = [window frame]; rect.origin.y = NSHeight([[window screen] frame]) - NSMaxY([window frame]);

Can't compile a C program on a Mac after upgrading to Catalina 10.15

醉酒当歌 提交于 2019-11-26 12:19:04
问题 There\'s a previous question Can\'t compile C program on a Mac after upgrade to Mojave, and the answers to that have covered most of the variations on what goes wrong. Now — as of Monday 2019-10-07 — you can upgrade to macOS Catalina 10.15. Once again, during the upgrade, the /usr/include directory has been blown away by the update, even though XCode 11.0 was installed before upgrading (from Mojave 10.14.6) to Catalina. Consequently, compilers built to expect that there is a /usr/include

ImportError: No module named 'encodings'

本秂侑毒 提交于 2019-11-26 01:00:05
问题 I recently reinstalled ubuntu and did upgrade to 16.04 and cannot use python: $ python manage.py runserver Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named \'encodings\' Aborted At this point, python itself doesn\'t work $ python Could not find platform independent libraries