osx-yosemite

Error installing bcrypt using npm on yosemite

大憨熊 提交于 2019-12-13 01:34:13
问题 I'm trying to install bcrypt using npm on yosemite with xcode 6.3 beta and node 0.12 installed. First I got the following problem and could resolve it with the given answer: xcode-select active developer directory error But now I got this problem: > bcrypt@0.8.1 install /Users/reweber/Idea/rtschat/node_modules/bcrypt > node-gyp rebuild child_process: customFds option is deprecated, use stdio instead. CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o CXX(target) Release/obj.target

Issues with “On Open” Applescript handler in Yosemite

百般思念 提交于 2019-12-12 13:01:55
问题 In using Applescript in OSX 10.10 (Yosemite), it seems Apple has changed some of the default behavior. on open dropped_files display dialog (count of dropped_files) end open This very basic Applescript highlights the problem. If I select a group of 6 files from the Finder, and drop/drop onto a compiled version of this script, I get the response "2" and then the response "4". It should be responding "6"... but it's almost as if Finder is parsing the files into smaller groups. If I do this

git: error: SDK “macosx” cannot be located

最后都变了- 提交于 2019-12-12 11:13:30
问题 Just updated my machine to Yosemite. I'm getting this error from Git now: git: error: SDK "macosx" cannot be located I'm able to run git status with no issue, but anything like git add seems to work, but then throws this error. Command Line Tools are installed, I tried reinstalling Git. 回答1: Not sure exactly what, but something got out of whack during the upgrade. Uninstall CommandLineTools by typing sudo rm -r /Library/Developer/CommandLineTools then reinstall. I just typed some git command

remove parallels binding to a command line open app command

て烟熏妆下的殇ゞ 提交于 2019-12-12 10:09:49
问题 I'm trying to open google chrome mac with disabled security with the command line open -a Google\ Chrome --args --disable-web-security However it keeps opening up parallels windows chrome instead - how do I remove the parallels binding for chrome so that it doesn't open from mac terminal? 回答1: Use the full path to the application: open -a /Applications/Google\ Chrome --args --disable-web-security Parallels creates folders in ~/Applications for each virtual machine. These folders contain

CloudKit didReceiveRemoteNotification not called on the Mac

谁说我不能喝 提交于 2019-12-12 10:06:55
问题 I am using the following CKNotification Info and this seems to work fine: CKNotificationInfo *note = [[CKNotificationInfo alloc] init]; note.alertBody = @"Something Happened"; note.shouldBadge = NO; note.shouldSendContentAvailable = NO; When something changes on an iOS device, my Mac app receives a Push notification based on a subscription with this notification. However, didReceiveRemoteNotification is never called so I can't process the event. I need to be able to refresh and fetch new

Why am I getting the error “Command /usr/bin/codesign failed with exit code 1” in Xcode 6 on Yosemite?

帅比萌擦擦* 提交于 2019-12-12 07:47:51
问题 I'm using Xcode 6.1, OS X Yosemite preview 8, and I'm getting the following error on code signing my app: Command /usr/bin/codesign failed with exit code 1 Reading on Google, it seems to be linked to expired certificates/provisioning profiles. I deleted all of my certificates & profiles, created a new development certificate & profile, installed both, restarted my Mac, and I’m still getting the same error. Can anyone shed some light on how to resolve this problem? 回答1: How about this: Try

Uninstalling gcc completely in Mac OS X Yosemite?

情到浓时终转凉″ 提交于 2019-12-12 04:25:54
问题 I am trying to uninstall gcc completely from my mac but unable to do so. Current status : ➜ ~ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0 /5.0.0/lto-wrapper Target: x86_64-apple-darwin14.0.0 Configured with: ../gcc-5-20141005/configure --enable languages=c++,fortran Thread model: posix gcc version 5.0.0 20141005 (experimental) (GCC) ~ which gcc /usr/local/bin/gcc I had xcode installed and I removed that completely and also

Problems with Homebrew on Yosemite

拈花ヽ惹草 提交于 2019-12-12 03:36:24
问题 I'm a newbie to Homebrew, having some problems. Can anyone help? I've been using step-by-step instructions from the belowmentioned website but I ran into a wall. Here's what brew doctor tells me. I can't install "winetricks" because "freetype" is disabled. I can't "link freetype" because "Linking /usr/local/Cellar/freetype/2.5.5... Error: Could not symlink include/freetype2/config /usr/local/include/freetype2 is not writable." http://www.techboxed.com/news/how-to-get-star-wars-the-old

Diagnosing SIGBUS error on OS X Yosemite

懵懂的女人 提交于 2019-12-11 23:52:23
问题 I'm attempting to convert some code to run on OS X and having problems with some of the low-level memory writing code (which works on Linux/Windows platforms). Specifically the method being called is: void Dset_mem_write_i1B(void* ptr,int val) { unsigned char* p=(unsigned char*)ptr; *p=(val)&0xFF; } The relevant test code (GTest) is: TEST(DsetMemIoTest, test_write) { const char mem[4] = ""; void* vmem = (void*)mem; int mem_read = 0; int to_write = 0; to_write = 'a'; Dset_mem_write_i1B(vmem,

SWT browser not rendering until shell resize on mac

情到浓时终转凉″ 提交于 2019-12-11 23:33:45
问题 I have a problem with the SWT browser. I am using Mac OS X Yosemite. The browser is deeply placed in a composite hierarchy. i.e., The shell has say composite A, and composite A has composite B, and composite B has composite C and the Browser is placed inside this composite C. I've added location listeners and progress listeners for the browser. GridDataFactory, GridLayoutFactory are from org.eclipse.jface.layout package. Composite compositeC= new Composite(compositeB, SWT.BORDER);