naoty / Timepiece

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

"No such module 'Timepiece'" #54

Closed pketh closed 8 years ago

pketh commented 8 years ago

Hi, I'm pretty new to Swift/pods. I added timepiece to my pod file, installed it and can verify it's added to my app. But attempting to import Timepiece at the top of my appDelegate with the rest of my other imports gives me an error "No such module 'Timepiece'"

Any idea what I'm missing here?

Thanks!

pketh commented 8 years ago

Hmm, I also get the same error when I run the included timepiece.playground. I'm on XCode 7.3

naoty commented 8 years ago

@pketh Thank you for using my library. Do you open .xcworkspace, not .xcodeproj? Is your problem specific to Timepiece?

pketh commented 8 years ago

Thanks for the quick reply :) Yeah I'm using xcworkspace and other pods do import. If it helps, I'm making a Mac app. But didn't do anything Mac specific in the playground file

On Apr 4, 2016, at 4:10 AM, Naoto Kaneko notifications@github.com wrote:

@pketh Thank you for using my library. Do you open .xcworkspace, not .xcodeproj? Is your problem specific to Timepiece?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

naoty commented 8 years ago

@pketh I created a sample OSX application using Timepiece, and successfully built the app. The repository is here. What is the difference with yours?

pketh commented 8 years ago

If I download your sample application directly and open it in xcode, going to the appDelegate shows the same error. Comparing our appDelegate files, they look like they have pretty much the same init. My project is https://github.com/pketh/weather-cat .

That being said, I've since found a workaround, so if I'm the only person who's had this issue I wouldn't bother trying too hard to track it down :) If other osx users bring this up, maybe file that as a duplicate issue.

Thanks Noato!

pketh commented 8 years ago

Looks like this was the issue http://stackoverflow.com/questions/29500227/xcode-no-such-module-error-but-the-framework-is-there

naoty commented 8 years ago

It's a pleasure for you to solve the problem!