gpt4 book ai didi

ios - Xcode 经常链接失败

转载 作者:行者123 更新时间:2023-11-29 00:29:30 33 4
gpt4 key购买 nike

我遇到一个奇怪的问题,当我构建和运行时,我经常会收到此错误

clang: error: unable to execute command: Killed: 9
clang: error: linker command failed due to signal (use -v to see invocation)

其他时候我会收到一条对话框消息,显示无法附加到模拟器或类似的内容。

我不确定这是什么时候开始的,我尝试过清理和删除派生数据。

实际失败的命令:

Ld /Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Company-dev.app/Company-dev normal x86_64 cd /Users/user/projects/Company/iOS export IPHONEOS_DEPLOYMENT_TARGET=9.0 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/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0 -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Alamofire -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/AlamofireObjectMapper -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/BDKCollectionIndexView -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Bolts -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Charts -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/DKImagePickerController -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/FBSDKLoginKit -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/FacebookCore -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/FacebookLogin -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/IQKeyboardManagerSwift -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Kingfisher -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Mixpanel-swift -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/ObjectMapper -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Realm -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/RealmSwift -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Simplicity -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/SlideMenuControllerSwift -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/SwiftKeychainWrapper -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/SwiftSpinner -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/SwiftyJSON -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/SwiftyUserDefaults -F/Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Whisper -F/Users/user/projects/Company/iOS/Pods/Crashlytics/iOS -F/Users/user/projects/Company/iOS/Pods/Fabric/iOS -F/Users/user/projects/Company/iOS/Pods/FirebaseAnalytics/Frameworks/frameworks -F/Users/user/projects/Company/iOS/Pods/FirebaseCore/Frameworks -F/Users/user/projects/Company/iOS/Pods/FirebaseInstanceID/Frameworks/frameworks -F/Users/user/projects/Company/iOS/Pods/FirebaseMessaging/Frameworks/frameworks -F/Users/user/projects/Company/iOS/Pods/GoogleInterchangeUtilities/Frameworks/frameworks -F/Users/user/projects/Company/iOS/Pods/GoogleSymbolUtilities/Frameworks/frameworks -filelist /Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Intermediates/Company.build/Debug-iphonesimulator/Company-dev.build/Objects-normal/x86_64/Company-dev.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Intermediates/Company.build/Debug-iphonesimulator/Company-dev.build/Objects-normal/x86_64/Company-dev_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/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Intermediates/Company.build/Debug-iphonesimulator/Company-dev.build/Objects-normal/x86_64/Company_dev.swiftmodule -ObjC -lc++ -lsqlite3 -lz -framework ActionSheetPicker_3_0 -framework AddressBook -framework Alamofire -framework AlamofireObjectMapper -framework BDKCollectionIndexView -framework Bolts -framework Charts -framework Crashlytics -framework DKImagePickerController -framework FBSDKCoreKit -framework FBSDKLoginKit -framework Fabric -framework FacebookCore -framework FacebookLogin -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework FirebaseMessaging -framework GoogleInterchangeUtilities -framework GoogleSymbolUtilities -framework GoogleToolboxForMac -framework IQKeyboardManagerSwift -framework Kingfisher -framework Mixpanel -framework ObjectMapper -framework Realm -framework RealmSwift -framework Security -framework Simplicity -framework SlideMenuControllerSwift -framework StoreKit -framework SwiftKeychainWrapper -framework SwiftSpinner -framework SwiftyJSON -framework SwiftyUserDefaults -framework SystemConfiguration -framework UIKit -framework Whisper -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Intermediates/Company.build/Debug-iphonesimulator/Company-dev.build/Company-dev.app.xcent -framework Pods_Companyiabstract_Company_dev -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Intermediates/Company.build/Debug-iphonesimulator/Company-dev.build/Objects-normal/x86_64/Company-dev_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/Company-acovzggytrsxohabthueilablphe/Build/Products/Debug-iphonesimulator/Company-dev.app/Company-dev

最佳答案

我不确定我是如何让它工作的,但我发现哪个文件经常无法链接,罪魁祸首是 SomeClass.o。我尝试移动 swift 文件的内容,但这没有用,所以我最终重构了这个类的名称,并且成功了。

在我看来,在删除派生数据时,某处似乎有一个缓存未被删除,我希望这对其他人有所帮助,因为这个错误很糟糕

关于ios - Xcode 经常链接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42244267/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com