在这里,我需要修复一个 Mach-0 链接器错误。我发现另一个问题与我的非常相似,但解决方案不可行。我该如何解决这个问题?
更新 1:添加了重复的符号
ld /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Products/Debug-iphonesimulator/SliderGalore-game.app/SliderGalore-game normal i386 cd "/Volumes/GEOFF'S USB/SliderGalore-game " setenv IPHONEOS_DEPLOYMENT_TARGET 7.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/iPhoneSimulator7.0。sdk -L/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Products/Debug-iphonesimulator -F/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/ Build/Products/Debug-iphonesimulator -filelist /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-正常/i386/SliderGalore-game.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7。0 -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore -game.build/Objects-normal/i386/SliderGalore-game_dependency_info.dat -o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Products/Debug-iphonesimulator/SliderGalore-game.app /SliderGalore-游戏
重复符号 _OBJC_IVAR_$_SliderGaloreController.tileImageView 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects- normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/ i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_IVAR_$_SliderGaloreController.tiles 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game .build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/ Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号_NUM_HORIZONTAL_PIECES 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game .build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build /Objects-正常/i386/SliderGaloreFlipsideViewController。o 重复符号 _OBJC_IVAR_$_SliderGaloreController.tileWidth 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects -normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal /i386/SliderGaloreFlipsideViewController.o 重复符号_NUM_VERTICAL_PIECES 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/对象-正常/i386/SliderGaloreController。o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_IVAR_$_SliderGaloreController.tileHeight 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal /i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386 /SliderGaloreFlipsideViewController。o 重复符号 _OBJC_IVAR_$_SliderGaloreController.blankPosition 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects -normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal /i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_IVAR_$_SliderGaloreController.timer 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-游戏。build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/ Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号_countmove 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game .build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build /Objects-normal/i386/SliderGaloreFlipsideViewController.o 复制符号 _thetime 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users /GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o重复符号_OBJC_IVAR_$ _SliderGaloreController.image查看在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/ SliderGaloreController。o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号_OBJC_IVAR_$_SliderGaloreFlipsideViewController.Puzzle图片在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal /i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386 /SliderGaloreFlipsideViewController。o 重复符号 _OBJC_IVAR_$_SliderGaloreFlipsideViewController.CountMoves 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects -normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal /i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_IVAR_$_SliderGaloreFlipsideViewController.Timer 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build-Debug-iphoneGalore/Slider游戏。build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/ Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_IVAR_$_SliderGaloreFlipsideViewController.PuzzleLayoutX 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/-Debugsimulator /SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore -游戏。build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_IVAR_$_SliderGaloreFlipsideViewController.PuzzleLayoutY 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/ -iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator /SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号_OBJC_IVAR_$_SliderGaloreFlipsideViewController.Refresh in:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic-Build/Intermediates/SliderG游戏。build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/ Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号_OBJC_IVAR_$_SliderGaloreFlipsideViewController._delegate 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/BuildIntermediate /SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore -game.build/Debug-iphonesimulator/SliderGalore-game。build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_CLASS_$_SliderGaloreController 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator /SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore -game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_METACLASS_$_SliderGaloreController 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game。build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/ Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号_OBJC_CLASS_$_SliderGaloreFlipsideViewController 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/Sli -game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game .build/Debug-iphonesimulator/SliderGalore-game。build/Objects-normal/i386/SliderGaloreFlipsideViewController.o 重复符号 _OBJC_METACLASS_$_SliderGaloreFlipsideViewController 在:/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator /SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore -game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users /GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o/Users/GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreController.o /Users /GeoffSang/Library/Developer/Xcode/DerivedData/SliderGalore-game-gbmatdleglcvgscnctvgetfcneic/Build/Intermediates/SliderGalore-game.build/Debug-iphonesimulator/SliderGalore-game.build/Objects-normal/i386/SliderGaloreFlipsideViewController.o构建/对象-正常/i386/SliderGaloreFlipsideViewController.o构建/对象-正常/i386/SliderGaloreFlipsideViewController.o
ld:架构 i386 的 22 个重复符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)