osx-mavericks

Unable to install and run iOS app on Simulator from command line - Simulator of iOS 6.1 Xcode 5 on mavericks

一个人想着一个人 提交于 2019-12-04 08:35:31
I've tried various methods and scripts to launch my iOS compiled app via commandline but unable to do so, help will be appreciated. I tried the following: This command line: ./Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication App.app/App This shell script Attempted on: Simulator app v7.0 iOS 6.1 Mac OSX Mavericks No luck :/ You could use ios-sim (can be installed via Homebrew brew install ios-sim ): ios-sim launch <application path> 来源: https://stackoverflow.com/questions/21599419/unable-to-install-and

How to detect where NaN is passing to CoreGraphics API on Mac OS X 10.9

限于喜欢 提交于 2019-12-04 07:48:59
问题 I have very large graphic Mac app and now I receive a lot of the following messages in Console on 10.9 GM. <Error>: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API. This is a serious error and contributes to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. I noticed that these messages appear in

How can I set a custom C entry point with Clang on OS X Mavericks?

£可爱£侵袭症+ 提交于 2019-12-04 06:37:34
I have the following program: #include <stdio.h> int bob() { printf("bob\n"); return 0; } int main() { printf("main\n"); return 0; } On Linux, I can enable a custom entry point via: gcc test.c -Wl,-e,bob When I run the resulting program, I get: ./a.out bob On OS X, however, this doesn't work: clang test.c -Wl,-e,bob ./a.out main I've tried everything to get this to work. I think it might be a bug. Here's the output with the -v option: clang test.c -Wl,-e,bob -v Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix "/Applications

Install f2py with python3

£可爱£侵袭症+ 提交于 2019-12-04 05:50:07
I need to call routines from Fortran modules within Python. I did it with f2py and python2.7 . It worked pretty well. Now, I have to use it with python3 but f2py does not seem to be compatible with python3 . I see that some people use a version called f2py3 , but it is neither available through pip , not through macports (I am using a Mac). Also, python3+numpy+f2py seem to be already integrated in Fedora . Does anyone have managed to use f2py3 (or its equivalent) with python3 on a Mac? If not, what alternate solution do you propose to link Fortran libraries with python3 ? As an alternative,

Version errors for numpy when importing matplotlib

半城伤御伤魂 提交于 2019-12-04 05:07:58
When I import matplotlib I get no errors, but when I import matplotlib.pyplot I get RuntimeError: module compiled against API version 8 but this version of numpy is 7 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/matplotlib/pyplot.py", line 24, in <module> import matplotlib.colorbar File "/Library/Python/2.7/site-packages/matplotlib/colorbar.py", line 27, in <module> import matplotlib.artist as martist File "/Library/Python/2.7/site-packages/matplotlib/artist.py", line 8, in <module> from transforms import Bbox, IdentityTransform

How to build GCC 4.8.x on Mac OS X host for MIPS target

无人久伴 提交于 2019-12-04 03:48:47
I am trying to build GCC / binutils for a MIPS target platform on a Mac OS X host running (10.9) x86_64. I have downloaded the latest version of binutils and GCC to my knowledge, and I have also installed GCC 4.8.2 via homebrew. However, so far I have been unsuccessful in building GCC / binutils for MIPS arch on a OS X host. I tried setting the CC environment variable to point to the gcc version installed via homebrew, but that doesn't seem to fix the problem. Has anyone created a step by step guide for this procedure? ipatch So I was able to get GCC built on OS X for a target architecture of

Java 1.7 on OSX 10.9.2 running as 1.5?

有些话、适合烂在心里 提交于 2019-12-04 03:24:40
问题 Pulling my hair out about this one. java -version and javac -version both report the same 1.7.0_45, but when I try to compile the simplest class I get a class file error: > cat A.java public class A {} > javac A.java A.java:1: cannot access java.lang.Object bad class file: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar(java/lang/Object.class) class file has wrong version 51.0, should be 49.0 Please remove or make sure it appears in the correct subdirectory of

PHP/Apache crashing on script (Segmentation fault (11)

可紊 提交于 2019-12-04 03:03:22
[SOLVED] I'm running a PHP script (with some includes) on localhost that keeps crashing before the end. Error reporting is on. Opera, Safari and Firefox return an empty screen. But Chrome returns: Unable to load the webpage because the server sent no data. Error code: ERR_EMPTY_RESPONSE Apache logs returns: [Sun Dec 15 19:29:23 2013] [notice] child pid 34267 exit signal Segmentation fault (11) Was using PHP 5.5.6 when I encountered the problem for the first time After downgrading to PHP 5.4.21 the problem still exists. The problem is not inside the script. Randomly commenting out a couple of

GNU gdb can not step into template functions (OS X Mavericks)

三世轮回 提交于 2019-12-04 01:57:55
I have installed gdb 7.7 (from GNU sources) under OS X Mavericks (10.9.2). I codesigned it, so it works fine whenever I debug a c++ file that does not contain templates. However, it is unable to step into template functions (can step into regular functions, but just fails to step into templated ones). When I type step command in a debugging session, it just steps over the function, as if the debugging symbols are not present for the template function. My template function is not even a member function, is just a simple function defined inside the main.cpp . I compile my program with g++ -g -O0

Getting notification list from OS X Notification Center

依然范特西╮ 提交于 2019-12-03 22:13:55
It's possible to send notifications to the Notification Center on Mac using NSUserNotification and NSUserNotificationCenter API classes. But is there any way of reading the notifications from the Notification Center? There is no public API for that. So nothing App Store conform. BUT As part of my little tech-demo-app DiscoNotifier (where I flash the keyboard LEDs in response to a notification) I wrote a DDUserNotificationCenterMonitor class see: https://github.com/Daij-Djan/DiscoNotifier/tree/master/DiscoNotifier it works using FileSystemEvents and SQLite and checks the notification center's