我有关于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:/仓:/ 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 /管理员/库/开发商/ Xcode中/ DerivedData /管理-dbumnvnvxcjatwgwzoxobimmdmvo /编译/产品/调试-iphonesimulator / Management.app /管理
重复符号_OBJC_IVAR _ $ _ EditViewController._textfieldCategory in: /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 in: /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 in: /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 in: /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/Intermediates/Management.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 in: /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_METACLASS _ $ _ EditViewController in: /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查看调用)
我不明白为什么会这么理由。一切正常,直到我添加编辑视图控制器'到我的应用程序。我试图删除'编辑视图控制器'。但它不起作用。如果您知道这个问题的解决方案,请帮助我吗?谢谢
答案 0 :(得分:0)
你有一个名为AddTransactionViewController
的东西。其中,您要为EditViewController
添加存储空间。这可能是因为您包含.m文件而不是.h。或者,可能是因为EditViewController.h
中的某些内容不应该存在。
检查AddTransactionViewController.m
和.h
中的包含/导入行。