博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WatchOS 2 problem:dyld: Library not loaded
阅读量:4109 次
发布时间:2019-05-25

本文共 715 字,大约阅读时间需要 2 分钟。

现象

WatchKit Extension报"dyld:Library not loaded"的错误提示,应该是使用的framework没有加载进去

解决办法

在Extension target -> "General" -> "Embedded Binaries"中添加对应的framework

原因

Link binary with libraries Link frameworks and libraries with your project’s object files to produce a binary file. You can link a target’s source files against libraries in the target’s active SDK or against external libraries.
Embed Frameworks You can create an embedded framework to share code between your app extension and its containing app.
Timeline If your containing app target links to an embedded framework, it must include the arm64 architecture or it will be rejected by the App Store.
在App Extension或者Watch Extension中使用三方SDK,则需要使用Embed Frameworks的格式
你可能感兴趣的文章
链表各类操作详解
查看>>
C++实现 简单 单链表
查看>>
数据结构之单链表——C++模板类实现
查看>>
Linux的SOCKET编程 简单演示
查看>>
正则匹配函数
查看>>
Linux并发服务器编程之多线程并发服务器
查看>>
聊聊gcc参数中的-I, -L和-l
查看>>
[C++基础]034_C++模板编程里的主版本模板类、全特化、偏特化(C++ Type Traits)
查看>>
C语言内存检测
查看>>
Linux epoll模型
查看>>
Linux select TCP并发服务器与客户端编程
查看>>
Linux系统编程——线程池
查看>>
Linux系统编程——线程池
查看>>
yfan.qiu linux硬链接与软链接
查看>>
Linux C++线程池实例
查看>>
shared_ptr简介以及常见问题
查看>>
c++11 你需要知道这些就够了
查看>>
c++11 你需要知道这些就够了
查看>>
shared_ptr的一些尴尬
查看>>
C++总结8——shared_ptr和weak_ptr智能指针
查看>>