Reason: image not found
2017-03-01 20:58
302 查看
本来今天用Swift写了一些东西,快下班的时候准备给老板看一下,结果尴尬了,一到真机就崩溃,模拟器上明明好好的,怎么会会这样呢,老是提示
Reason: image not found
乍一看图片找不到,这是什么鬼之前都没遇到过,然而还是下班了,回去终于发现了问题了。一半崩溃Xcode都会有提示,这次也是,只不过下班的时候比较忙没注意看上面上面有这句
dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
用过Swift的估计都知道
Alamofire
就是一个封装的网络请求,那么有可能就是这个的问题,不对,应该就是这个的问题,百度了很多,终于发现怎么改了,其实很简单,只要在
TARGETS->Build Phases->Link Binary With Libraies找到Alamofire.framework把状态更改为Optional
还有就是
TARGETS->Build Settings->Enable Bitcode->NO
这样的话在真机运行就可以了。
Reason: image not found
乍一看图片找不到,这是什么鬼之前都没遇到过,然而还是下班了,回去终于发现了问题了。一半崩溃Xcode都会有提示,这次也是,只不过下班的时候比较忙没注意看上面上面有这句
dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
用过Swift的估计都知道
Alamofire
就是一个封装的网络请求,那么有可能就是这个的问题,不对,应该就是这个的问题,百度了很多,终于发现怎么改了,其实很简单,只要在
TARGETS->Build Phases->Link Binary With Libraies找到Alamofire.framework把状态更改为Optional
还有就是
TARGETS->Build Settings->Enable Bitcode->NO
这样的话在真机运行就可以了。
相关文章推荐
- 关于dyld: Library not loaded Reason: image not found问题的解决方案
- Reason: image not found
- Swift-Xcode真机运行出现Reason: image not found错误
- IOS 出现错误reason: image not found的解决方案
- ios Framework 制作 的一个坑 Reason: image not found dyld: Library not loaded:
- Reason: image not found
- Reason: image not found! 真机测试框架既然报错?!
- Reason: image not found 错误解决方法,这才是正确的解决方法
- mac报错 Reason: image not found
- ios开发在导入环信SDK后运行出现 Reason: image not found 的解决方案
- 解决 dyld: Library not loaded:Reason: image not found
- 集成环信时 Reason: image not found
- Reason : image not found
- Reason : image not found
- Reason: image not found解决办法
- 使用第三方动态库出现dyld: Library not loaded Reason: image not found
- reason: image not found如何解决
- iOS 集成环信 出现Reason: image not found 的错误
- IOS 出现错误 :Reason: image not found
- Reason: image not found 错误解决方法