這是我獲取的錯誤代碼,當我嘗試構建測試時,如何找到此錯誤的原因。我已經在xcode中複製了2個文件,並對複製進行了細微更改以創建第二個屏幕。重複的符號_calculate_string錯誤消息iPhone
ld: duplicate symbol _calculate_string in /Users/Lucky3kj/Library/Developer/Xcode /DerivedData/MiniCalculator-ebxkovztnlrphaahncircdyuwjgc/Build/Intermediates/MiniCalculator.build/Debug-iphoneos/PipeFitter.build/Objects-normal/armv7/RollingOffsetLeftViewController.o and /Users/Lucky3kj/Library/Developer/Xcode/DerivedData/MiniCalculator-ebxkovztnlrphaahncircdyuwjgc/Build/Intermediates/MiniCalculator.build/Debug-iphoneos/PipeFitter.build/Objects-normal/armv7/RollingOffsetAnyAngleViewController.o for architecture armv7
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1
下次請在您的代碼格式上工作,謝謝。 – 2012-01-15 14:16:58
你是否記得在'.h'和'.m'中改變類的名字? – 2012-01-15 14:19:57
@ Paul.s _calculate_string在我看來似乎是一個函數名稱,而不是一個類名稱。這是我的答案來自哪裏。如果我錯了,請告訴我,這樣我可以糾正我的答案。 – 2012-01-15 14:25:09