macos-mojave

Not able to open Xcode 8.3.2 on macOS 10.14 beta

元气小坏坏 提交于 2019-12-18 18:37:33
问题 I recently upgraded to new beta version of macOS 10.14 but after installing it when I tried to open my older version of Xcode 8.3.2, every time it gets crashed. Below is its details. Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData 回答1: As discussed in a few places like here and here, Xcode 8 does not run on Mojave. The best approach at this point is to either migrate your application to run with the latest Xcode, or run a VM with High Sierra or earlier that still supports your

macOS Mojave, Automator “Not authorized to send Apple events to System Events.”

痞子三分冷 提交于 2019-12-18 10:48:13
问题 After I updated to Mojave, I can no longer use the automator service I've previously been using with the alert below. In Security & Privacy, I already checked AppleScript Editor. Do you see any problem with my code or is this the problem of the newest macOS? Script on run {input, parameters} set pathList to {} repeat with itemNum from 1 to count of input tell application "System Events" copy POSIX path of (container of (item itemNum of input)) to end of pathList end tell end repeat return

Brew install on Mojave

二次信任 提交于 2019-12-17 22:37:47
问题 I did these steps: Updated to Mojave Installed Xcode 10 beta3 Ran this command: sudo xcode-select -switch /Applications/Xcode-beta.app/ Now I'm trying to install node8: brew install node@8 And it gives me this error: Error: The Command Line Tools header package must be installed on Mojave. The installer is located at: /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg Still, doing install -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for

Unable to use PHPIZE after update to MacOS Mojave

半城伤御伤魂 提交于 2019-12-17 15:54:36
问题 What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools. grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: 回答1: Potential better solution - force reinstall the header files. Fixed a ton of problems for me system wide

DarkMode doesn't work on Mojave when exported from archive

蓝咒 提交于 2019-12-13 04:34:18
问题 I use Xcode 10 and added all required stuff for DarkMode support. When I run the project on Mojave everything works. But when I archive and distribute the app using Xcode 10 on HighSierra, then my app doesn't appear in dark mode on Mojave. Shouldn't Xcode 10 archive Mojave compatible version anyway? 回答1: Possible reasons: You are using command line to create the archive, but your toolchain is set to use Xcode 9 You are using Dark Mode specific assets in asset catalog. Dark versions of those

How to fix Mac terminal username format (missing colon and no spacing after the $)?

走远了吗. 提交于 2019-12-13 04:25:18
问题 I get a wrong username format when I launch my terminal. As a newbie, I could notice three errors: 1. a closed bracket ] appears instead of a colon 2. the $ sign is not followed by a single space 3. the first letter or character typed doesn't appear, for e.g. if I type ls, only the s would appear Username: mymac, Computer name: MyMac’s MacBook Air This is a screenshot 回答1: The extra ] can be disabled by : opening the terminal selecting edit menu bar hovering over marks unchecking

Xcode 10 build fail rm permission denied in /bin/sh/

霸气de小男生 提交于 2019-12-13 03:47:45
问题 I recently update my system to Xcode: 10 OSX : Mojave 10.14 For few days my iOS development works fine, but suddenly start facing following issues. dyld: Library not loaded: @rpath/Appsee.framework/Appsee Referenced from: /Users/a.b.ak1b/Library/Developer/CoreSimulator/Devices/2223E5BD-215F-48D7-8649-2D63ECBAE2B6/data/Containers/Bundle/Application/59E09AD0-ADAB-4221-A334-70F71DC6AC0B/MyApp.app/MyApp Reason: image not found But this issue was fixed by changing Xcode -> File -> Workspace

NSView makeBackingLayer with CALayer subclass displays no output

99封情书 提交于 2019-12-13 03:29:50
问题 This is a continuation of my question stop-nsview-drawrect-clearing-before-drawing-lockfocus-no-longer-working-on-mojave. I used the pattern lockFocus-graphics context-flushWindow pattern to draw into another view. That no longer works on macOS 10.14, as the backing store of views has changed (for new binaries). NSView has a method makeBackingLayer that is not there for nothing, I guess. The code snippet below has makeBackingLayer called, and I can have it use my CALayer subclass

How update php.ini on a Mac OS X Mojave?

百般思念 提交于 2019-12-13 00:39:07
问题 I'm on Mac OS X Mojave Step 1 I ran php -i | grep php.ini I got Configuration File (php.ini) Path => /usr/local/php5/lib Loaded Configuration File => /usr/local/php5/lib/php.ini Step 2 I open up the ini file vi /usr/local/php5/lib/php.ini , and update memory_limit to -1 Step 3 I ran php -i | grep memory_limit I got memory_limit => 256M => 256M Step 4 I restart my sudo apachectl -k restart and type in my password and tried php -i | grep memory_limit again, I still got memory_limit => 256M =>

Getting mouse coordinates on Mojave

风流意气都作罢 提交于 2019-12-12 19:12:59
问题 I have a really basic little command line app that grabs the mouse coordinates the next time the mouse is clicked. #import <Foundation/Foundation.h> #import <AppKit/AppKit.h> CGEventRef myCGEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) { CGFloat displayScale = 1.0f; if ([[NSScreen mainScreen] respondsToSelector:@selector(backingScaleFactor)]) { displayScale = [NSScreen mainScreen].backingScaleFactor; } CGPoint loc = CGEventGetLocation(event); CFRelease