osx-lion

Lion 10.7.3: Apple is not currently accepting applications built with this version of the OS

♀尐吖头ヾ 提交于 2019-12-03 10:42:09
I was running Xcode 4.2 on Lion 10.7.2 and I have a few applications that needed updating to the Lion sandbox, so I can resubmit them to the Mac App Store (Mac, not iOS). Somewhere along the way I had a popup to update to combo update 10.7.3 and after that everything went wrong. Verifying and submitting apps was fine if the archive was compiled in 10.7.2 but if it was compiled after the 10.7.3 update it can no longer verify the app. That is right, under 10.7.3 I can still verify apps if they were compiled before the upgrade. Anything compiled after will give me this: "This bundle is invalid.

“subl” command not working properly

穿精又带淫゛_ 提交于 2019-12-03 10:01:37
问题 I'm running into a problem when using the "subl" command in my terminal. It used to work fine but lately when I run it does open the files I want but I can't edit them and moreover Sublime Text doesn't show up in the topbar of my mac as if it wasn't running at all (there's no dot besides the icon in the dock aswell). I kind of opens it as if it was just a window and not an application...But when I click on the icon from the dock it works just fine ! I've got an old macbook from 2008 running

Unicode characters in Ruby 1.9.3 IRB with RVM

你离开我真会死。 提交于 2019-12-03 09:49:41
问题 Update : I found almost exact similar question, yet it has slightly different prerequisites and thus doesn't help much. Given: MacOS Lion 10.7.3 rvm 1.14.2 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] Ruby was installed with the following line: rvm install 1.9.3 --with-readline-dir=/usr/local/Cellar/readline/6.2.2/ When I fire up irb or rails c and start typing unicode characters, I get: \U+FFD0\U+FFBF\U+FFD1\U+FFD0\U+FFB8\U+FFD0\U+FFBC\U+FFD0\U+FFB5\U+FFD1 How do I get

Using gcc not llvm-gcc with Mac OS X Lion

无人久伴 提交于 2019-12-03 09:38:43
问题 gcc is symbolically linked to llvm-gcc on Mac OS X Lion. prosseek ~> ls -alF /usr/bin/gcc lrwxr-xr-x 1 root wheel 12 Nov 12 14:39 /usr/bin/gcc@ -> llvm-gcc-4.2 How can I setup to use gcc-4.2 when gcc is called? 回答1: As of Xcode 4.2 in Lion, Apple no longer ships its previous version of gcc-4.2 , which was in Xcode 4.1 and earlier versions. It now only ships llvm-gcc (gcc front-end with llvm code backend) and clang (clang front-end with llvm backend). While it is possible to install legacy

How to setup Intellij for Scala 2.10

我们两清 提交于 2019-12-03 09:17:14
问题 First I installed macports Then I installed Scala and Play through macports: To make sure installation works I run a "hello world" on eclipse. It works! But since my objective is to use Intellij, I try to follow the instructions at http://confluence.jetbrains.com/display/SCA/Getting+Started+with+IntelliJ+IDEA+Scala+Plugin On step 3 of the instructions (section Creating a Project ), under use scala distribution , I am not sure what to type. Will someone please tell me what to type? I am using

Don't automatically switch to the higher-end discrete GPU

江枫思渺然 提交于 2019-12-03 08:51:18
问题 As written in this Technical Q&A: By default, once your application creates an OpenGL context (by either calling OpenGL directly or an API that relies on OpenGL such as Core Animation, Core Image, etc), the MacBook Pro automatically switches to the higher-end discrete GPU for performance concerns and won't switch back until the application quits. There is a way to prevent this? The discrete GPU, on newer MacBook Pros, wastes power and shortens battery life. The simple insertion of the

Installing (build) matplotlib in mac osx lion

你说的曾经没有我的故事 提交于 2019-12-03 07:54:54
问题 I installed pynum and scipy (on osx Lion with python 2.7), but when I tried to build matplotlib git clone https://github.com/matplotlib/matplotlib.git cd matplotlib python setup.py build python setup.py install I've got these errors: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSTypes.h:242: error: declaration for parameter ‘FMFontDirectoryFilter’ but no such parameter src/_macosx.m:5912: error: expected ‘{’ at end of input lipo: can't open input

How can I get an NSView to resize to fit the desired sizes of its subviews using Auto Layout?

扶醉桌前 提交于 2019-12-03 07:49:54
问题 I have a superview with three subviews. Two of those subviews are fixed in size and position within the superview, but the third can vary in size depending on its contents. I have set up auto layout constraints to set the size and position of each of the sub views, but what I would like to happen is that when the contents of the third view change, the superview should resize to be able to display it fully. I have implemented - (NSSize) intrinsicContentSize on that subview so that it returns

Emacs 24 and GDB 6.3 on Mac OS X

爱⌒轻易说出口 提交于 2019-12-03 07:26:08
问题 I've been trying out Emacs 24 (pretest 24.0.95.1) on OS X Lion for the past few days but am running into some issues with the new gdb/MI interface. With GDB 6.3 that comes with Xcode, but the gdb/MI interface doesn't seem to load at all. It appears to try to start the GDB GUD mode, but no commands actually work. I also attempted installing GDB-7.4 via Homebrew. That gets me partly there. the gdb-many-windows interface shows up, but the gdb prompt never arrives. Emacs just sits there eating up

How do I add PPC/PPC64 support back to Xcode 4.2 under Lion?

廉价感情. 提交于 2019-12-03 07:12:06
问题 I have a Lion (10.7.1) system on which I installed Xcode 4.2. Suppose I have a simple C program helloWorld.c as follows: #include <stdio.h> main() { printf("hello, world\n"); } Using this setup, I would like to try to compile helloWorld.c for use on PPC and PPC64 architectures, e.g. : $ gcc -arch ppc helloWorld.c -o helloWorld This gives the following error message: llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or