Top "Darwin" questions

Darwin is the open-source core of macOS, iOS, tvOS and watchOS.

How to build a cross-compiler for i386-apple-darwin target from x86_64-apple-darwin host?

Problem overview I am trying to learn how to build a cross-compiler, specifically a version of GNU gcc 4.7.2 on a 64…

macos gcc cross-compiling gnu darwin
How can I use mach_absolute_time without overflowing?

On Darwin, the POSIX standard clock_gettime(CLOCK_MONOTONIC) timer is not available. Instead, the highest resolution monotonic timer is …

macos x86 posix powerpc darwin
Getting suddenly a lot of request from CFNetwork/Darwin

I've noticed in the AWS console that our website got a lot of more requests than normally. Especially in the …

ios swift darwin cfnetwork
What is the deal with undefined symbols in a shared library or dylib?

I have a Makefile for linux that I am porting over to Darwin. The makefile takes a bunch of .o …

c++ gcc shared-libraries dylib darwin
How to enable large file support under Darwin?

I have a C application I am trying to compile for Mac OS X 10.6.4: $ uname -v Darwin Kernel Version 10.4.0: Fri …

c linux fopen darwin large-file-support
How to properly use CFNotificationCenterAddObserver in Swift for iOS

Pulling my hair out getting CFNotificationCenterAddObserver to work in Swift. CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), UnsafePointer<Void>(self), iosLocked, "com.apple.…

ios swift notifications darwin
Avoid linking in unused symbols when linking against static libs

I'm using the apple gcc to compile a dylib that I'm going to redistribute. For various reasons I'm using some …

c++ linker darwin
task_for_pid always returns (os/kern) failure on darwin in C

For some reasons I cannot get anything to come out of task_for_pid() I can't find very much information …

c ios darwin mach-o