更新xcode后出现许多错误



更新到Xcode 9.4后,我开始收到一些错误,现在甚至无法构建它。错误包括Apple Mach-o链接错误、dsymutil错误、同上错误。以下是使用不当的详细信息;

GenerateDSYMFile /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app.dSYM /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica
cd /Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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/dsymutil /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica -o /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app.dSYM 
error: cannot parse the debug map for "/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica": No such file or directory

Mach-o错误的详细信息:

Ld /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica normal armv7
cd /Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica
export IPHONEOS_DEPLOYMENT_TARGET=9.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -L/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Bolts -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/BoringSSL -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FBSDKCoreKit -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FBSDKLoginKit -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseAuth -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseCore -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseFirestore -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseMessaging -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseStorage -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseUI -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GTMOAuth2 -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GTMSessionFetcher -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GoogleToolboxForMac -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GoogleUtilities -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Protobuf -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/SDWebImage -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC-Core -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC-ProtoRPC -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC-RxLibrary -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/leveldb-library -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/nanopb -F/Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica/Pods/FirebaseAnalytics/Frameworks -F/Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica/Pods/FirebaseInstanceID/Frameworks -F/Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica/Pods/GoogleAppMeasurement/Frameworks -FPods/GoogleSignIn/Frameworks -filelist /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.1 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica_lto.o -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica.swiftmodule -ObjC -lc++ -lsqlite3 -lz -framework Bolts -framework CoreText -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseFirestore -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseStorage -framework FirebaseUI -framework Foundation -framework GRPCClient -framework GTMOAuth2 -framework GTMSessionFetcher -framework GoogleAppMeasurement -framework GoogleSignIn -framework GoogleToolboxForMac -framework GoogleUtilities -framework MeasurementNanoPB -framework MobileCoreServices -framework ProtoRPC -framework Protobuf -framework RxLibrary -framework SDWebImage -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework grpc -framework leveldb -framework nanopb -framework openssl -ObjC -framework Pods_Lingustica -framework MessageUI -framework QuartzCore -framework StoreKit -Xlinker -dependency_info -Xlinker /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica_dependency_info.dat -o /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica
ld: file not found: /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Sentence.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我试过以下几种,但没有结果:(

1( 清理并构建

2( 启用位代码:无

3( 有效架构:删除arm7和arm64,仅左armv7

4( 吊舱更新

有什么帮助吗?

请分享你的pod列表,其中一些文件有双info.plsit文件,导致xcode 9中出现此问题,此外,请尝试转到"build pashes"并从中删除你的info.plist,还有一个问题。你在用什么设备和ios?

您是否尝试清除DerivedData文件夹?它位于/Users/Your_User/Library/Developer/Xcode/DerivedData。之后,只需重新编译你的应用程序,看看它是否有效。

您还应该查找任何重复的文件、SDK、类、变量等。

如果这不起作用,并且您正在使用Cocoa pods,则可以运行pod cache clear,然后运行pod install来重新安装您的pods。

最后,如果这不起作用,并且您启用了源代码管理,您可以尝试删除本地副本,然后再次获取项目。

我创建了另一个项目,并将所有旧文件复制到新文件中。我安装了同样的吊舱。旧项目没有什么变化。现在它起作用了。

最新更新