设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 3940|回复: 2
打印 上一主题 下一主题

AnyChat 在xcode 5.1.1下编译错误:duplicate symbol _kUseP2P

[复制链接]

8

主题

41

帖子

144

积分

注册会员

Rank: 2

积分
144
跳转到指定楼层
楼主
发表于 2014-7-10 16:57:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
duplicate symbol _kVideoQuality in:
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PACallingViewController.o
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PAAnyChatViewController.o
duplicate symbol _kVideoPreset in:
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PACallingViewController.o
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PAAnyChatViewController.o
duplicate symbol _kVideoFrameRate in:
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PACallingViewController.o
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PAAnyChatViewController.o
duplicate symbol _kVideoBitrate in:
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PACallingViewController.o
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PAAnyChatViewController.o
duplicate symbol _kVideoSolution in:
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PACallingViewController.o
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PAAnyChatViewController.o
duplicate symbol _kUseServerParam in:
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PACallingViewController.o
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PAAnyChatViewController.o
duplicate symbol _kUseP2P in:
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PACallingViewController.o
    /Users/developuser/Library/Developer/Xcode/DerivedData/PadBot-grrtddanfsrjyzbbmnnmdyeuaokp/Build/Intermediates/PadBotIPad.build/Debug-iphoneos/PadBotIPad.build/Objects-normal/armv7/PAAnyChatViewController.o
ld: 7 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在新建项目中编译不错误,添加到自己项目时,编译错误


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
沙发
发表于 2014-7-10 17:07:14 | 只看该作者
您好,请查找一下全局变量“kVideoFrameRate”的定义位置,可能是重复定义了,或是被“PACallingViewController.m”和“PAAnyChatViewController.m”所包含,建议改为局部变量即可。
回复 支持 反对

使用道具 举报

8

主题

41

帖子

144

积分

注册会员

Rank: 2

积分
144
板凳
 楼主| 发表于 2014-7-10 17:21:35 | 只看该作者
问题解决了,因为在自己项目里是先引入anychat,然后才定义常量的,并且引入的时候是直接import anychat 的.h,而新建项目及样例里面是先定义常量,然后用@class。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-11-25 22:24 , Processed in 0.138981 second(s), 21 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表