macos-mojave

Kivy application deployment using py2app on Mac OS Mojave

一世执手 提交于 2021-02-10 17:47:06
问题 I have been trying to distrubute my simple Kivy app on Mac OS and I have been still failing. My environment: macOS Mojave ver. 10.14.6 Python 3.7.3 installed with Homebrew along with pyenv that enables to maintain a couple of python versions Kivy 1.11.1 installed along with bunch of Homebrew libs such as pig-config sdl2 sdl2_image, Gstreamer etc. The application works pretty fine when it is run from the local environment, however I am not able to create a version for distribution. I spent

Why doesn’t NSFetchRequest.shouldRefreshRefetchedObjects work?

寵の児 提交于 2021-02-07 18:35:21
问题 I’m trying to update and save a managed object in one context and then access the updated attribute value in another context. The documentation for shouldRefreshRefetchedObjects says: By default when you fetch objects, they maintain their current property values, even if the values in the persistent store have changed. Invoking this method with the parameter YES means that when the fetch is executed, the property values of fetched objects are updated with the current values in the persistent

Background upload with share extension

北慕城南 提交于 2021-02-07 11:57:16
问题 I created an macOS ShareExtension which I want to use to upload pictures. I'm still testing this so any requests will be sent to https://beeceptor.com. The share extension works fine and it shows up in Preview, once I run it: I add some text and hit "Post" But the image is then not uploaded. This is my code that initiates the background upload: let sc_uploadURL = "https://xyz.free.beeceptor.com/api/posts" // https://beeceptor.com/console/xyz override func didSelectPost() { // This is called

Trouble pip installing psutil on Mojave

帅比萌擦擦* 提交于 2021-01-28 08:46:39
问题 I'm trying to install psutil with the Homebrew version of Python on OSX Mojave. Running: pip3 install psutil 2> error.log The console output is: Collecting psutil Using cached psutil-5.7.2.tar.gz (460 kB) Building wheels for collected packages: psutil Building wheel for psutil (setup.py) ... error Running setup.py clean for psutil Failed to build psutil Installing collected packages: psutil Running setup.py install for psutil ... error and the error messages: ERROR: Command errored out with

Mojave/macOS 10.14.0: [AVPlayerItem duration] is always indefinite

我的梦境 提交于 2021-01-28 02:26:06
问题 I'm trying to read the duration of a locally stored audio file using the following code: #import <Foundation/Foundation.h> #import <CoreMedia/CoreMedia.h> #import <AVFoundation/AVFoundation.h> AVPlayer *player = [AVPlayer playerWithURL: urlForLocalAudioFile]; // busy wait - I know, not elegant, please ignore int timeout = 0; while (([player status] == AVPlayerStatusUnknown || [[player currentItem] status] == AVPlayerItemStatusUnknown) && timeout < 100) { [NSThread sleepForTimeInterval: 0.1];

OSError: [Errno 24] Too many open files - OS Mojave

≡放荡痞女 提交于 2021-01-27 05:38:46
问题 So, I'm writing a script to take a certain dataset, sample it 100 times using different random seeds, completing all these datasets and then getting the mean error. However, whenever I try to run the script I end up with the error OSError: [Errno 24] Too many open files I don't understand what I can do to fix this (if I should do something in the script or in to the system and what). I'm using Python 3 with macOS Mojave. Anybody has a clue? 回答1: The number of open files you're allowed can be

Cannot link any C program with gcc on Mac Mojave

风流意气都作罢 提交于 2021-01-06 04:10:33
问题 I've just updated to OSX 10.14.6 (Mojave) and now, after upgrading Xcode and migrating MacPorts, even the simplest C program will not link with any gcc version. For example, linking the program int main() {} gives: dcs16> gcc test.c ld: library not found for -lSystem collect2: error: ld returned 1 exit status I am using gcc 6.5 in /opt/local/bin: dcs16> gcc --version gcc (MacPorts gcc6 6.5.0_4) 6.5.0 The Xcode version is 11.0 and I have installed the package (which was recommended for solving

Cannot link any C program with gcc on Mac Mojave

安稳与你 提交于 2021-01-06 04:09:05
问题 I've just updated to OSX 10.14.6 (Mojave) and now, after upgrading Xcode and migrating MacPorts, even the simplest C program will not link with any gcc version. For example, linking the program int main() {} gives: dcs16> gcc test.c ld: library not found for -lSystem collect2: error: ld returned 1 exit status I am using gcc 6.5 in /opt/local/bin: dcs16> gcc --version gcc (MacPorts gcc6 6.5.0_4) 6.5.0 The Xcode version is 11.0 and I have installed the package (which was recommended for solving

Cannot link any C program with gcc on Mac Mojave

ε祈祈猫儿з 提交于 2021-01-06 04:06:20
问题 I've just updated to OSX 10.14.6 (Mojave) and now, after upgrading Xcode and migrating MacPorts, even the simplest C program will not link with any gcc version. For example, linking the program int main() {} gives: dcs16> gcc test.c ld: library not found for -lSystem collect2: error: ld returned 1 exit status I am using gcc 6.5 in /opt/local/bin: dcs16> gcc --version gcc (MacPorts gcc6 6.5.0_4) 6.5.0 The Xcode version is 11.0 and I have installed the package (which was recommended for solving

Xcode 11.2 not updating

帅比萌擦擦* 提交于 2021-01-01 09:01:28
问题 show disk space not enough I’m using macOS Mojave 10.14.5 I have 11.69GB free disk space when I click the install it's always show alert message "We could not complete your update, there is not enough disk space available to install the product". How to fix the problem ? please help 回答1: I have more free space than you and couldn't update my already installed Xcode 11.1 to 11.2. What I did was to manually download the file. You search for the version you want by going here: https://developer