[经验]Class MediaTransCoder is implemented in both One of the two will be used. Which one is undefined
来源:互联网 发布:数据库关键字查询 编辑:程序博客网 时间:2024/05/17 06:11
App中既有一个库叫:libMediaPlayer.a(播放器库)。本次需求需要加另外一个MediaTransCoder.framework(视频转码库)。在控制台遇到这个提示:
运行framework中的方法crash。奇怪的是有些方法crash了。有些方法调用却正常。
排查可能的问题:
1. 库不对(framework的demo可以运行,framework直接拷贝的)
2. 对象释放了,但又是单例(不存在释放)
3. 没在other link flag中添加Objc,(已确认添加)
4. 新建一个空工程集成MediaTransCoder.framework。是可以运行framework中的方法。
5. 听说从xcode4.2 开始已经不用在-fore_load 和-load_all了
可以断定是客户端的问题,不是framework的问题。查了很久,最后还是根据控制台输出,找到了问题所在:
Class MediaTransCoder is implemented in both
/private/var/containers/Bundle/Application/7D09FAA4-C843-44D9-89ED-132F614B5F5D/FSVideo.app/Frameworks/MediaTransCoder.framework/MediaTransCoder (0x10675c6d0) and
/var/containers/Bundle/Application/7D09FAA4-C843-44D9-89ED-132F614B5F5D/FSVideo.app/FSVideo (0x10301d7e0).
One of the two will be used. Which one is undefined.(两者中的一个将被使用。哪一个是未定义的。这下我知道问题在哪儿)
Class MediaTransCoder is implemented in both /private/var/containers/Bundle/Application/7D09FAA4-C843-44D9-89ED-132F614B5F5D/FSVideo.app/Frameworks/MediaTransCoder.framework/MediaTransCoder (0x10675c6d0) and /var/containers/Bundle/Application/7D09FAA4-C843-44D9-89ED-132F614B5F5D/FSVideo.app/FSVideo (0x10301d7e0). One of the two will be used. Which one is undefined.
运行framework中的方法crash。奇怪的是有些方法crash了。有些方法调用却正常。
排查可能的问题:
1. 库不对(framework的demo可以运行,framework直接拷贝的)
2. 对象释放了,但又是单例(不存在释放)
3. 没在other link flag中添加Objc,(已确认添加)
4. 新建一个空工程集成MediaTransCoder.framework。是可以运行framework中的方法。
5. 听说从xcode4.2 开始已经不用在-fore_load 和-load_all了
可以断定是客户端的问题,不是framework的问题。查了很久,最后还是根据控制台输出,找到了问题所在:
Class MediaTransCoder is implemented in both
/private/var/containers/Bundle/Application/7D09FAA4-C843-44D9-89ED-132F614B5F5D/FSVideo.app/Frameworks/MediaTransCoder.framework/MediaTransCoder (0x10675c6d0) and
/var/containers/Bundle/Application/7D09FAA4-C843-44D9-89ED-132F614B5F5D/FSVideo.app/FSVideo (0x10301d7e0).
One of the two will be used. Which one is undefined.(两者中的一个将被使用。哪一个是未定义的。这下我知道问题在哪儿)
[原因]:
MediaTransCoder.framework中含有MediaTransCoder,另外一个库libMediaPlayer.a也含有MediaTransCoderMediaTransCoder.framework和libMediaPlayer.a都是一个团队提供的,让他们解决了,去除重复的MediaTransCoder。
完事儿
阅读全文
1 0
- [经验]Class MediaTransCoder is implemented in both One of the two will be used. Which one is undefined
- Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined
- Class PLBuildVersion is implemented in both. One of the two will be used. Which one is undefined.
- mac idea 执行报错Class JavaLaunchHelper is implemented in both *. One of the two will be used. Which one
- iOS:Class Foo is implemented in both MyApp and OtherApp. One of the two will be used. Which one is u
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Wh
- objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be us
- objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be us
- iOS 报错:objc[1334]: Class X ... One of the two will be used. Which one is undefined
- (Pod造成的)One of the two will be used. Which one is undefined.
- One of the two will be used. Which one is undefined.
- Class _NSZombie_xxxxxxx is implemented in both ?? and?
- Class PLBuildVersion is implemented in both frameworks
- 警告: Category is implementing a method which will also be implemented by its primary class
- category is implementing a method which will also be implemented bt its primary class
- iOS警告:Category is implementing a method which will also be implemented by its primary class
- objc[2163]: Class JavaLaunchHelper is implemented in both XXX
- Mac 上 Class JavaLaunchHelper is implemented in both 报错
- C++ double类型的数转换成具体的日期和时间
- 20个css使用的高级技巧
- matlab-isnan function
- 决斗场
- 安卓沉浸式
- [经验]Class MediaTransCoder is implemented in both One of the two will be used. Which one is undefined
- 字符串匹配的Boyer Moore算法_阮一峰
- 如何使用客户端对ZooKeeper进行操作。
- 《转行机器学习》一、我想转行
- 笔记-SVM
- 函数的重载
- python学习浅谈(python2.x以及python3.x的区别、IDE)
- 抽象类与接口区别
- Venom漏洞的危害性相对于Heartbleed漏洞而言较小