编译应用程序

时间:2015-09-23 20:24:40

标签: ios iphone

我是iOS新手,我正在研究这个tutorial(向下滚动到Prototype单元格),当我尝试编译我的应用程序时,我在下面遇到以下错误。问题的第一部分是,我怎样才能理解那里的任何东西?我不知道如何解释它。你能指导一下可能出现的问题吗?

Ld /Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Products/Debug-iphonesimulator/prototypeCustomCellExample.app/prototypeCustomCellExample normal x86_64
    cd /Users/nadirahmed/Documents/iOS/prototypeCustomCellExample
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Products/Debug-iphonesimulator -F/Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Products/Debug-iphonesimulator -filelist /Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Intermediates/prototypeCustomCellExample.build/Debug-iphonesimulator/prototypeCustomCellExample.build/Objects-normal/x86_64/prototypeCustomCellExample.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Intermediates/prototypeCustomCellExample.build/Debug-iphonesimulator/prototypeCustomCellExample.build/Objects-normal/x86_64/prototypeCustomCellExample_dependency_info.dat -o /Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Products/Debug-iphonesimulator/prototypeCustomCellExample.app/prototypeCustomCellExample


duplicate symbol __players in:
    /Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Intermediates/prototypeCustomCellExample.build/Debug-iphonesimulator/prototypeCustomCellExample.build/Objects-normal/x86_64/AppDelegate.o
    /Users/nadirahmed/Library/Developer/Xcode/DerivedData/prototypeCustomCellExample-dgygyvcibtndywgeapixzpvxohkj/Build/Intermediates/prototypeCustomCellExample.build/Debug-iphonesimulator/prototypeCustomCellExample.build/Objects-normal/x86_64/Player.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:0)

请检查:

1.尝试在整个项目中找到您的班级玩家,并确保您的项目中只有一个副本可用。

2.You could also get this error if you mistakenly let XCode's auto-complete for #import statements specify the '.m" file for the
'duplicate' class instead of the '.h'.

感谢