tomaz / symbolicator

OS X and iOS crash log symbolicator
MIT License
49 stars 11 forks source link

Error in building in Xcode 8. #4

Closed demitri closed 7 years ago

demitri commented 7 years ago

When opening the project in Xcode 8, it prompts to update/convert the Swift syntax. After doing this, the project won't build. There are two errors:

/Users/demitri/Documents/Repositories/GitHub/symbolicator/symbolicator/ArchiveHandler.swift:78:65: error: cannot call value of non-function type 'Any?!'
                if let applicationProperties: AnyObject = plistContents.object(forKey: "ApplicationProperties") {
                                                          ~~~~~~~~~~~~~~~~~~~~^
/Users/demitri/Documents/Repositories/GitHub/symbolicator/symbolicator/ArchiveHandler.swift:119:53: error: binary operator '==' cannot be applied to operands of type 'NSObject?' and 'FileAttributeType'
                if attributes[FileAttributeKey.type] as? NSObject == FileAttributeType.typeDirectory {
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/demitri/Documents/Repositories/GitHub/symbolicator/symbolicator/ArchiveHandler.swift:119:53: note: overloads for '==' exist with these partially matching parameter lists: (T, T), (T?, T?), (T?, _OptionalNilComparisonType), (Self, Self)
                if attributes[FileAttributeKey.type] as? NSObject == FileAttributeType.typeDirectory {
                                                                  ^
tomaz commented 7 years ago

Thanks for reporting this, I updated the project to support Xcode 8 and Swift 3, should work now!