【发布时间】:2017-05-30 03:59:51
【问题描述】:
我正在尝试在 Xcode 8.2.1 中运行和测试我的应用程序,但出现此错误。我一直在四处寻找,但找不到适合我的问题的答案。这里的罪魁祸首可能是什么?
重复符号 _randomPositionY 在: /Users/tetadickens/Library/Developer/Xcode/DerivedData/Stealth_Crash-gbxbrdfgfsyxnkafhbmltuvxvsvz/Build/Intermediates/Stealth Crash.build/Debug-iphonesimulator/Stealth Crash.build/Objects-normal/x86_64/ViewController.o /Users/tetadickens/Library/Developer/Xcode/DerivedData/Stealth_Crash-gbxbrdfgfsyxnkafhbmltuvxvsvz/Build/Intermediates/Stealth Crash.build/Debug-iphonesimulator/Stealth Crash.build/Objects-normal/x86_64/AppDelegate.o 重复符号 _Y 在: /Users/tetadickens/Library/Developer/Xcode/DerivedData/Stealth_Crash-gbxbrdfgfsyxnkafhbmltuvxvsvz/Build/Intermediates/Stealth Crash.build/Debug-iphonesimulator/Stealth Crash.build/Objects-normal/x86_64/ViewController.o /Users/tetadickens/Library/Developer/Xcode/DerivedData/Stealth_Crash-gbxbrdfgfsyxnkafhbmltuvxvsvz/Build/Intermediates/Stealth Crash.build/Debug-iphonesimulator/Stealth Crash.build/Objects-normal/x86_64/AppDelegate.o 重复符号 _randomPositionX 在: /Users/tetadickens/Library/Developer/Xcode/DerivedData/Stealth_Crash-gbxbrdfgfsyxnkafhbmltuvxvsvz/Build/Intermediates/Stealth Crash.build/Debug-iphonesimulator/Stealth Crash.build/Objects-normal/x86_64/ViewController.o /Users/tetadickens/Library/Developer/Xcode/DerivedData/Stealth_Crash-gbxbrdfgfsyxnkafhbmltuvxvsvz/Build/Intermediates/Stealth Crash.build/Debug-iphonesimulator/Stealth Crash.build/Objects-normal/x86_64/AppDelegate.o ld:架构 x86_64 的 27 个重复符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
编辑
这个问题是在我进入编辑器 > 验证设置后开始的。
【问题讨论】:
标签: objective-c xcode linker