Estava no exercício Aplicando OO da aula 6 quando me deparei com um erro de compilação, eu criei um novo projeto e fiz tudo novamente e deu certo, mais gostaria de saber o porque do erro, para saber a onde errei. Segue abaixo o erro:
Ld /Users/andresena/Library/Developer/Xcode/DerivedData/eggplant-brownie-eqzkqaavlrhoqqaqmzdhibqylppy/Build/Products/Debug-iphonesimulator/eggplant-brownie.app/eggplant-brownie normal x86_64
cd /Users/andresena/Desktop/Alura/eggplant-brownie
export IPHONEOS_DEPLOYMENT_TARGET=8.3
export 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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -L/Users/andresena/Library/Developer/Xcode/DerivedData/eggplant-brownie-eqzkqaavlrhoqqaqmzdhibqylppy/Build/Products/Debug-iphonesimulator -F/Users/andresena/Library/Developer/Xcode/DerivedData/eggplant-brownie-eqzkqaavlrhoqqaqmzdhibqylppy/Build/Products/Debug-iphonesimulator -filelist /Users/andresena/Library/Developer/Xcode/DerivedData/eggplant-brownie-eqzkqaavlrhoqqaqmzdhibqylppy/Build/Intermediates/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/eggplant-brownie.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/andresena/Library/Developer/Xcode/DerivedData/eggplant-brownie-eqzkqaavlrhoqqaqmzdhibqylppy/Build/Intermediates/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/eggplant_brownie.swiftmodule -mios-simulator-version-min=8.3 -Xlinker -dependency_info -Xlinker /Users/andresena/Library/Developer/Xcode/DerivedData/eggplant-brownie-eqzkqaavlrhoqqaqmzdhibqylppy/Build/Intermediates/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/eggplant-brownie_dependency_info.dat -o /Users/andresena/Library/Developer/Xcode/DerivedData/eggplant-brownie-eqzkqaavlrhoqqaqmzdhibqylppy/Build/Products/Debug-iphonesimulator/eggplant-brownie.app/eggplant-brownie
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)