dyld

Xcode 7.0 XCTest dyld: could not load inserted library IDEBundleInjection

亡梦爱人 提交于 2019-11-29 05:31:59
I'm running unit tests on my iOS project and when it's running, it crashes and spits this out: dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found. Did find: /private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection: mmap() error 1 at address=0x00436000, size=0x00004000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Data/Application

How to properly set run paths, search paths, and install names?

邮差的信 提交于 2019-11-28 22:59:57
问题 I have a collection of projects that I'm compiling as dynamic libraries. Each of these .dylibs depend on other various .dylibs that I would like to place in various other directories (i.e. some at the executable path, some at the loader path, some at a fixed path). When I run otool -L on the compiled libraries, I get a list of paths to those dependencies but I have know idea how those paths are being set/determined. They almost appear pseudo random. I've spent hours messing with the "Build

Xcode 5.0.2 dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest

自古美人都是妖i 提交于 2019-11-28 06:46:24
I have problems running a project in Xcode 5.0.2 I get the following error: dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest Referenced from: /Users/chris/Library/Developer/Xcode/DerivedData/relatio-cwlmozvklaldmictbbjthzuoxnxz/Build/Products/Debug/relatio.app/Contents/MacOS/relatio Reason: image not found (lldb) How do I solve this issue? Robert Wagstaff It looks like your main target is linking to XCTest.framework as well as your test target. It should only be linked to the main target. 1) Go to Project settings 2) Go to your apps main target -> other linker flags 3)

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

孤街浪徒 提交于 2019-11-28 03:15:59
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 specify the rpath in a dylib? . In lib, I executed this command to add rpath. install_name_tool -id "

Brew doctor: dyld: Library not loaded & Error: No available formula for zlib

纵然是瞬间 提交于 2019-11-27 20:02:37
When I brew doctor I get the following errors: dyld: Library not loaded: /usr/lib/libltdl.7.dylib Referenced from: /usr/local/bin/php Reason: image not found Error: No available formula for zlib The file libltdl.7.dylib is not in my /usr/lib directory, but there are several other .dylib files. I'm running 10.8.1 with the latest version of Xcode (4.4.1) and its Command Line Tools installed. Any idea how to solve these errors? kenorb Try to re-install libtool by: brew reinstall libtool --universal && brew unlink libtool && brew link libtool If that doesn't help, try removing libtool completely,

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

时光毁灭记忆、已成空白 提交于 2019-11-27 19:12:31
I have just updated to Xcode 7 and swift 2 and finished fixing the errors that come with the transition. I finally got the project to build, but after the launch screen I get an error saying: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /var/mobile/Containers/Bundle/Application/... Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/.../Frameworks/libswiftAVFoundation.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/.../Frameworks/libswiftAVFoundation.dylib' I have seen

ImageMagick and OS X Lion trouble

杀马特。学长 韩版系。学妹 提交于 2019-11-27 16:58:07
[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 reason decided to remove all of my MacPort libraries and started using Homebrew, i tried installing

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later

ε祈祈猫儿з 提交于 2019-11-27 05:46:57
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 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000) dyld: Symbol not found: _OBJC_CLASS_$

Xcode 5.0.2 dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest

折月煮酒 提交于 2019-11-27 05:42:21
问题 I have problems running a project in Xcode 5.0.2 I get the following error: dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest Referenced from: /Users/chris/Library/Developer/Xcode/DerivedData/relatio-cwlmozvklaldmictbbjthzuoxnxz/Build/Products/Debug/relatio.app/Contents/MacOS/relatio Reason: image not found (lldb) How do I solve this issue? 回答1: It looks like your main target is linking to XCTest.framework as well as your test target. It should only be linked to the main

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

*爱你&永不变心* 提交于 2019-11-27 04:21:28
问题 I have just updated to Xcode 7 and swift 2 and finished fixing the errors that come with the transition. I finally got the project to build, but after the launch screen I get an error saying: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /var/mobile/Containers/Bundle/Application/... Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/.../Frameworks/libswiftAVFoundation.dylib: mmap() errno=1 validating first page of '