[经验]Class MediaTransCoder is implemented in both One of the two will be used. Which one is undefined
2017-11-30 14:18
656 查看
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.(两者中的一个将被使用。哪一个是未定义的。这下我知道问题在哪儿)
[原因]:
MediaTransCoder.framework中含有MediaTransCoder,另外一个库libMediaPlayer.a也含有MediaTransCoder
MediaTransCoder.framework和libMediaPlayer.a都是一个团队提供的,让他们解决了,去除重复的MediaTransCoder。
完事儿
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也含有MediaTransCoder
MediaTransCoder.framework和libMediaPlayer.a都是一个团队提供的,让他们解决了,去除重复的MediaTransCoder。
完事儿
相关文章推荐
- Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined
- 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
- 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
- One of the two will be used. Which one is undefined.
- One of the two will be used. Which one is undefined
- (Pod造成的)One of the two will be used. Which one is undefined.
- IDEA中遇到One of the two will be used. Which one is undefined.
- UserWarning: The installed version of numexpr 2.4 is not supported in pandas and will be not be used
- SVN E200009 which is not part of the commit; both sides of the move must be committed together
- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- This is probably a good time to review the order in which SELECT statement clauses are to be specified. Table 10.2 lists all the clauses we have learned thus far, in the order they must be used.
- 警告: Category is implementing a method which will also be implemented by its primary class
- ios警告: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
- ReactJs 报错 Element type is invalid: expected a string (from built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Me`.
- Xcode警告Category is implementing a method which will also be implemented by its primary class 处理