osx-lion

XCode 4.3.2 Won't attach to debugger

会有一股神秘感。 提交于 2019-12-13 16:15:11
问题 I finally upgraded to Lion (from SL & Xcode 4.2). I am now running: Current Lion 10.7.3 Current Xcode 4.3.2 Current Simulator(s) 5.1, 5.0, and 4.3 installed. I've backed way off from my current production apps, and created a simple single view universal hello world app, to try to get some form of simulator debugging working. With my new simple app, I CAN still debug on device, but NOT on any simulator I have installed. It launches the simulator, eventually installs the app under test, but

“…can't figure out the architecture type of…” problem when compiling Python C-extension with gcc

此生再无相见时 提交于 2019-12-13 11:57:49
问题 I just upgraded from Snow Leopard to Lion, and an old python c-extension that I had to update didn't want to compile properly. I don't really know what to do here. Anyone who could help me out so it compiles ok? It compiled just fine back in Snow Leopard. Home:folder Me$ python setup.py build running build running build_ext building 'ccookies' extension gcc -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7

Installing Ruby via RVM fails to configure [closed]

廉价感情. 提交于 2019-12-13 11:30:05
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I'm trying to install Ruby via RVM by running rvm install 1.9.3 but am getting a bunch of errors: Error running env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active

NSSavePanel, CGImageDestinationFinalize and OS X sandbox

霸气de小男生 提交于 2019-12-13 05:25:38
问题 I'm using NSSavePanel to let user select image to save to in my app. Everything worked fine until I enabled app sandboxing and entitlements. The problem occurs with selection of an already existing file. My code is like this: // Create a URL to our file destination and a CGImageDestination to save to. CGImageDestinationRef imageDestination = CGImageDestinationCreateWithURL((CFURLRef)[savePanel URL], (CFStringRef)newUTType, 1, NULL); CGImageDestinationAddImage(imageDestination, cgimage,

Error Installing PythonMagick Under OSX Lion

ぃ、小莉子 提交于 2019-12-13 04:23:39
问题 Has anyone here on StackOverflow been able to get PythonMagick successfully installed on a Mac computer running Lion? I've downloaded the PythonMagick source and installed all of the dependencies specified. However, when I run "./configure", "make" and "make install" it exits with an "error 1". Any help would be greatly appreciated. thank you, L. 回答1: To answer your question: yes, people have been able to get PythonMagick to work. You'll need to include more information about the error for us

Xcode 4 menu “Build” and “Clean” options disabled

会有一股神秘感。 提交于 2019-12-13 01:19:53
问题 I have a few c++ Xcode 3 projects which I need to move to Xcode 4. I have done this by simply renaming the Xcode 3 folder, loading the Xcode 3 project in Xcode 4 and then hitting the modernize button. In the case of some of these projects I cannot build them because the Xcode 4 "Build" and "Clean" menu options are disabled (they are all static libraries so there is no question of running them). I have added some of these ported Xcode 4 projects into an Xcode 4 workspace where they build fine

Error when installing homebrew with ruby

折月煮酒 提交于 2019-12-13 00:26:57
问题 Trying to install homebrew from here: $ ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" -e:1: syntax error, unexpected ']' [This script has been moved.][url] ^ 回答1: Acessing https://raw.github.com/gist/323731 in your browser, you see [This script has been moved.][url] [url]:https://github.com/mxcl/homebrew/blob/master/Library/Contributions/install_homebrew.rb But it doesn't seem to work. So use $ ruby -e "$(curl -fsSL raw.github.com/mxcl/homebrew/go)" instead. 来源: https:/

SystemConfiguration/SystemConfiguration.h file not found

两盒软妹~` 提交于 2019-12-12 20:10:42
问题 I am getting the following error in the file Reachability.h. I have the required framework. What else do I need to do? This is an app made in Xcode3 and I am trying to import in Xcode4. 回答1: Re-installing Xcode removed the error. 来源: https://stackoverflow.com/questions/9685101/systemconfiguration-systemconfiguration-h-file-not-found

When trying to build gpuocelot, running into boost link errors on OS X Lion

房东的猫 提交于 2019-12-12 12:09:20
问题 When I try to build libocelot.dylib on OS X, I run into linker errors against boost. It looks like this is on the final step of the build script, when it runs the command: g++ -o .release_build/libocelot.dylib -lstdc++ -dynamiclib [...many *.os files referenced here ...] -L/usr/lib -L.release_build -L. -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGLEW -ldl This gives several undefined symbol errors that look like this: Undefined symbols for architecture x86_64: "std::__detail::

How to install eAccelerator for XAMPP on Mac OS X 10.7 Lion

走远了吗. 提交于 2019-12-12 11:19:18
问题 I had some problems installing eAccelerator on XAMPP installation of Mac OS X Lion. Firstly, I had this problem: Mohd-Yusufs-MacBook-Pro:APC-3.1.9 mohdyusuf$ $PHP_PREFIX/bin/phpize grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/main/php.h: No such file or directory grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend/zend_modules.h: No such file or directory grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend/zend_extensions.h: No such file or