如何解决警告linking against dylib not safe for use in application extensions
来源:互联网 发布:it服务管理体系认证 编辑:程序博客网 时间:2024/04/28 18:49
ld: warning: linking against dylib not safe for use in application extensions: /Users/benson/Library/Developer/Xcode/DerivedData/Measure-benwacigtchgodcwkypxzdxtuapu/Build/Products/Debug-iphonesimulator/DarwinKit.framework/DarwinKit
因为app extension限制了某些API的使用, ( App Extensions不能使用的一些API ) ,因此在自定义自己的framework后,这个framework可能包含了某些在App Extensions里不能使用的API,因此为了安全起见才会给出这个警告。
下面是清除警告的方法:
选中自定义framework的target(这里的例子是DarwinKit)
然后选中Build Settings,(记住选择All,而不是Basic),在过滤框中输入"require only",将Require Only App-Extension-Safe API的值改成YES,(默认为NO),然后Command + K clean一下工程,警告久消除了。
参照:https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html
0 0
- 如何解决警告linking against dylib not safe for use in application extensions
- 【Link】Building for MacOSX, but linking against dylib built for iOS Simulator file
- 如何解决警告 warning: directory not found for option
- Jira的 Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'错误的解决
- Jira的 Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'错误的解决 原创 2
- INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)的解决
- Can not find so for swat in Samba in Solaris? Try crle command to update runtime linking configuration.
- Safe CFLAGS to use for Gentoo
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- Xcode解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- springMVC的异常处理
- “取出数据表中第10条到第20条记录”的sql语句+select top 用法
- MFC的消息处理模式
- java对redis的基本操作
- 2.4 GHz ZigBee网络处理器CC2530ZNP(TI)
- 如何解决警告linking against dylib not safe for use in application extensions
- hadoop一些术语
- java学习--IO流(3)-Properties
- js编写倒计时跳转页面
- Matlab插值方法大全
- HTTP_自定义下载类
- 算法学习笔记——Dijkstra单源最短路径算法
- 九度OJ 1076 N的阶乘 (模拟)