Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

54 issues on compile? #327

Open
SenorWesley opened this issue Feb 28, 2018 · 4 comments
Open

54 issues on compile? #327

SenorWesley opened this issue Feb 28, 2018 · 4 comments

Comments

@SenorWesley
Copy link

Hi,

I ran into a small problem while setting up a new project, I've used BonMot before, with success. However, now I installed it through CocoaPods, and my codebase won't compile anymore:

screen shot 2018-02-28 at 09 29 25

--

Running Xcode 9, project is Swift 3.2.

From my podfile:
pod 'BonMot'

Is there perhaps a mistake I made in using Swift 3.2? Perhaps I'm supposed to use a legacy version?

Thanks! :-)

@SenorWesley
Copy link
Author

SenorWesley commented Feb 28, 2018

Referenced the answer from this issue: #317 (comment) that I submitted a month ago. This resulted in the following:

schermafbeelding 2018-02-28 om 10 24 22

Error log:

<unknown>:0: error: fatal error encountered while reading from module 'BonMot'; please file a bug report with your project and the crash log
<unknown>:0: note: compiling as Swift 3.2.3, with 'BonMot' built as Swift 4.0.3 (this is supported but may expose additional compiler issues)

*** DESERIALIZATION FAILURE (please include this section in any bug report) ***
declaration is not a nominal type
Cross-reference to module 'Foundation'
... NSAttributedStringKey

