macos-mojave

Xcode 7.3.1 cannot be opened in MacOS Mojave

梦想与她 提交于 2020-01-22 19:15:28
问题 After updating from macOS High Sierra to Mojave and I successfully installed Xcode 7.3.1 but it cannot be opened. Does Mojave support Xcode 7? 回答1: I have experienced the same issue after upgrading to macOS Mojave. The only solution which I had to do is to download Xcode 8 and migrate to Swift 3. Incase there're any alternatives, please share! 来源: https://stackoverflow.com/questions/52531863/xcode-7-3-1-cannot-be-opened-in-macos-mojave

Detect dark mode in macos from python

。_饼干妹妹 提交于 2020-01-05 02:52:26
问题 I am writing a PyQt app and I have to add a patch so that the font is readable on macos with dark mode enabled: app = QApplication([]) # Fix for the font colours on macos when running dark mode if sys.platform == 'darwin': p = app.palette() p.setColor(QPalette.Base, QColor(101, 101, 101)) p.setColor(QPalette.ButtonText, QColor(231, 231, 231)) app.setPalette(p) main_window = MainWindow() main_window.show() app.exec_() The issue with this patch is then it makes things unreadable on macos with

Mcrypt PHP extension required on Mac OS X Mojave

左心房为你撑大大i 提交于 2020-01-02 20:24:08
问题 I just update my to Mac OS X Mojave. My local site now stop loading. I kept getting Mcrypt PHP extension required. I tried brew update brew upgrade brew tap homebrew/dupes brew tap josegonzalez/homebrew-php brew install php54-mcrypt php --version // To Test your php I got Error: php54-mcrypt: cannot load such file -- /usr/local/opt/php54-mcrypt/Abstract/abstract-php-extension I tried reload my site I still get this Mcrypt PHP extension required. My set up details php --version , I got PHP 7.1

What is alternative to NSStatusItem.popUpMenu?

痞子三分冷 提交于 2020-01-01 09:48:53
问题 NSStatusItem.popUpMenu has been deprecated in macOS 10.14, but I can't find a nice alternative. let m = statusItem.menu! statusItem.popUpMenu(m) // deprecated I tried direct pop-up using menu and the button, but it doesn't position properly. let m1 = m.items.first! m.popUp(positioning: m1, at: .zero, in: statusItem.button!) 回答1: Xcode suggests to use menu property instead of popupMenu . But once you set the menu property, every click on the item will only show the menu. Instead, if you want

ERROR: While executing gem … (TypeError) incompatible marshal file format (can't be read)

被刻印的时光 ゝ 提交于 2019-12-31 19:31:22
问题 I encountered this issue when I run bundle install with Ruby version 2.4.4 and macOS Mojave: Fetching nokogiri 1.8.5 Installing nokogiri 1.8.5 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed. So I ran xcode-select --install But then when I run gem install nokogiri I got the following output: ERROR: While executing gem ... (TypeError) incompatible

ERROR: While executing gem … (TypeError) incompatible marshal file format (can't be read)

我的未来我决定 提交于 2019-12-31 19:30:08
问题 I encountered this issue when I run bundle install with Ruby version 2.4.4 and macOS Mojave: Fetching nokogiri 1.8.5 Installing nokogiri 1.8.5 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed. So I ran xcode-select --install But then when I run gem install nokogiri I got the following output: ERROR: While executing gem ... (TypeError) incompatible

Cannot install Xcode 10 Network Link Conditioner in macOS Mojave

若如初见. 提交于 2019-12-31 08:10:13
问题 I'm using the final version of Xcode 10 on macOS Mojave beta 11. I downloaded the Additional Tools for Xcode 10 package from Apple's website. When I try to install the Network Link Conditioner Preference Pane, Settings.app displays this error: “Network Link Conditioner” preferences is installed with macOS and can’t be replaced. However, the preference pane is not visible inside Settings.app. I even checked under /Library/PreferencePanes - it's not there. How can I get around this? 回答1: I

Unable to brew upgrade Python in Mojave

和自甴很熟 提交于 2019-12-24 15:27:14
问题 I ran brew outdated in macOS Mojave 10.14.2 and determined that python and python@2 were outdated. When I ran brew upgrade it failed for both. For example for python@2 : ==> Upgrading python@2 ==> Downloading https://homebrew.bintray.com/bottles/python@2-2.7.15_2.mojave.bottle.tar.gz ######################################################################## 100.0% ==> Pouring python@2-2.7.15_2.mojave.bottle.tar.gz Error: An unexpected error occurred during the `brew link` step The formula built

Xcode 10.1 crashes on open due to detailAccentColor unrecognised

不想你离开。 提交于 2019-12-24 05:19:47
问题 So today while opening Xcode (Version 10.1 (10B61)) it installed some additional packages (unfortunately I don't know what). Then when it came to opening anything (existing project, creating a new project, creating playground) it crashed with error as posted below. I tried reinstalling Xcode, but the same error occurred. I'm using MacOS Mojave (version 10.14 (18A314k)) And finally an error: Process: Xcode [2163] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode

Open Developer Page in Mac App Store on macOS Mojave

孤街浪徒 提交于 2019-12-24 02:56:12
问题 the new Mac App Store offers a Developer Page. I would like to link to this page from within my apps. How can do this? I know that I can open single apps (the Mac App Store even shows a "Copy Link" option), but the developer page does not have this option. Is this possible? 回答1: Yes For what I know, you can do it manually by using the Apple Linkmaker, assuming your developer referring to your 'company'. The Standard App Store Links: https://itunes.apple.com/us/app/keynote/id361285480?mt=8