can't fix 'Linker command failed with exit code 1(use -v to see invocation)'

I got this error 'Linker command failed with exit code 1(use -v to see invocation)'. I tried to fix it by cleaning the project, create new .xctest file, set 'enable bitcode' in 'Build Setting' to no, check whether I imported .m file instead of .h file and delete the derived data. But I still can't fix it. Can anyone please help me? I am using Xcode 8 and Objective C.Thank you.

The error occured because of duplicate symbols of the int variable. So I deleted some duplicated int. But another occured :"Did not find view controller with identifier "Main" in Main.storyboard, referenced from xxx.storyboard". The error is under the type "Interface Builder Storyboard Linker Error". Please help me.

This is the error:

LinkStoryboards

cd "/Users/joshuahiizhenhua/Desktop/Monkey Master"

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"

export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..

/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module Monkey_Master --target-device iphone --target-device ipad --minimum-deployment-target 9.3 --output-format human-readable-text --link /Users/joshuahiizhenhua/Library/Developer/Xcode/DerivedData/Monkey_Master-eqfeapywmurxzrcawdpcmgncqxtd/Build/Products/Debug-iphonesimulator/Monkey\ Master.app /Users/joshuahiizhenhua/Library/Developer/Xcode/DerivedData/Monkey_Master-eqfeapywmurxzrcawdpcmgncqxtd/Build/Intermediates/Monkey\ Master.build/Debug-iphonesimulator/Monkey\ Master.build/Game.storyboardc /Users/joshuahiizhenhua/Library/Developer/Xcode/DerivedData/Monkey_Master-eqfeapywmurxzrcawdpcmgncqxtd/Build/Intermediates/Monkey\ Master.build/Debug-iphonesimulator/Monkey\ Master.build/Base.lproj/LaunchScreen.storyboardc /Users/joshuahiizhenhua/Library/Developer/Xcode/DerivedData/Monkey_Master-eqfeapywmurxzrcawdpcmgncqxtd/Build/Intermediates/Monkey\ Master.build/Debug-iphonesimulator/Monkey\ Master.build/Base.lproj/Option.storyboardc /Users/joshuahiizhenhua/Library/Developer/Xcode/DerivedData/Monkey_Master-eqfeapywmurxzrcawdpcmgncqxtd/Build/Intermediates/Monkey\ Master.build/Debug-iphonesimulator/Monkey\ Master.build/Base.lproj/How\ to\ Play.storyboardc /Users/joshuahiizhenhua/Library/Developer/Xcode/DerivedData/Monkey_Master-eqfeapywmurxzrcawdpcmgncqxtd/Build/Intermediates/Monkey\ Master.build/Debug-iphonesimulator/Monkey\ Master.build/Base.lproj/Main.storyboardc /Users/joshuahiizhenhua/Library/Developer/Xcode/DerivedData/Monkey_Master-eqfeapywmurxzrcawdpcmgncqxtd/Build/Intermediates/xxx.build/Debug-iphonesimulator/Monkey\ Master.build/Base.lproj/Store.storyboardc

/ com.apple.ibtool.errors */

: error: Did not find view controller with identifier "Main" in Main.storyboard, referenced from xxx.storyboard

did you clean or did you option-clean ?


option-clean is needed to clear this type of error.

I set the storyboard ID of Main.storyboard's storyboard reference to UI.... and it works for me. Thanks for help.

sorry where does it located option clean ?

can't fix 'Linker command failed with exit code 1(use -v to see invocation)'
 
 
Q