dyld

ImageMagick and OS X Lion trouble

陌路散爱 提交于 2019-11-27 04:10:16
问题 [edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it's a vital part of my app. After upgrading to OS X Lion (10.7) i no longer had ImageMagick available, i then tried installing again using MacPorts without success, i then installed from source, and the install wasn't very successfully i had convert and identify but it output error messages that i unfortunately dont have anymore, i by some strange

How to set the runtime path (-rpath) of an executable with gcc under Mac OSX?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 03:01:16
I want to set under Mac OSX the runtime path of an executable (for the linker) at compile time, such that shared libraries at non-standard locations are found by the dynamic linker at program start. Under Linux this is possible with -Xlinker -rpath -Xlinker /path/to (or using -Wl,-rpath,/path/to ) and under Solaris you can add -R/path/to to the compiler command line. I found some information that Mac OS X gcc has -rpath support since 10.5, i.e. since ~ 2008. I tried to get it working with a minimal example - without success: $ cat blah.c int blah(int b) { return b+1; } And: $ cat main.c

Broken references in Virtualenvs

二次信任 提交于 2019-11-27 02:20:43
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 try to run anything in them: dyld: Library not loaded: @executable_path/../.Python Referenced from: /Users/[user]/.virtualenvs/modclass/bin/python Reason: image not found Trace/BPT trap: 5 I have removed all the files related to dotfiles and have restored my .bash

install_name_tool to update a executable to search for dylib in Mac OS X

微笑、不失礼 提交于 2019-11-26 23:58:15
问题 I have a dynamic libray libtest.dylib that is installed in /PATH/lib , and an execution binary, myapp, that uses the dylib installed in /PATH/bin . I can run myapp to find the dylib as follows (Is it OK to use DYLD_LIBRARY_PATH on Mac OS X? And, what's the dynamic library search algorithm with it?): DYLD_LIBRARY_PATH="/PATH/lib" myapp I think I can use install_name_tool to update the library and executable so that the library can be found with rpath. I used the hints in this post - How can I

How do I add a third party Framework to iPhone project?

霸气de小男生 提交于 2019-11-26 22:59:41
问题 I am trying to use the PLDatabase framework in my iPhone app. I've added the framework to my Xcode project. However, when I run my app, it crashes with the following error: dyld: Library not loaded: @loader_path/../Frameworks/PlausibleDatabase.framework/Versions/A/PlausibleDatabase Referenced from: /Users/todd/Library/Application Support/iPhone Simulator/User/Applications/BB3C66B2-A5BB-4329-B163-AB0072411AF1/Congress.app/Congress Reason: image not found I'm not sure exactly where the

Reason: no suitable image found [closed]

时光毁灭记忆、已成空白 提交于 2019-11-26 21:31:07
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/Stylist.app/Stylist Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/testapp.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/testapp.app/Frameworks/libswiftCore.dylib' (lldb) I am getting this error when building on my iPhone. I am able to build on the

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later

被刻印的时光 ゝ 提交于 2019-11-26 12:49:24
问题 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 when I include the conditional code I get (either SystemVersion conditional or

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

℡╲_俬逩灬. 提交于 2019-11-26 11:11:14
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? mukaissi For me none of the previous solutions worked. We discovered that there is an flag ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES (in earlier versions: "Embedded Content Contains Swift Code") in the Build Settings that needs to be set to YES. It was NO by default! This error can occur if something went wrong during the conversion of an Objective-C project to start using Swift. The issue is that the Linker build settings never got

dyld: Library not loaded … Reason: Image not found

蹲街弑〆低调 提交于 2019-11-26 11:02:34
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 do with the executable only looking in the directory it is in as when I paste the 'libboost_atomic.dylib' in there, it doesn't mind about it anymore. Unfortunately then it complains it can't find the next boost library. Is there an easy way to fix this?

Broken references in Virtualenvs

偶尔善良 提交于 2019-11-26 10:04:59
问题 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 try to run anything in them: dyld: Library not loaded: @executable_path/../.Python Referenced from: /Users/[user]/.virtualenvs/modclass/bin/python Reason: image