【发布时间】:2017-05-22 03:15:26
【问题描述】:
我将我的 xcode 更新到版本 8.2.1 当我在 xcode 上构建产品时发生以下错误:
我的主要故事板是这样的:
[![故事板][2]][2]
我搜索了很多次,但没有找到任何正确的解决方案
谁能帮帮我?
编辑1: 当我在 xcode 上创建新项目时发生此错误:
Ld /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator/test3.app/test3 normal x86_64 cd /用户/****/桌面/test3 导出 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 -Xlinke r -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: 未找到框架 Foundation clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
【问题讨论】:
-
Command + Shift + K 或 Command + k 清理。
-
command + shift + K clean 项目并清理成功,但之后我按 command + b 再次发生错误
-
请将错误直接作为文本和(如有必要)图像插入,而不是作为链接。
-
尝试删除 xCode 库文件夹中的派生数据,然后清理并再次尝试构建。
-
所以你的 XCode 版本无法编译一个新的空项目?听起来 XCode 已损坏 - 请尝试重新下载并安装。
标签: ios xcode uistoryboard