registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later

When trying to register for push notifications under iOS 8.x: application.registerForRemoteNotificationTypes(UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound) I get the following error: registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later. Any ideas what is the new way of doing it? It does work when I run this Swift app on iOS 7.x. EDIT On iOS 7.x … Read more

dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib

I get this error after adding a Swift class to an old Xcode project. dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib How can I make the project run again? 36 Answers 36 For me none of the previous solutions worked. We discovered that there is a flag ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES (in earlier versions: “Embedded Content Contains Swift Code”) in … Read more

Broken references in Virtualenvs

I recently installed a bunch of dotfiles on my Mac along with some other applications (I changed to iTerm instead of Terminal, and Sublime as my default text editor) but ever since, all my virtual environments have stopped working, although their folders inside .virtualenvs are still there and they give the following error whenever I … Read more

dyld: Library not loaded … Reason: Image not found

When trying to run an executable I’ve been sent in Mac OS X, I get the following error dyld: Library not loaded: libboost_atomic.dylib Referenced from: /Users/”Directory my executable is in” Reason: image not found Trace/BPT trap:5 I have installed the boost libraries and they are located in /opt/local/lib. I think the problem has something to … Read more

iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

This crash has been a blocking issue I used the following steps to reproduce the issue: Create a Cocoa Touch Framework project Add a swift file and a class Dog Build a framework for device Create a Single View application in Swift Import framework into app project Instantiate swift class from the framework in ViewController … Read more