gpt4 book ai didi

ios - 由于信号 : Killed: 9,Xcode 8 (Swift 3) 命令失败

转载 作者:行者123 更新时间:2023-12-01 23:22:17 25 4
gpt4 key购买 nike

升级到 Xcode 8 并将我的所有代码转换为 Swift 3 后,我在编译 Swift 资源时遇到了麻烦。这需要很长时间,我的电脑变得 super 迟钝,大约 30 分钟后我得到了这个

CompileSwift 普通 arm64/Users/choojayson/Dropbox/BottomsUp/Thirst/UserDrank.swift
cd/Users/choojayson/Dropbox/BottomsUp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c/Users/choojayson/Dropbox/BottomsUp/Thirst/PendingVC.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/NotificationCell.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/ProfileCell.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/NotificationsVC.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/UserPendingAction.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/ChooseDrinkVC.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/AppDelegate.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/UserCell.swift/Users/choojayson/Dropbox/BottomsRebase/FireThirst .swift/Users/choojayson/Dropbox/BottomsUp/Thirst/ProfileStatsCell.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/UserDrankTime.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/MyProfileVC.swift/Users/Dchorojabox/BottomsUp/Thirst/ProfileStatsFooterCell.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/WeeklyDrank.swift/Us ers/choojayson/Dropbox/BottomsUp/Thirst/DrinkList.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/DrinkCell.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/User.swift/Users/choojayson/Dropbox/Bottoms Thirst/HeaderCell.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/EndorseVC.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/GlobalScore.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/Username.swift/Users/choojayson/Dropbox/BottomsUp/HomeVC.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/LoginVC.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/LeaderBoardVC.swift/Users/choojayson/Dropbox/BottomsCollectionHeader swift/Users/choojayson/Dropbox/BottomsUp/Thirst/Global.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/CircularTransition.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/Drink.swift/Users/choojayson/Dropbox BottomsUp/Thirst/WeeklyBestVC.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/DrinkStatus.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/Leade rBoardCell.swift/Users/choojayson/Dropbox/BottomsUp/Thirst/PendingCell.swift -primary-file/Users/choojayson/Dropbox/BottomsUp/Thirst/UserDrank.swift -target arm64-apple-ios8.0 -Xllvm -aarch64-use -tbi -enable-objc-interop -sdk/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -I/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Products/Debug-iphoneos -F/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Products/Debug-iphoneos -F/Usersons/Users/Library/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Products/Debug-iphoneos/SDWebImage -F/Users/choojayson/Dropbox/BottomsUp/Pods/FirebaseAnalytics/Frameworks/frameworks -F/Users/choojayson/Dropbox/Pods/BottomsFireUpFrames/frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/FirebaseDatabase/Frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/FirebaseIn stanceID/Frameworks/frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/FirebaseMessaging/Frameworks/frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/FirebaseStorage/Frameworks -F/Users/choojayson/Dropbox/BottomsUp Pods/GoogleIPhoneUtilities/Frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/GoogleInterchangeUtilities/Frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/GoogleNetworkingUtilities/Frameworks -F/Users/choojayson/Dropbox/PodtomsUp GoogleParsingUtilities/Frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/GoogleSymbolUtilities/Frameworks -F/Users/choojayson/Dropbox/BottomsUp/Pods/GoogleUtilities/Frameworks -F/Users/choojayson/Dropbox/BottomsUp -enable-testing g -module-cache-path/Users/choojayson/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build中间体/Thirst.build/Debug-iphoneos/Thirst.build/swift-overrides.hm ap -Xcc -iquote -Xcc/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Thirst-generated-files.hmap -Xcc -Xcc I/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Thirst-own-target-headers.hmap -Xcc -I/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Thirst-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc用户/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/all-product-headers.yaml -Xcc -iquote -Xcc/Users/choojayson/Library/Developer/Xcode/Derived Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Thirst-project-headers.hmap -Xcc -I/Users/choojayson/Library/Develop er/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Products/Debug-iphoneos/include -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Firebase/Analytics/Sources -Xcc -I/Users/chooboxjayson/Drop BottomsUp/Pods/Headers/Public -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/Firebase -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/FirebaseAnalytics -Xcc - I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/FirebaseAuth -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/FirebaseDatabase -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/FirebaseInstanceID -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/FirebaseMessaging -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/FirebaseStorage -Xcc - I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/GoogleIPhoneUtilities -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/GoogleInterchangeUtilities -Xcc -I/Users/choojayson/Dropbox/BottomsU p/Pods/Headers/Public/GoogleNetworkingUtilities -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/GoogleParsingUtilities -Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/GoogleSymbolities - Xcc -I/Users/choojayson/Dropbox/BottomsUp/Pods/Headers/Public/GoogleUtilities -Xcc -I/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Debug-Thirst. iphoneos/Thirst.build/DerivedSources/arm64 -Xcc -I/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Derived -Xerived DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/choojayson/Dropbox/BottomsUp -emit-module-doc-path/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllzfixfnpenbijin中间体/Thirst.build/Debug-iphoneos/Thirst.build/Objects-normal/arm64/UserDrank~partial.swiftdoc -Onone -module-name Thirst -emit-mod ule-path/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Objects-normal/arm64/UserDrank~partial.swiftmodule -serialize-诊断路径/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Objects-normal/arm64/UserDrank.dia -emit-dependencies-路径/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Objects-normal/arm64/UserDrank.d -emit-reference-dependencies-路径/Users/choojayson/Library/Developer/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Objects-normal/arm64/UserDrank.swiftdeps -o/Users/choojayson库/开发人员/Xcode/DerivedData/Thirst-fbgpdykwgpyxllfixfnpenbijinz/Build/Intermediates/Thirst.build/Debug-iphoneos/Thirst.build/Objects-normal/arm64/UserDrank.o -embed-bitcode-marker

