naoty / Timepiece

Intuitive date handling in Swift
MIT License
2.63k stars 147 forks source link

Value of type 'Int' has no member 'weeks', 'seconds', … #52

Closed skofgar closed 8 years ago

skofgar commented 8 years ago

Hi I have the weird error, that whenever I add 'Timepiece', I get the error, that the type 'Int' does not have a member for week, seconds etc. However, I can see the Pod files in the workspace in the Pods-project. (Especially the Int+Timepiece.swift-file is there.) All my other Pods work...

Do you have an idea what it could be?

My Podfile looks like this.. not really spectacular.

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'

xcodeproj 'MyProject'

use_frameworks!

target 'MyProject' do
    pod 'GoogleMaps'
    pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
    pod 'Alamofire', '~> 3.1.5'
    pod 'Hex', '~> 3.0'
    pod 'AFNetworking', '~> 2.6.0' #'~> 2.4'
    pod 'BlockRSSParser', '~> 2.1'
    pod 'Parse'
    pod 'Timepiece'
end
naoty commented 8 years ago

@skofgar Thank you for reporting. I tried it just now. But, I successfully built codes such as 1.day.ago. I wonder why you got that error.

skofgar commented 8 years ago

Hmm. Ok. I'll tried it in a new project too.. I'll try again and get back to you asap.

skofgar commented 8 years ago

@naoty I discovered the problem. So silly... - I forgot to add import Timepiece.