2012-08-24 53 views
0

我在通用应用程序的工作,但它增加了一类新[CallScreenViewController]之后给出了链接错误:链接器命令失败:重复的符号_applicationFrame

duplicate symbol _applicationFrame in /Users/msdk/Library/Developer/Xcode/DerivedData/UniversalTest-cxggvelerfpnpgfzfehcwddjtfkd/Build/Intermediates/UniversalTest.build/Debug-iphoneos/UniversalTest.build/Objects-normal/armv7/ChatScreenViewController.o and /Users/msdk/Library/Developer/Xcode/DerivedData/UniversalTest-cxggvelerfpnpgfzfehcwddjtfkd/Build/Intermediates/UniversalTest.build/Debug-iphoneos/UniversalTest.build/Objects-normal/armv7/CallScreenViewController.o for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

+0

'applicationFrame'的定义是什么?它是否在由“ChatScreenViewController”和“CallScreenViewController”导入的标题中? –

+0

CGRect applicationFrame; 不是由ChatScreenViewController和CallScreenViewController导入,而是在.m文件中声明 – Saif

+1

如果它被定义为实例变量,那应该是OK。如果你已经用全球范围来定义它,那就是一个问题。 –

回答

0

我必须解决这个问题。 CGRect applicationFrame是链接器错误的原因。因为它在ChatScreenViewController & CallScreenViewController中全局声明。 谢谢菲利普:)

相关问题