更新到Xcode 9.4之后,我开始收到一些错误,现在甚至无法构建它。这些错误是Apple Mach-o链接错误,dsymutil错误,同上错误。 dysmutil错误的详细信息如下;
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)吊舱更新
有帮助吗?
答案 0 :(得分:0)
您是否尝试清除DerivedData文件夹?它位于/Users/Your_User/Library/Developer/Xcode/DerivedData
中。之后,只需重新编译您的应用程序,然后查看它是否有效。
您还应该查找任何重复的文件,SDK,类,变量等。
如果这不起作用,并且您正在使用可可豆荚,则可以先运行pod cache clear
,然后再运行pod install
重新安装豆荚。
最后,如果这不起作用,并且您启用了源代码管理,则可以尝试删除本地副本,然后再次获取项目。
答案 1 :(得分:0)
请共享您的Pod列表,其中一些具有双重info.plsit文件,这会在xcode 9中导致此问题,此外,请尝试转到“构建目录”并从此处删除info.plist,还有另一个问题。您正在使用什么设备和ios?
答案 2 :(得分:0)
我创建了另一个项目,并将所有旧文件复制到新项目中。我已经安装了相同的广告连播。旧项目没有任何变化。现在可以了。