3
votes

I update my xcode to version 8.2.1 and when i build product on xcode the below error occurred:

error

and my main storyboard like this:

[![storyboard][2]][2]

i search many time but not found any correct solution for this error

anyone can help me?

Edit1: when i create new project on xcode this error occurred :

Ld /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator/test3.app/test3 normal x86_64 cd /Users/****/Desktop/test3 export IPHONEOS_DEPLOYMENT_TARGET=10.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator -F/Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator -filelist /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3.swiftmodule -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/test3.app.xcent -Xlinker -dependency_info -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3_dependency_info.dat -o /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator/test3.app/test3

ld: framework not found Foundation clang: error: linker command failed with exit code 1 (use -v to see invocation)

new project error

2
Command + Shift + K or Command + k to clean.Bista
command + shift + K clean project and clean succeeded but after that i press command + b that error occure againMajid Lotfinia
Please insert errors as text and (if necessary) images directly and not as links.Ali Beadle
try to delete derived data in xCode library folder, clean after this and try build again.Axel
So your version of XCode is failing to compile a new empty project? Sounds like XCode is corrupted - try downloading and installing again.Ali Beadle

2 Answers

2
votes

I remove xcode Install again from app store and every things be allright

1
votes

I solved this error by following the below steps in Xcode 8.3.3,

  1. Quit Xcode
  2. Clear derived data folder of Xcode
  3. Relaunch Xcode
  4. Clean and run the project again