image not found

the app canrun with Xcode. but if just click the app in simulator, it can not run and no error clue. If run in real device, xcode will give the following message:
dyld: Library not loaded: @rpath/VimeoNetworking.framework/VimeoNetworking
Referenced from: /var/containers/Bundle/Application/D1234DDD-5678-4F16-99BA-B7AC50766608/VimeoNetworkingExample-iOS.app/VimeoNetworkingExample-iOS
Reason: image not found

Solution:
add the VimeoNetworking SDK as ‘Embedded Binary’ in general
这里写图片描述

this issue is with the swift security lib not swift core

reference:
https://forums.developer.apple.com/thread/4687

It has a dylib id of /Library/Frameworks/Vorbis.framework/Vorbis, and there’s no way for you to install it into that location on a device. It should be @rpath-relative or a static library that gets linked into your executable.

For some reason, well into the development of a Swift 2.3 custom Framework, Xcode 8 had removed the DYLIB_INSTALL_NAME_BASE setting from the project.pbxproj file. A little walk into the Build Settings / “Dynamic Library Install Name Base” setting back to “@rpath” fixed it.

http://stackoverflow.com/questions/20092886/image-not-found-error-while-using-custom-framework
add copy files in your build phase, set destination to Frameworks. click on your target, then on Editor (menu bar) –> Add build phase –> Add Copy Files Build Phase

More infomation about this:
http://stackoverflow.com/questions/24993752/os-x-framework-library-not-loaded-image-not-found

So I managed to get it working, it’s quite simple when you have the right instructions. What I was looking for was a ‘private’ framework which lives in the App bundle rather than being written to the system library folder.

Building The Framework

Add a target to create a Cocoa Framework
Within that targets ‘Build Settings’ configure the ‘Installation Directory’ to ‘@executable_path/../Frameworks’
Build library, and access the .framework from the archive or products directory
Including The Framework

Drag the created .framework file into the Xcode Project, be sure to tick ‘Copy Files to Directory’
In the containing applications target, add a new ‘Copy File Build Phase’
Set the ‘Destination’ to ‘Frameworks’
Drag in the created .framework

I solved it by specifying the Runpath Search Path

This is on the ‘Build Settings’ tab. In the ‘Linking’ section. Change ‘Runpath Search Paths’ into $(inherited) @executable_path/Frameworks

AssertionError: image not found 是一个错误提示,意思是找不到图片。 这个错误通常发生在程序中需要加载图片文件的地方,但是找不到指定的图片文件导致加载失败。 出现这个错误的原因可能有以下几种: 1. 图片文件路径错误:程序中使用的图片文件路径指向的文件不存在或者路径错误,需要检查图片文件的路径是否正确。 2. 图片文件被移动/删除:如果图片文件被移动或者删除,那么加载图片时就会找不到文件,需要确认图片文件是否存在,并重新指定正确的路径。 3. 图片文件格式不受支持:如果程序中使用的图片文件格式不受支持,加载时就会失败。需要检查图片文件的格式,确保程序支持该格式。 4. 其他问题:还有一些其他可能的问题,比如文件权限问题、文件名大小写问题等,都可能导致图片加载失败。 为了解决这个问题,我们可以尝试以下几个步骤: 1. 检查图片文件路径是否正确,是否指向正确的文件。 2. 确认图片文件是否存在,如果不存在需要重新指定路径或者重新添加文件。 3. 检查图片文件格式是否受支持,如果不受支持可以尝试将图片文件转换为支持的格式。 4. 确认程序对图片文件的访问权限,如果没有权限需要修改文件权限。 5. 如果以上步骤均无效,可以尝试重新安装程序或者更新程序版本,以确保程序能正确加载图片。 综上所述,AssertionError: image not found 错误是由于找不到指定的图片文件导致加载失败所引起的。需要检查图片文件路径、存在性、格式以及访问权限等问题,并进行相应的调整和修复。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值