0  swift                    0x0000000103c9436a PrintStackTraceSignalHandler(void*) + 42
1  swift                    0x0000000103c937a6 SignalHandler(int) + 662
2  libsystem_platform.dylib 0x00007fff72a72f5a _sigtramp + 26
3  libsystem_platform.dylib 0x0000000114424558 _sigtramp + 2711295512
4  libsystem_c.dylib        0x00007fff7289d312 abort + 127
5  swift                    0x000000010138b231 swift::ModuleFile::fatal(llvm::Error) + 1569
6  swift                    0x0000000101395ab8 swift::ModuleFile::getDeclChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 41928
7  swift                    0x0000000101398157 swift::ModuleFile::getTypeChecked(llvm::PointerEmbeddedInt<unsigned int, 31>) + 551
8  swift                    0x0000000101398695 swift::ModuleFile::getTypeChecked(llvm::PointerEmbeddedInt<unsigned int, 31>) + 1893
9  swift                    0x0000000101399063 swift::ModuleFile::getTypeChecked(llvm::PointerEmbeddedInt<unsigned int, 31>) + 4403
10 swift                    0x000000010139908b swift::ModuleFile::getTypeChecked(llvm::PointerEmbeddedInt<unsigned int, 31>) + 4443
11 swift                    0x0000000101391e61 swift::ModuleFile::getDeclChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 26481
12 swift                    0x00000001013a35c1 swift::ModuleFile::loadAllMembers(swift::Decl*, unsigned long long) + 657
13 swift                    0x0000000101801f06 swift::IterableDeclContext::loadAllMembers() const + 134
14 swift                    0x000000010185cc8e swift::NominalTypeDecl::lookupDirect(swift::DeclName, bool) + 46
15 swift                    0x000000010185b77e swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, swift::NLOptions, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3518
16 swift                    0x00000001016efc02 swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclName, swift::OptionSet<swift::NameLookupFlags, unsigned int>)::$_1::operator()() const + 226
17 swift                    0x00000001016efac9 swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclName, swift::OptionSet<swift::NameLookupFlags, unsigned int>) + 281
18 swift                    0x000000010163c579 swift::constraints::ConstraintSystem::lookupMember(swift::Type, swift::DeclName) + 473
19 swift                    0x0000000101609214 swift::constraints::ConstraintSystem::performMemberLookup(swift::constraints::ConstraintKind, swift::DeclName, swift::Type, swift::FunctionRefKind, swift::constraints::ConstraintLocator*, bool) + 2772
20 swift                    0x000000010160b5e9 swift::constraints::ConstraintSystem::simplifyMemberConstraint(swift::constraints::ConstraintKind, swift::Type, swift::DeclName, swift::Type, swift::DeclContext*, swift::FunctionRefKind, swift::OptionSet<swift::constraints::ConstraintSystem::TypeMatchFlags, unsigned int>, swift::constraints::ConstraintLocatorBuilder) + 345
21 swift                    0x000000010160cf7c swift::constraints::ConstraintSystem::simplifyConstraint(swift::constraints::Constraint const&) + 1164
22 swift                    0x000000010160f819 swift::constraints::ConstraintSystem::simplify(bool) + 105
23 swift                    0x0000000101610915 swift::constraints::ConstraintSystem::solveRec(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 53
24 swift                    0x0000000101617b8f swift::constraints::ConstraintSystem::solveSimplified(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 16703
25 swift                    0x0000000101611951 swift::constraints::ConstraintSystem::solveRec(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 4209
26 swift                    0x0000000101610512 swift::constraints::ConstraintSystem::solve(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 354
27 swift                    0x00000001016a9557 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>) + 8247
28 swift                    0x00000001016a9a3d swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem*) + 733
29 swift                    0x00000001016accbe swift::TypeChecker::typeCheckBinding(swift::Pattern*&, swift::Expr*&, swift::DeclContext*, bool) + 366
30 swift                    0x00000001016ad27c swift::TypeChecker::typeCheckPatternBinding(swift::PatternBindingDecl*, unsigned int, bool) + 188
31 swift                    0x00000001016bc507 validatePatternBindingEntries(swift::TypeChecker&, swift::PatternBindingDecl*) + 1111
32 swift                    0x00000001016c0348 (anonymous namespace)::DeclChecker::visit(swift::Decl*) + 1272
33 swift                    0x000000010174e9f3 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int, unsigned int, unsigned int) + 1731
34 swift                    0x0000000101277b57 swift::CompilerInstance::performSema() + 5031
35 swift                    0x00000001005edfbb performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 1371
36 swift                    0x00000001005ec1f4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7716
37 swift                    0x00000001005a0e78 main + 12248
38 libdyld.dylib            0x00007fff727f1115 start + 1
Stack dump:
0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UIView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Repeating/ChoosePlayerPopupViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/Course.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Helpers/ScoreCalculations.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Camera/FSCameraView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/RoundedShadowRect.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegistrationCameraViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/MatchPhotoView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/LoginViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/Double.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterPasswordViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Onboarding/OnboardingPageViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Camera/FSVideoCameraView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Camera/FSAlbumView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterEmailViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Repeating/MatchDetailOverlayViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Table view cells/FeedTableViewCell.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Repeating/CameraViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Helpers/Randomizing.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/Int.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UIImageView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/AppDelegate.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Core/ProfileViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/WampViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/Photo.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/CourseCreator.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Profile/ProfileStatsViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/ConceptMatch.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Core/CommentViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/CourseDetails.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/User.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewModels/SearchViewModel.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Table view cells/RandomTextTableViewCell.swift -primary-file /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Core/NotificationsViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterHandicapViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UILabel.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Camera/FSImageCropView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/Team.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Reset Password/PasswordResetViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterUsernameViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/RecentContactsManager.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Core/FeedViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Table view cells/CourseTableViewCell.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Onboarding/FinishedOnboardingViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Onboarding/StepZeroViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/Match.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterFirstNameViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Supporting/UserDefaults.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UIColor.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/WampButton.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Click through/ClickThroughTableView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewModels/RegisterViewModel.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Course Creation/CourseCreationViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Click through/ClickThroughScrollView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/WampAvatarSmall.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Onboarding/OnboardingViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/PaddedLabel.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewModels/LoginViewModel.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Click through/ClickThroughView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/VideoView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterPasswordCheckViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/String.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/MiniGameHoleSummaryView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Camera/FSAlbumViewCell.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/TimeAgo.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/CommentView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/AuthenticationManager.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UITableView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterLastNameViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterHomeCourseCheckViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/CurrentUser.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/BaseViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewModels/WampCameraViewModel.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/FinishedSignupViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Registration/RegisterHomeCourseViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/ScoreView.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UIFont.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UIDevice.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/API/ApiMatch.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Helpers/CatchErrorJustComplete.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Core/SearchViewController.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Extensions/UIButton.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/Camera/FSConstants.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/ScoreOverview.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/Views/FeedItem.swift /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Authentication/Reset Password/ResetPasswordViewController.swift -target x86_64-apple-ios10.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -I /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/Actions -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/Alamofire -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/AlamofireImage -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/Bolts -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/BonMot -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/CodableAlamofire -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/DatePickerDialog -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/DateToolsSwift -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/FBSDKLoginKit -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/FacebookCore -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/FacebookLogin -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/KSCrash -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/KeychainAccess -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/PullToRefresher -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/RxCocoa -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/RxKeyboard -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/RxSwift -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/RxSwiftExt -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SAConfettiView -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SVProgressHUD -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/Sentry -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SnapKit -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SwiftNotificationCenter -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SwiftyAnimate -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SwiftyBeaver -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SwiftyJSON -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/SwiftyUserDefaults -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/UITableView+Cache -F /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/UITextView+Placeholder -enable-testing -g -module-cache-path /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/ModuleCache -swift-version 3 -enforce-exclusivity=checked -D DEBUG -D COCOAPODS -serialize-debugging-options -report-errors-to-debugger -Xcc -I/Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/WAMP-generated-files.hmap -Xcc -I/Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/WAMP-own-target-headers.hmap -Xcc -I/Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/WAMP-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/WAMP-project-headers.hmap -Xcc -I/Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/wesleypeeters/OWOW/WAMP/WAMP/Pods/Headers/Public -Xcc -I/Users/wesleypeeters/OWOW/WAMP/WAMP/Pods/Headers/Public/GoogleAnalytics -Xcc -I/Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/DerivedSources/x86_64 -Xcc -I/Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/wesleypeeters/OWOW/WAMP/WAMP -emit-module-doc-path /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/Objects-normal/x86_64/NotificationsViewController~partial.swiftdoc -serialize-diagnostics-path /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/Objects-normal/x86_64/NotificationsViewController.dia -Onone -module-name WAMP -emit-module-path /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/Objects-normal/x86_64/NotificationsViewController~partial.swiftmodule -emit-dependencies-path /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/Objects-normal/x86_64/NotificationsViewController.d -emit-reference-dependencies-path /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/Objects-normal/x86_64/NotificationsViewController.swiftdeps -o /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Build/Intermediates.noindex/WAMP.build/Debug-iphonesimulator/WAMP.build/Objects-normal/x86_64/NotificationsViewController.o -index-store-path /Users/wesleypeeters/Library/Developer/Xcode/DerivedData/WAMP-cgfgwqdoufmizgdzbooipkllnqow/Index/DataStore -index-system-modules 
1.	While type-checking declaration 0x7fd2cfac91c8 at /Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Core/NotificationsViewController.swift:8:1
2.	While type-checking expression at [/Users/wesleypeeters/OWOW/WAMP/WAMP/WAMP/ViewControllers/Core/NotificationsViewController.swift:8:25 - line:16:1] RangeText="StringStyle(
    .font(UIFont.medium(14)),
    .color(#colorLiteral(red: 0, green: 0, blue: 0, alpha: 1)),
    .lineHeightMultiple(1),
    .xmlRules([
        .style("highlight", StringStyle(.font(UIFont.medium(12)), .color(UIColor(hex: "BFBFBF", with: 1.0)))),
        .style("name", StringStyle(.font(UIFont.bold(14)), .color(UIColor.black)))
        ])
)"
3.	While loading members for 'Part' in module 'BonMot'
4.	While deserializing 'extraAttributes' (EnumElementDecl #754) in 'BonMot'
5.	While deserializing 'StyleAttributes' (TypeAliasDecl #101) in 'BonMot'

@ZevEisenberg
Copy link
Collaborator

Hey, @SenorWesley. Thanks for using BonMot!

As you guessed, this appears to be an issue with Swift 3.2. As of BonMot 5.0, Swift 3.x is no longer supported. I tried, but it was too hard to get NSAttributedStringKey to play nice with both versions.

The good news is that you shouldn't have to build your whole project in Swift 4 just to use BonMot. I may be wrong about this, but I believe that if you're using CocoaPods 1.4 or later, it will respect the swift_version flag from the podspec and build BonMot as Swift 4.

Please give this a try, and let me know if it doesn't work. I foresee a potential problem, because BonMot's public interface includes references to NSAttributedStringKey, and since that isn't available in Swift 3.2, you could still run into a problem.

If that's the case, I'd ask if it's an option to update your project to Swift 4? If you have Swift 3.2 dependencies, there are workarounds for that available as well, but let's see how far you get with the above suggestions first.

@ZevEisenberg
Copy link
Collaborator

🤔 hmm, on more careful reading, it looks like you are in fact building BonMot as Swift 4 in a Swift 3.2 project, and NSAttributedStringKey is indeed causing problems. So before we try to debug further, I'd like to know whether updating your main project to Swift 4 is an option?

@ZevEisenberg
Copy link
Collaborator

@SenorWesley were you able to get your project compiling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants