osx-yosemite

Delaying Code Execution on OSX 10.10

荒凉一梦 提交于 2019-12-03 21:58:30
I've encountered a very strange issue that affects my code running only on OSX 10.10 systems. I've seen this anomaly occur on over 25 OSX 10.10 systems running my code, whereas the exact same code did not exhibit this behavior before upgrading (10.7). Furthermore, this issue is not 100% reproducible in that it occurs randomly ~0-5% of the time. While testing the code, nothing else critical or CPU exhaustive is occurring on the machine. Even if something else was happening, the very fact that the delays I'm experiencing are soooo ridiculously long make that conclusion seem suspicious. Anyhow,

PackageApplication stopped working with OS X 10.10 (Yosemite) today

狂风中的少年 提交于 2019-12-03 19:15:12
问题 UPDATE: The correct answer is probably this one: Xcode 6.1 error while building IPA Using Jenkins to build iOS projects from repositories since a few years. Suddenly today a new error occurs, stopping builds. I think I based most of this setup on this tutorial way back: http://www.raywenderlich.com/22816/beginning-automated-testing-with-xcode-part-22 This step causes the error: # 4 echo "*** Post build step 4" /usr/bin/xcrun -sdk iphoneos PackageApplication \ -o "${IPA_DIR}/${PROJECT}.ipa" \

Homebrew installs nvm but nvm can't be found afterwards?

旧街凉风 提交于 2019-12-03 18:20:42
问题 I'm using homebrew and oh-my-zsh on a fresh OSX 10.10.1 install. I got nvm via homebrew and then attempted to run it but says - zsh: command not found: nvm Any idea what the problem is? I was able to install and use git just fine... UPDATED 9/20/2019 As stated by more recent answers from DarkPurple141 and Elise van Looij. nvm doesn't appear to be compatible with homebrew . This is also stated in the official nvm-sh repo located here. Homebrew installation is not supported. If you have issues

SecurityAgentPlugin not working anymore on Yosemite (SFAuthorizationPluginView)

ⅰ亾dé卋堺 提交于 2019-12-03 16:07:30
We have developed an Authorization Plug-in that uses an SFAuthorizationPluginView to present UI to the user. This example is based on the "old" NameAndPassword example provided by Apple. We are using this Authorization Plug-in to unlock the session (we have updated the "system.login.screensaver" authorization in the authorizationdb) using a custom view. This worked well until the last update to Yosemite. Since Yosemite, the SFAuthorizationPluginView is not closing anymore after the user logged into the session. We could update the example to force closing the window, by doing something like: /

CGEventTapCreateForPSN in Mavericks+ (GetCurrentProcess deprecated)

我们两清 提交于 2019-12-03 16:05:11
问题 I am using CGEventTapCreateForPSN to trap and filter keys for my application. I'm not interested in intercepting events for other applications. I'm pretty sure an event tap is too heavy handed for my purpose, but I've been unable to find a better way, and using the event tap works. Specifically, this code does what I want. GetCurrentProcess(&psn); CFMachPortRef eventTap = CGEventTapCreateForPSN( &psn, kCGHeadInsertEventTap, kCGEventTapOptionDefault, CGEventMaskBit(kCGEventKeyDown) |

Error installing Ruby in Yosemite

梦想的初衷 提交于 2019-12-03 13:37:51
I have recently updated my OS X to 10.10 and since then facing issue installing ruby through RVM. There is a dependency on gcc46 which I am unable to resolve. Any help is appreciated. Below is the error stack. rvm reinstall ruby-1.9.3-p547 ruby-1.9.3-p547 - #removing src/ruby-1.9.3-p547 - please wait ruby-1.9.3-p547 - #removing rubies/ruby-1.9.3-p547 - please wait Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p547. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking

Undefined symbols for architecture x86_64: for caffe build

两盒软妹~` 提交于 2019-12-03 09:53:43
问题 I got this error for caffe build. How can I fix it? I'm using Mac OSX Yosemite 10.10.1. CONSOLE LOG Machida-no-MacBook-Air:caffe machidahiroaki$ /usr/bin/clang++ -shared -o .build_release/lib/libcaffe.so .build_release/src/caffe/proto/caffe.pb.o .build_release/src/caffe/proto/caffe_pretty_print.pb.o .build_release/src/caffe/blob.o .build_release/src/caffe/common.o .build_release/src/caffe/data_transformer.o .build_release/src/caffe/dataset_factory.o .build_release/src/caffe/internal_thread.o

AirPlay messes up localhost

故事扮演 提交于 2019-12-03 09:34:16
Since the last OSX update (Yosemite), my localhost server is full of error messages from airplay (but I am not using it). Each times it's the same: [31/Oct/2014 05:40:42] code 400, message Bad request version ('RTSP/1.0') [31/Oct/2014 05:40:42] "GET /info?txtAirPlay&txtRAOP RTSP/1.0" 400 - It's just annoying to have its server full of error messages so if anyone has a clue to fix that or to remove airplay, I would be very thankful :) I think I found the answer: On a cisco discovery forum they listed an nmap output that revealed the Yosemite discoveryd port ranges. Turns out the Apple is using

Can't drag and drop item from storyboard to viewcontroller in xcode

怎甘沉沦 提交于 2019-12-03 08:32:21
问题 I started working with xcode a few days ago, and today I tried to connect a textview from the main storyboard to the viewcontroller, but I figured out that its not working. I am able to ctrl+click to drag the item, but unable to place it in both viewcontroller.h and .m. I double checked that its viewcontroller and not UIViewcontroller, so this is not the case. I'm using a Yosemite 10.10 mac. Any kind of help would be appreciated. 回答1: Select the ViewController in storyboard and change the

How to save a color in NSUserDefaults in swift?

半城伤御伤魂 提交于 2019-12-03 07:36:44
I have a litle problem with saving a color in NSUserDefaults . In objective-c is easy : -(NSColor *)colorForKey:(NSString *)key{ NSData *data; NSColor *color; data = [[NSUserDefaults standardUserDefaults] objectForKey:key]; color= [NSUnarchiver unarchiveObjectWithData:data]; if( ! [color isKindOfClass:[NSColor class]] ){ color = nil; } return color; } -(void)setColor:(NSColor *)color forKey:(NSString *)key{ NSData *data = [NSArchiver archivedDataWithRootObject:color]; [[NSUserDefaults standardUserDefaults] setObject:data forKey:key]; } The above code works fine in objective-c, but when i try