macos-catalina

macOS 10.15 Catalina gdb problem for C++ Debugging in Eclipse

点点圈 提交于 2020-06-27 12:50:07
问题 I am using macOS 10.15.2 Catalina and am trying to debug a Hello World C++ program in Eclipse. I have set up gdb debugger by installing it from Homebrew and signing the certificate by following the procedure in the below link. https://www.thomasvitale.com/how-to-setup-gdb-and-eclipse-to-debug-c-files-on-macos-sierra/ The debugger does not get starts. I have set gdb settings in the Eclipse as mentioned in the below screenshot. When I debug the project, I am getting error: Configuring GDB

RenderScript broken on macOS Catalina (10.15)

我怕爱的太早我们不能终老 提交于 2020-06-22 09:52:29
问题 I've updated to MacOS Catalina. This morning while I was working on my Android project, it suddenly started giving the following exception: "ERROR: Cause: error=86, Bad CPU type in executable". I suspect it it because I updated to macOS 10.15 AND because I tried to build the APK for my project (so it rebuilt the renderscript stuff). Here is the full stack trace given: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/Users/name/Library/Android/sdk/build

How create local notification on MacOS Catalina pyobjc?

拟墨画扇 提交于 2020-06-21 05:08:18
问题 I am having some difficulty finding out how to send local notifications on Catalina using pyobjc. The closes example I have seen is this: PyObjC "Notifications are not allowed for this application" 回答1: I have also been searching for this answer, so I'd like to share what I've found: The first thing you'll notice is that the function notify() defines a class, then returns an instance of it. You might be wonderinf why you can't directly call Notification.send(params) . I tried it, but I was

Why my arguments are being blocked when running a shell command?

匆匆过客 提交于 2020-06-17 23:03:10
问题 I am looking to run a command on command line from my SWIFT app in MAC. var resString = "open \(app.getLocation()) --args 25 40" let task = Process() task.launchPath = "/bin/bash" task.arguments = ["-c", resString] task.launch() print (resString) when I print the resString on console, I. get the following open [path to app on my local drive] --args 25 40 which executes normally when I copy paste in the command line. but on the other side, the app is opened but arguments are being ignored. I

Running Cordova via a shell script - permission problem

旧城冷巷雨未停 提交于 2020-06-17 15:52:32
问题 I have a shell script (called test.sh) which is called from PHP. Within the script I simply have: #!/bin/bash echo $(whoami) cordova platform version ios If I call test.sh from within terminal it works fine and returns the cordova ios version. If I try to call test.sh from with PHP I get: cordova: not found I have altered apache to run under my username instead of _www but that hasnt worked. Can anyone point me in the right direction as I'm guessing it is a permissions issue? I have now

Running Cordova via a shell script - permission problem

北战南征 提交于 2020-06-17 15:50:05
问题 I have a shell script (called test.sh) which is called from PHP. Within the script I simply have: #!/bin/bash echo $(whoami) cordova platform version ios If I call test.sh from within terminal it works fine and returns the cordova ios version. If I try to call test.sh from with PHP I get: cordova: not found I have altered apache to run under my username instead of _www but that hasnt worked. Can anyone point me in the right direction as I'm guessing it is a permissions issue? I have now

zsh can neither find nor execute custom user scripts in ~/bin although they are executable and in the $PATH environment variable

こ雲淡風輕ζ 提交于 2020-06-17 09:45:13
问题 Problem: I have recently upgraded from macOS Mojave 10.14.6 to macOS Catalina 10.5.5. Now that zsh is the default shell, I migrated my .bashrc to .zshrc : Aliases work fine. But for some unexplainable reason, my custom user scripts in ~/bin/my/ and ~/bin/dev/ are not completed by autocompletion cannot be evoked when typed entirely, I then get zsh: command not found: myScript.sh Investigation & Troubleshooting: When changing the shell back to bash, everything still works, so data-loss

WKWebView loadFileURL throws WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

心不动则不痛 提交于 2020-06-17 01:47:26
问题 I am trying to open local html file in WKWebView, but I keep getting error message: Received an unexpected URL from the web process: 'file:///Users/username/Library/Containers/dev.WebView/Data/file:/Users/username/Documents/WebView/WebView/WebView/WebContent/index.html' 2020-01-30 09:36:38.817862+0100 WebView[1679:20612] [Process] 0x101043e20 - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox This is the code that I tried: NSString *path = @"file://

How to get info on a process's virtual memory mappings in C (MacOS)

試著忘記壹切 提交于 2020-06-16 23:45:54
问题 I want to get information on the virtual memory layout of a process (stack, libc, heap, and code) for my current process in C (MacOS). I read that in Linux you can do this by looking at /proc/<pid>/maps and that you can do this on the MacOS command line via the vmmap command line utility. How can I do this in C? If possible I would like to get all pages in the virtual memory space pertaining to my process. 回答1: You can use the mach_vm_region_info APIs to query this information from C. Here is

How to get info on a process's virtual memory mappings in C (MacOS)

馋奶兔 提交于 2020-06-16 23:45:33
问题 I want to get information on the virtual memory layout of a process (stack, libc, heap, and code) for my current process in C (MacOS). I read that in Linux you can do this by looking at /proc/<pid>/maps and that you can do this on the MacOS command line via the vmmap command line utility. How can I do this in C? If possible I would like to get all pages in the virtual memory space pertaining to my process. 回答1: You can use the mach_vm_region_info APIs to query this information from C. Here is