macos-sierra

why can't I find my settings.xml under ~/.m2?

放肆的年华 提交于 2019-12-04 16:12:11
Why can't I find my settings.xml under ~/.m2 Note: I'm currently running Apache Maven 3.3.9 on my machine. 0x44656e6e795279616e There are two locations where a settings.xml file may live: The Maven install: ${maven.home}/conf/settings.xml The user’s install: ${user.home}/.m2/settings.xml The former settings.xml are also called global settings, the latter settings.xml are referred to as user settings. If both files exists, their contents gets merged, with the user-specific settings.xml being dominant. Tip: If you need to create user-specific settings from scratch, it’s easiest to copy the

NSToolbarItem: “Make sure this toolbar item has a valid frame/min/max size”?

青春壹個敷衍的年華 提交于 2019-12-04 03:44:23
Since upgrading to Mac OS Sierra and the new XCode version I get the following error every time I launch my application for every one of the NSToolbarItems: Example 1: 2016-09-29 12:46:58.659879 AppTest[] NSToolbarItem (<NSToolbarItem: >) had to adjust the size of <NSPopUpButton: > from {130, 26} to the expected size of {132, 27}. Make sure that this toolbar item view has a valid frame/min/max size. This is an app bug, please do not file a bug against AppKit or NSToolbar! Break on _NSToolbarAdjustedBorderedControlSizeBreakpoint Example 2: 2016-09-29 12:46:58.666074 AppTest[] NSToolbarItem (

managedObjectContext in Swift 3

半城伤御伤魂 提交于 2019-12-04 01:05:25
I want to work through this example code in which Swift and CoreData is used to create a table. However, using Swift 3 I fail to get it to work. Most importantly, I cannot properly replace the line // set up the NSManagedObjectContext let appDelegate = NSApplication.sharedApplication().delegate as! AppDelegate managedContext = appDelegate.managedObjectContext even though I found this related question (which however is iOS not OS X). How can I replace that piece of code which produces the error message Value of type 'AppDelegate' has no member 'managedContext' ? darksinge Swift 3 in macOS let

pyinstaller No module named pyinstaller

做~自己de王妃 提交于 2019-12-04 00:29:19
I have 2 python versions installed under my mac osx sierra: python 3.5 python 2.7 I installed pyinstaller under python3.5 with this command: python3.5 -m pip install pyinstaller If I run again the same command I'm getting: Requirement already satisfied: pyinstaller in ./lib/python3.5/site-packages Requirement already satisfied: setuptools in ./lib/python3.5/site-packages (from pyinstaller) That to me means that is is installed under python 3.5 and ready to be used. When I run this command: python3.5 -m pyinstaller mypython35script.py I'm getting: /Library/Frameworks/Python.framework/Versions/3

How do I disable the Show Tab Bar menu option in Sierra apps?

吃可爱长大的小学妹 提交于 2019-12-03 23:47:58
I've got an app that uses a Toolbar in a NSWindow. I don't want users to be able to customize this toolbar for aesthetic reasons. In Sierra there's a new Menu option that gets inserted into "Menu > View" called Show Tab Bar . How do I disable this? Enabling it only seems to increase the tool bar's height as I don't have extra labels showing under the icons. You can also do this on IB, on the Window’s attributes inspector On 10.12, you need to now set the following when the window is created as Tab Bar is now available by default: [NSWindow setAllowsAutomaticWindowTabbing: NO]; If you don't

Gitx on mac os Sierra: Objective-C garbage collection is no longer supported

心不动则不痛 提交于 2019-12-03 22:05:54
After upgrading to Sierra(10.12) I have an issue with garbage collection within GitX. objc[2253]: Objective-C garbage collection is no longer supported. I dug around and found this gix fork that appears to be working https://rowanj.github.io/gitx/ 来源: https://stackoverflow.com/questions/39914454/gitx-on-mac-os-sierra-objective-c-garbage-collection-is-no-longer-supported

gdb os x sierra 10.12.3 not working

不打扰是莪最后的温柔 提交于 2019-12-03 21:53:44
the problem is already known, that gdb doesn't work with OS X Sierra anymore. This is really annoying, since I researched already about the solution, and there were some solutions, but they apparently don't work anymore. I tried to use the .gdbinit file solution and the disable csrutil solution, both doesn't work. Sooo my question is: Does anyone know how to fix it in 10.12.3 ? Thank you very much! Looks like there still isn't a solution to this. I don't think "use LLDB instead of GDB" is the ultimate solution. So I went ahead and built a fairly basic docker container which contains the very

AddKeysToAgent yes ssh config not working on Mac

≡放荡痞女 提交于 2019-12-03 17:02:54
Hi I have my ssh config file setup to auto add ssh keys to ssh agent. However, currently it is not working. It was working previously. I updated the ssh key for bitbucket and it no longer works. When I reboot, I have to add the ssh key manually using ssh-add -K option. Can someone help me figure out why ssh config isn't working? AddKeysToAgent yes option is suppose to enable the auto adding of ssh keys. I am running macOS Sierra 10.12.4 Here is config (I changed server names for sensitivity purposes) GSSAPIAuthentication no # --- SourceTree Generated --- Host cik-bitbucket__com HostName

Java applets in macOs Sierra crashes

大城市里の小女人 提交于 2019-12-03 16:18:31
After I update my mac to macOs Sierra, i have problems with java applets in Safari. They didn't start, or start and crash. Process: java [2271] Path: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java Identifier: net.java.openjdk.cmd Version: 1.0 (1.0) Code Type: X86-64 (Native) Parent Process: plugin-container [2270] Responsible: java [2271] User ID: 501 Date/Time: 2016-10-03 14:10:04.915 +0300 OS Version: Mac OS X 10.12 (16A323) Report Version: 12 Anonymous UUID: 624C8F20-CA48-4915-59CD-DE6757A27CC3 Time Awake Since Boot: 4300 seconds System Integrity Protection:

macOS Sierra - how to enable “Allow Remote Automation” using command line

跟風遠走 提交于 2019-12-03 15:08:07
问题 I am working on an automation stuff in macOS Sierra (10.12.2). By using python's atomac support I can launch the safari browser and make the settings enabled via Safari -> Preferences -> Advanced -> check "enable Develop Menu" and then select "Develop -> Allow Remote Automation". Looks like this is not so consistent for automation perspective. I would like to know if there is any shell command to make this possible. 回答1: Hmm ok, so as per my comment: You could do defaults write com.apple