ios - Duplicate Symbol - linker command failed with exit code 1 (use -v to see invocation)? -


building ios app off tutorial , message:

 ld /users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/products/debug-iphonesimulator/firstgame.app/firstgame normal i386     cd /users/evanbresnan/documents/xcode/firstgame     export iphoneos_deployment_target=9.2     export path="/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/usr/bin:/applications/xcode.app/contents/developer/usr/bin:/usr/local/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/iphonesimulator9.2.sdk -l/users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/products/debug-iphonesimulator -f/users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/products/debug-iphonesimulator -filelist /users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/intermediates/firstgame.build/debug-iphonesimulator/firstgame.build/objects-normal/i386/firstgame.linkfilelist -xlinker -rpath -xlinker @executable_path/frameworks -mios-simulator-version-min=9.2 -xlinker -objc_abi_version -xlinker 2 -fobjc-arc -fobjc-link-runtime -xlinker -dependency_info -xlinker /users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/intermediates/firstgame.build/debug-iphonesimulator/firstgame.build/objects-normal/i386/firstgame_dependency_info.dat -o /users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/products/debug-iphonesimulator/firstgame.app/firstgame  duplicate symbol _highscorenumber in:     /users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/intermediates/firstgame.build/debug-iphonesimulator/firstgame.build/objects-normal/i386/viewcontroller.o     /users/evanbresnan/library/developer/xcode/deriveddata/firstgame-ekyyaqwhjsjimddxggwkkkgblylu/build/intermediates/firstgame.build/debug-iphonesimulator/firstgame.build/objects-normal/i386/game.o ld: 1 duplicate symbol architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation) 

from error message

duplicate symbol _highscorenumber in:... 

i'd guess declared global variable _highscorenumber in 2 files (or may in header that's imported in 2 files). check , how _highscorenumber declared , move right place.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -