gpt4 book ai didi

ios - Objective-C构建中的重复符号错误?

转载 作者:IT老高 更新时间:2023-10-28 11:30:15 25 4
gpt4 key购买 nike

当我按下 build+debug 时出现此错误:

ld: duplicate symbol .objc_class_name_BlogTableItemCell in /Users/fabian/Development/Workspaces/iphone_experiments/xcode_build_output/MausLog.build/Debug-iphonesimulator/MausLog.build/Objects-normal/i386/BlogTableItemCell-3733583914888A7B.o and /Users/fabian/Development/Workspaces/iphone_experiments/xcode_build_output/MausLog.build/Debug-iphonesimulator/MausLog.build/Objects-normal/i386/BlogTableItemCell-3733583914888A7B.o
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

最佳答案

如果您错误地让 Xcode 的 #import 语句自动完成功能为“duplicate”类指定了“.m”文件而不是“.h”,也可能会出现此错误。

关于ios - Objective-C构建中的重复符号错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2264455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com