1

我有一个关于 xcode 的问题。请帮我检查这个问题

这是我来自 xcode 的日志

ld /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/Debug-iphonesimulator/Management.app/Management normal i386 cd /Users/admin/Desktop/Project/Management setenv IPHONEOS_DEPLOYMENT_TARGET 6.0 setenv PATH " /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin :/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator6.0。sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/Debug-iphonesimulator -F/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/ Debug-iphonesimulator -filelist /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/Management.LinkFileList -Xlinker - objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6。0 -framework SystemConfiguration -framework Security -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/Debug-iphonesimulator/Management .app/管理

重复符号 _OBJC_IVAR_$_EditViewController._textfieldCategory 在:/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController。 o /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o 重复符号_OBJC_IVAR_$_EditViewController._labelType在:/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController。o /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o 重复符号_OBJC_IVAR_$_EditViewController._isType在:/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o /Users/admin/Library /Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o重复符号_OBJC_IVAR_$_EditViewController._viewDate在:/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o /Users/admin/Library/Developer /Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o 重复符号_OBJC_IVAR_$_EditViewController._viewPicker 在:/Users/admin/Library/ Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o /Users/admin/Library/Developer/Xcode/DerivedData/Management- dbumnvnvxcjatwgwzoxobimmdmvo/构建/中间体/管理。build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o 重复符号 _OBJC_IVAR_$_EditViewController._datePicker 在:/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management .build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management .build/Objects-normal/i386/EditViewController.o 重复符号 _OBJC_CLASS_$_EditViewController 在:/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management。构建/对象-正常/i386/AddTransactionViewController。o /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o 重复符号 _OBJC_METACLASS_$_EditViewController 在: /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o /Users/admin/Library/Developer /Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o ld:架构 i386 的 8 个重复符号 clang:错误:链接器命令失败退出代码 1(使用 -v 查看调用)链接器命令失败,退出代码为 1(使用 -v 查看调用)

我不明白为什么。在我将“编辑视图控制器”添加到我的应用程序之前,一切正常。我试图删除“编辑视图控制器”。但是它不起作用。如果你知道这个问题的解决方案,你能帮我吗?谢谢

4

1 回答 1

0

你有一个叫做 a 的东西AddTransactionViewController。在其中,您将包含EditViewController. 这可能是因为您包含 .m 文件而不是 .h。或者,可能是因为EditViewController.h不应该存在的东西。

检查您的包含/导入行AddTransactionViewController.m.h.

于 2014-04-12T12:57:30.440 回答