Category "macos"

MacOS swift: having trouble in obtaining output data from Pipe()

I am trying to run command lines to take screenshots in my Xcode project and using Pipe() to log output data. When I build and run this project in Xcode, I can

ModuleNotFoundError: No module named 'yfinance' - Importing Yahoo finance & Financials to Python

I'm using Mac OS and receiving an error when doing the following: import pandas as pd import yfinance as yf from yahoofinancials import YahooFinancials Module

PHP - installing Xdebug on Mac with XAMPP (Unix File)

I have a trouble installing Xdebug on my PHP project. I am on macOS Monterey M1 and I am using XAMPP for launching project on PHP version 7.4.28. I followed the

Get homebrew to run a script after 'brew install x' or 'brew uninstall x'

I want to automate having a file that tracks all my installed brew packages. I can do this manually with brew list > somefile, how ever I want this process t

Having trouble switching python versions using pyenv global command

I have installed pyenv on Mac using homebrew and downloaded the version of Python 3.7.9. Everything works except when I use pyenv global 3.7.9, python3 -V still

Having trouble switching python versions using pyenv global command

I have installed pyenv on Mac using homebrew and downloaded the version of Python 3.7.9. Everything works except when I use pyenv global 3.7.9, python3 -V still

zsh: command not found on MacOS Monterey

I wanted to create a react project and when I executed the command it said zsh: command not found: npx Then I tried the ls command and it said zsh: command not

env: python3.9: No such file or directory

I have some python code formatters as git pre-commit hook and I have changed my python version as brew list | grep python [email protected] [email protected] brew unlink pyt

Exec, ExecSync, Spawn, SpawnSync fails in production on multiple MAC machines

Solved -- Official Electron bug solved in 17.0.2 I'm trying to write a cross-platform app that utilizes child processes to execute commands. I ran into a proble

ModuleNotFoundError: No module named '_tkinter' on macOS

Tkinter doesn't work, it throws an error. Installation % pip3 install tk My code #!/usr/bin/env python3 import tkinter as tk The Error Traceback (most recent

Automate clear browsing data Safari

Is there any way to automate clearing cache, cookies and history in Safari? I can run Swift, Python, JavaScript and AppleScript. This is the AppleScript I have

iOS 13.4 simulator Capture Cursor issue

Xcode 11.4 brought with it a totally new and powerful simulator with a separate toolbar, and this toolbar contains a few buttons and the first one is called Cap

macOS SwiftUI Navigation for a Single View

I'm attempting to create a settings view for my macOS SwiftUI status bar app. My implementation so far has been using a NavigationView, and NavigationLink, but

Python multiprocessing with macOs

I have a mac (MacOs 10.15.4, Python ver 3.82) and need to work in multiprocessing, but on my pc the procedures doesn’t work. For example, I have copied a

How to show certificate selection popup to the user in WKWebview embedded browser in mac

I'm trying to add support for client certificate based authentication (cba) in an embedded browser of my app in Mac. Here is the code I have. - (void)webView:(W

Swift to Arduino using serial

For my school project, i want to create a MacOS application that communicates with my Arduino using a serial connection. I tried 2 different library (SwiftSeria

Download a package copy of Rosetta to manually transfer to another Mac without internet [closed]

I have an odd situation here — I need to get a copy of Rosetta (the translation program that let's x86 software run on Apple silicon Mac

Polite ARIA live region for a game with high rate of messages

I'm running a little game on the web. In order for it to be optimally screen reader accessible, incoming messages, which can be about in-game actions or user te

Use RealityKit ARView on macOS

I'm trying to use an ARView in a macOS-only project. I can load a scene (tested with a Reality file from Reality Composer), and it renders fine. But how do I co

SwiftUI Drag and Drop files

I am trying to add a "Drag and Drop" gesture / function to my SwiftUI Mac application. I want to drop files from my System/ Desktop into my Application. It is