最佳答案

信不信由你,这是给我造成问题的一段代码。有了它,编译大约需要 30 分钟。如果我简单地注释掉那段代码,它会在 30 秒内编译。

let params : [String: Any] = [
"person_id" : kPersonId,
"person_promo_id" : promo.personPromoId!,
"promo_page_id" : promo.promoPageId!,
"seq_no" : promo.seqNo!,
"promo_type" : promo.promoType!,
"page_name" : promo.pageName!,
"image_name" : promo.imageName!,
"start_date" : promo.startDate!,
"end_date" : promo.endDate!,
"website" : promo.website!,
"facility_name" : promo.facilityName!,
"address" : promo.street!,
"city" : promo.city!,
"prov_state_cd" : promo.provState!,
"country_cd" : promo.country!,
"contact_name" : promo.contactName!,
"contact_phone" : promo.contactPhone!,
"latitude" : promo.latitude!,
"longitude" : promo.longitude!,
"bgColorRed" : promo.bgColorRed!,
"bgColorGreen" : promo.bgColorGreen!,
"bgColorBlue" : promo.bgColorBlue!,
"promoCategories" : promoCat
]

基于这个和我读过的其他东西,我会寻找一个案例,你将值分配给一个带有 Any 的大字典或嵌套字典。或 AnyObject在定义中。我猜是 Any那是让编译器疯狂追逐。

如果您检查日志失败的地方,它应该在失败的对象上有错误。这应该为您提供有关要查看的文件的线索。

编辑:
@Jay Chow,这就是我用上面的代码解决编译器问题的方法:
var params : [String : Any] = [:]
params["person_id"] = kPersonId
params["person_promo_id"] = promo.personPromoId
params["promo_page_id"] = promo.promoPageId
params["seq_no"] = promo.seqNo
params["promo_type"] = promo.promoType
params["page_name"] = promo.pageName
params["image_name"] = promo.imageName
params["start_date"] = promo.startDate
params["end_date"] = promo.endDate
params["website"] = promo.website
params["facility_name"] = promo.facilityName
params["address"] = promo.street
params["city"] = promo.city
params["prov_state_cd"] = promo.provState
params["country_cd"] = promo.country
params["contact_name"] = promo.contactName
params["contact_phone"] = promo.contactPhone
params["latitude"] = promo.latitude
params["longitude"] = promo.longitude
params["bgColorRed"] = promo.bgColorRed
params["bgColorGreen"] = promo.bgColorGreen
params["bgColorBlue"] = promo.bgColorBlue
params["promoCategories"] = promoCat

关于ios - 由于信号 : Killed: 9,Xcode 8 (Swift 3) 命令失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39632975/

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