- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我刚刚将我的项目转换为 Swift 2,并将整个代码转换为新语法。但是,当我尝试构建应用程序时出现段错误。以下是构建输出。
CompileSwift normal x86_64 /Users/satre/Developer/Projects/STSI/MedConf/Event.swift
cd /Users/satre/Developer/Projects/STSI
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/satre/Developer/Projects/STSI/MedConf/SpeakerDetailsViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/AboutUsViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/AttendeeCell.swift /Users/satre/Developer/Projects/STSI/MedConf/ConfirmNewProfileImageViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SurveyViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/NotificationsTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SponsorWebsiteViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/FavoritesTableViewController.swift /Users/satre/Developer/Projects/STSI/AgendaViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/AppDelegate.swift /Users/satre/Developer/Projects/STSI/MedConf/Sponsor.swift /Users/satre/Developer/Projects/STSI/MedConf/CustomNavController.swift /Users/satre/Developer/Projects/STSI/MedConf/StickyNotification.swift /Users/satre/Developer/Projects/STSI/MedConf/MoreInfoViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/TravelVC.swift /Users/satre/Developer/Projects/STSI/MedConf/SponsorsTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SpeakerCell.swift /Users/satre/Developer/Projects/STSI/MedConf/BasicNavController.swift -primary-file /Users/satre/Developer/Projects/STSI/MedConf/Event.swift /Users/satre/Developer/Projects/STSI/MedConf/PublicConstants.swift /Users/satre/Developer/Projects/STSI/MedConf/Attendee.swift /Users/satre/Developer/Projects/STSI/MedConf/Conference.swift /Users/satre/Developer/Projects/STSI/MedConf/ConfInfoViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/DBQuestion.swift /Users/satre/Developer/Projects/STSI/MedConf/TravelBusiness.swift /Users/satre/Developer/Projects/STSI/MedConf/MyAcountPrefsTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/PeopleViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/EventDetailsViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SideMenuTableVC.swift /Users/satre/Developer/Projects/STSI/MedConf/Speaker.swift /Users/satre/Developer/Projects/STSI/MedConf/NotificationManager.swift /Users/satre/Developer/Projects/STSI/MedConf/QRViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/ConfListTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/DiscussionBoard.swift /Users/satre/Developer/Projects/STSI/MedConf/ENSideMenu.swift /Users/satre/Developer/Projects/STSI/MedConf/Session.swift /Users/satre/Developer/Projects/STSI/MedConf/QRWebViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/ManTabBarController.swift /Users/satre/Developer/Projects/STSI/MedConf/ObjectManager.swift /Users/satre/Developer/Projects/STSI/MedConf/ColoredSegmentButton.swift /Users/satre/Developer/Projects/STSI/MedConf/DBManager.swift /Users/satre/Developer/Projects/STSI/MedConf/ENSideMenuNavigationController.swift -target x86_64-apple-ios8.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -I /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Products/Debug-iphonesimulator -F /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Products/Debug-iphonesimulator -F /Users/satre/Developer/Projects/STSI -F /Users/satre/Developer/Projects/STSI/MedConf -F /Users/satre/Downloads/parse-library-1 -enable-testing -g -import-objc-header /Users/satre/Developer/Projects/STSI/MedConf-Bridging-Header.h -module-cache-path /Users/satre/Library/Developer/Xcode/DerivedData/ModuleCache -D COCOAPODS -serialize-debugging-options -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-generated-files.hmap -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-own-target-headers.hmap -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-project-headers.hmap -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/DerivedSources/x86_64 -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/satre/Developer/Projects/STSI -emit-module-doc-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event~partial.swiftdoc -Onone -module-name STSI -emit-module-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event~partial.swiftmodule -serialize-diagnostics-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.dia -emit-dependencies-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.d -emit-reference-dependencies-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.swiftdeps -o /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.o
0 swift 0x000000010cc2cedb llvm::sys::PrintStackTrace(__sFILE*) + 43
1 swift 0x000000010cc2d61b SignalHandler(int) + 379
2 libsystem_platform.dylib 0x00007fff91811f1a _sigtramp + 26
3 libsystem_platform.dylib 0x00007fff54ec0d50 _sigtramp + 3278564944
4 swift 0x000000010b4038d5 swift::Type::transform(std::__1::function<swift::Type (swift::Type)> const&) const + 53
5 swift 0x000000010b245086 swift::constraints::ConstraintSystem::simplifyType(swift::Type, llvm::SmallPtrSet<swift::TypeVariableType*, 16u>&) + 54
6 swift 0x000000010b266cba swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 2362
7 swift 0x000000010b2693cf swift::constraints::ConstraintSystem::salvage(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::Expr*) + 143
8 swift 0x000000010b2c3bfc swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 732
9 swift 0x000000010b2c87ba swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*) + 474
10 swift 0x000000010b26e366 (anonymous namespace)::FailureDiagnosis::typeCheckChildIndependently(swift::Expr*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<TCCFlags, unsigned int>) + 806
11 swift 0x000000010b26c2cf swift::ASTVisitor<(anonymous namespace)::FailureDiagnosis, bool, void, void, void, void, void>::visit(swift::Expr*) + 4863
12 swift 0x000000010b2665c0 swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 576
13 swift 0x000000010b2693cf swift::constraints::ConstraintSystem::salvage(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::Expr*) + 143
14 swift 0x000000010b2c3bfc swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 732
15 swift 0x000000010b2c87ba swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*) + 474
16 swift 0x000000010b26e366 (anonymous namespace)::FailureDiagnosis::typeCheckChildIndependently(swift::Expr*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<TCCFlags, unsigned int>) + 806
17 swift 0x000000010b26f305 std::__1::__function::__func<(anonymous namespace)::FailureDiagnosis::visitExpr(swift::Expr*)::$_9, std::__1::allocator<(anonymous namespace)::FailureDiagnosis::visitExpr(swift::Expr*)::$_9>, void (swift::Expr*)>::operator()(swift::Expr*&&) + 37
18 swift 0x000000010b3c8547 swift::Expr::forEachChildExpr(std::__1::function<void (swift::Expr*)> const&)::ChildWalker::walkToExprPre(swift::Expr*) + 39
19 swift 0x000000010b36dfa2 (anonymous namespace)::Traversal::visit(swift::Expr*) + 2610
20 swift 0x000000010b36cc85 swift::Expr::walk(swift::ASTWalker&) + 53
21 swift 0x000000010b3c61fc swift::Expr::forEachChildExpr(std::__1::function<void (swift::Expr*)> const&) + 44
22 swift 0x000000010b26c098 swift::ASTVisitor<(anonymous namespace)::FailureDiagnosis, bool, void, void, void, void, void>::visit(swift::Expr*) + 4296
23 swift 0x000000010b2665c0 swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 576
24 swift 0x000000010b2693cf swift::constraints::ConstraintSystem::salvage(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::Expr*) + 143
25 swift 0x000000010b2c3bfc swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 732
26 swift 0x000000010b2c87ba swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*) + 474
27 swift 0x000000010b26e366 (anonymous namespace)::FailureDiagnosis::typeCheckChildIndependently(swift::Expr*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<TCCFlags, unsigned int>) + 806
28 swift 0x000000010b266583 swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 515
29 swift 0x000000010b2693cf swift::constraints::ConstraintSystem::salvage(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::Expr*) + 143
30 swift 0x000000010b2c3bfc swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 732
31 swift 0x000000010b2c87ba swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*) + 474
32 swift 0x000000010b31ae5b swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 411
33 swift 0x000000010b3199b2 swift::TypeChecker::typeCheckFunctionBodyUntil(swift::FuncDecl*, swift::SourceLoc) + 370
34 swift 0x000000010b31a2d3 swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 179
35 swift 0x000000010b2b43b2 typeCheckFunctionsAndExternalDecls(swift::TypeChecker&) + 242
36 swift 0x000000010b2b50f7 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int) + 1831
37 swift 0x000000010b104224 swift::CompilerInstance::performSema() + 4340
38 swift 0x000000010ad3b605 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&) + 741
39 swift 0x000000010ad3b10a frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2682
40 swift 0x000000010ad37797 main + 2247
41 libdyld.dylib 0x00007fff99c895c9 start + 1
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/satre/Developer/Projects/STSI/MedConf/SpeakerDetailsViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/AboutUsViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/AttendeeCell.swift /Users/satre/Developer/Projects/STSI/MedConf/ConfirmNewProfileImageViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SurveyViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/NotificationsTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SponsorWebsiteViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/FavoritesTableViewController.swift /Users/satre/Developer/Projects/STSI/AgendaViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/AppDelegate.swift /Users/satre/Developer/Projects/STSI/MedConf/Sponsor.swift /Users/satre/Developer/Projects/STSI/MedConf/CustomNavController.swift /Users/satre/Developer/Projects/STSI/MedConf/StickyNotification.swift /Users/satre/Developer/Projects/STSI/MedConf/MoreInfoViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/TravelVC.swift /Users/satre/Developer/Projects/STSI/MedConf/SponsorsTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SpeakerCell.swift /Users/satre/Developer/Projects/STSI/MedConf/BasicNavController.swift -primary-file /Users/satre/Developer/Projects/STSI/MedConf/Event.swift /Users/satre/Developer/Projects/STSI/MedConf/PublicConstants.swift /Users/satre/Developer/Projects/STSI/MedConf/Attendee.swift /Users/satre/Developer/Projects/STSI/MedConf/Conference.swift /Users/satre/Developer/Projects/STSI/MedConf/ConfInfoViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/DBQuestion.swift /Users/satre/Developer/Projects/STSI/MedConf/TravelBusiness.swift /Users/satre/Developer/Projects/STSI/MedConf/MyAcountPrefsTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/PeopleViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/EventDetailsViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/SideMenuTableVC.swift /Users/satre/Developer/Projects/STSI/MedConf/Speaker.swift /Users/satre/Developer/Projects/STSI/MedConf/NotificationManager.swift /Users/satre/Developer/Projects/STSI/MedConf/QRViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/ConfListTableViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/DiscussionBoard.swift /Users/satre/Developer/Projects/STSI/MedConf/ENSideMenu.swift /Users/satre/Developer/Projects/STSI/MedConf/Session.swift /Users/satre/Developer/Projects/STSI/MedConf/QRWebViewController.swift /Users/satre/Developer/Projects/STSI/MedConf/ManTabBarController.swift /Users/satre/Developer/Projects/STSI/MedConf/ObjectManager.swift /Users/satre/Developer/Projects/STSI/MedConf/ColoredSegmentButton.swift /Users/satre/Developer/Projects/STSI/MedConf/DBManager.swift /Users/satre/Developer/Projects/STSI/MedConf/ENSideMenuNavigationController.swift -target x86_64-apple-ios8.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -I /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Products/Debug-iphonesimulator -F /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Products/Debug-iphonesimulator -F /Users/satre/Developer/Projects/STSI -F /Users/satre/Developer/Projects/STSI/MedConf -F /Users/satre/Downloads/parse-library-1 -enable-testing -g -import-objc-header /Users/satre/Developer/Projects/STSI/MedConf-Bridging-Header.h -module-cache-path /Users/satre/Library/Developer/Xcode/DerivedData/ModuleCache -D COCOAPODS -serialize-debugging-options -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-generated-files.hmap -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-own-target-headers.hmap -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/STSI-project-headers.hmap -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/DerivedSources/x86_64 -Xcc -I/Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/satre/Developer/Projects/STSI -emit-module-doc-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event~partial.swiftdoc -Onone -module-name STSI -emit-module-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event~partial.swiftmodule -serialize-diagnostics-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.dia -emit-dependencies-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.d -emit-reference-dependencies-path /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.swiftdeps -o /Users/satre/Library/Developer/Xcode/DerivedData/STSI-gpjzpccyzlbzmdciwcbqdfguddto/Build/Intermediates/STSI.build/Debug-iphonesimulator/STSI.build/Objects-normal/x86_64/Event.o
1. While type-checking 'fetchSpeakersForEvent' at /Users/satre/Developer/Projects/STSI/MedConf/Event.swift:220:5
2. While type-checking expression at [/Users/satre/Developer/Projects/STSI/MedConf/Event.swift:228:9 - line:256:10] RangeText="query?.findObjectsInBackgroundWithBlock({ (speakerObjects:[AnyObject]?, error:NSError?) -> Void in
if error != nil {
print( error )
return
}
let theSpeakers: [Speaker] = speakerObjects!.map({ (aSpeaker: AnyObject) -> Speaker in
let theSpeaker = aSpeaker as! Speaker
//Don't want to hog up the main thread, so dispatch to queue
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), { () -> Void in
for someSpeaker in ObjectManager.speakers {
if someSpeaker.objectId == theSpeaker.objectId {
if !someSpeaker.eventsForSpeaker.contains(self) {
someSpeaker.eventsForSpeaker.append(self)
}
}
}
NSNotificationCenter.defaultCenter().postNotificationName(DataConstants.newSpeakerEventRelationships, object: nil)
})
return theSpeaker
})
self.speakersForEvent = theSpeakers
})"
3. While type-checking expression at [/Users/satre/Developer/Projects/STSI/MedConf/Event.swift:228:9 - line:256:10] RangeText="query?.findObjectsInBackgroundWithBlock({ (speakerObjects:[AnyObject]?, error:NSError?) -> Void in
if error != nil {
print( error )
return
}
let theSpeakers: [Speaker] = speakerObjects!.map({ (aSpeaker: AnyObject) -> Speaker in
let theSpeaker = aSpeaker as! Speaker
//Don't want to hog up the main thread, so dispatch to queue
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), { () -> Void in
for someSpeaker in ObjectManager.speakers {
if someSpeaker.objectId == theSpeaker.objectId {
if !someSpeaker.eventsForSpeaker.contains(self) {
someSpeaker.eventsForSpeaker.append(self)
}
}
}
NSNotificationCenter.defaultCenter().postNotificationName(DataConstants.newSpeakerEventRelationships, object: nil)
})
return theSpeaker
})
self.speakersForEvent = theSpeakers
})"
4. While type-checking expression at [/Users/satre/Developer/Projects/STSI/MedConf/Event.swift:228:9 - line:256:10] RangeText="query?.findObjectsInBackgroundWithBlock({ (speakerObjects:[AnyObject]?, error:NSError?) -> Void in
if error != nil {
print( error )
return
}
let theSpeakers: [Speaker] = speakerObjects!.map({ (aSpeaker: AnyObject) -> Speaker in
let theSpeaker = aSpeaker as! Speaker
//Don't want to hog up the main thread, so dispatch to queue
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), { () -> Void in
for someSpeaker in ObjectManager.speakers {
if someSpeaker.objectId == theSpeaker.objectId {
if !someSpeaker.eventsForSpeaker.contains(self) {
someSpeaker.eventsForSpeaker.append(self)
}
}
}
NSNotificationCenter.defaultCenter().postNotificationName(DataConstants.newSpeakerEventRelationships, object: nil)
})
return theSpeaker
})
self.speakersForEvent = theSpeakers
})"
5. While type-checking expression at [/Users/satre/Developer/Projects/STSI/MedConf/Event.swift:228:49 - line:256:9] RangeText="{ (speakerObjects:[AnyObject]?, error:NSError?) -> Void in
if error != nil {
print( error )
return
}
let theSpeakers: [Speaker] = speakerObjects!.map({ (aSpeaker: AnyObject) -> Speaker in
let theSpeaker = aSpeaker as! Speaker
//Don't want to hog up the main thread, so dispatch to queue
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), { () -> Void in
for someSpeaker in ObjectManager.speakers {
if someSpeaker.objectId == theSpeaker.objectId {
if !someSpeaker.eventsForSpeaker.contains(self) {
someSpeaker.eventsForSpeaker.append(self)
}
}
}
NSNotificationCenter.defaultCenter().postNotificationName(DataConstants.newSpeakerEventRelationships, object: nil)
})
return theSpeaker
})
self.speakersForEvent = theSpeakers
}"
这个故障的原因是什么?我看到它与类型检查有关,但我无法找出原因。我也在使用最新版本的 Parse SDK。
最佳答案
PFQuery.findObjectsInBackgroundWithBlock 的方法签名已更改。引用:https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/280
将 (speakerObjects:[AnyObject]?, error:NSError?) -> Void in
替换为 (speakerObjects:[PFObject]?, error:NSError?) -> Void in
关于ios - 分段故障 Swift 2 App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32725811/
最近,我读了一本名为Understanding the linux kernel 的书。有一句话让我很困惑。谁能给我解释一下? As stated earlier, the Current Privi
Julia中是否有任何类型的分段/非连续范围的对象类?例如,我可以创建一个常规范围: a = UnitRange(1:5) 但是,如果我想将此与其他范围相结合: b = UnitRange([1:5,
我一直在研究标准输入的修复后计算器,在研究它之后,我最终得到了一个说法“段错误(核心转储)”,它没有说明它发生的位置或导致它的原因,并在寻找解释后我真的找不到任何可以帮助我解决这个问题的东西。所以我决
我对创建应用程序还很陌生,我刚开始使用 Swift 进行 iOS 开发。我真的希望有人能花点时间帮助我,因为我现在很困。所以我正在创建一个带有主从 TableView 的应用程序。我将使用 Alamo
ScrollView 或类似的东西中的 UIView、SegmentedController 和 UIContainerView? 在我的 Storyboard中,我有一个 VC,它在顶部包含一个 U
我需要构建一个具有任意数量的间隔和函数的分段函数,能够对输入的 numpy 数组进行操作。 我可以使用 for 循环和指示符数组来做到这一点,如下面的代码片段所示,但是有没有一种更 Pythonic
我正在尝试按照提交的方式输出我的输出,但它不起作用。比如说,如果我提交一个分为两段的帖子(通过按回车键将它们分开)它不会那样输出。它删除该段落并将帖子显示为一个段落。 显示结果: 我正在尝试按照提交的
我有一个 TableView Controller ,其中按字母顺序列出了美国所有州。单击某个状态会通过 Web 服务调用返回有关该状态的详细信息。这是我第一次尝试分段或分组 TableView ,我
我想创建一个链接节点列表。这个想法是用字母分隔一个单词,并通过每个不同的字母创建一个链接节点列表。我也尝试在最后一个位置添加最后一个节点。 我已经尝试了很多东西,理论上是可行的,但我找不到段错误的根源
这是我正在尝试创建的附加组件: import bpy import os import sys import subprocess import time from threading import
我觉得这应该是一个简单的属性,但我一直在搜索,但找不到答案。 我的表右侧有一个 TableView 索引。选择后,它会使所有内容变灰。我想模仿 iPod 应用程序,当索引本身被选中时,它是半透明的(可
我试图在 OpenCV 中使用 SLIC 分割图像。我正在尝试使用以下功能: void vl_slic_segment ( vl_uint32 * segmentation, flo
我知道在网络中,数据流在第4层被分成不同的段。每个段然后用端口号和IP地址封装。我发现了一些我想问的令人困惑的问题: 谁负责将数据流分成不同的段。是应用程序还是第 4 层? 我知道 UDP 不支持分段
我有一个使用界面生成器制作的分段 Controller ,它看起来像这样 有时我使用它将它设置为四个 [segmentedControl insertSegmentWithTitle:@"Dinner
所以我使用免费托管,我的服务器上几乎没有视频,一切正常,除了视频需要大约 10-20 秒来加载然后开始播放,所以我想使用流媒体。问题是我不知道该字段和托管不支持 node.js,但我认为是 php 7
ViewController 有三个按钮:“ friend ”“日历”“信息”。每个按钮将代表此 viewController 下半部分的不同信息。 我的问题是选择什么来表示这些信息 - 分段 Con
在我的应用程序中,弹出窗口中的 UITableView 会在新数据时重新加载。如果表格未分区,则使用此代码一切都可以完美运行: 通知,启动重新加载: - (void)recieveNotificati
在阅读muduo(C++网络库)的源码时提出了这个问题。 如果客户端发送一个大消息,它将被 TCP 分段,服务器端会发生什么? (服务器是否知道这条消息已经被分段了?) 网络库是否需要等待整个消息并且
我正在重构一个包含大量长头文件的代码库(为了便于使用和简化编译,头文件同时包含接口(interface)和实现)。 代码库避免了像野火一样的多态性,因此它使用宏解析内部存储类型,如下所示: #if d
我正在阅读有关 x86 保护模式工作的信息,因为我已经看到了平面内存模型和分段内存模型。 如果 linux 内核使用平面内存模型,那么它如何保护非特权应用程序对关键数据的访问? 最佳答案 Linux
我是一名优秀的程序员,十分优秀!