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

XCode 10.1 & Swift 4.2 can't Build #52

Closed
Faydee1220 opened this issue Dec 6, 2018 · 5 comments
Closed

XCode 10.1 & Swift 4.2 can't Build #52

Faydee1220 opened this issue Dec 6, 2018 · 5 comments

Comments

@Faydee1220
Copy link

I already try
pod 'LocoKit'
which is build with Swift 4.1 and version is 5.2.0, this one can't build
Then I try
pod 'LocoKit', :git => 'https://github.com/sobri909/LocoKit.git', :branch => 'develop'
pod 'LocoKitCore', :git => 'https://github.com/sobri909/LocoKit.git', :branch => 'develop'
which is Swift 4.2 and version is 7.0.0, but still got 3 errors:
Pods/LocoKit/LocoKit/Base/LocomotionSample.swift:27:30: Use of undeclared type 'ActivityTypeTrainable'
Pods/LocoKit/LocoKit/Base/LocomotionSample.swift:113:35: Use of undeclared type 'ClassifierResults'
Pods/LocoKit/LocoKit/Base/LocomotionSample.swift:145:9: Use of unresolved identifier 'CLPlacemarkCache'

Any solution? I find related issue like #20 but still no help.

@Faydee1220
Copy link
Author

OK, I solved, because I miss pod 'LocoKit/Timelines'. The full pod is:
pod 'LocoKit', :git => 'https://github.com/sobri909/LocoKit.git', :branch => 'develop'
pod 'LocoKit/Timelines', :git => 'https://github.com/sobri909/LocoKit.git', :branch => 'develop'
pod 'LocoKitCore', :git => 'https://github.com/sobri909/LocoKit.git', :branch => 'develop'

@sobri909
Copy link
Owner

sobri909 commented Dec 6, 2018

Glad to see you figured it out 😄🎉

I'll be merging develop back up to master soon (hopefully). Then this bit of awkwardness won't be necessary, and life will go back to normally versioned releases.

It's just a matter of missing documentation that's holding back that release process at the moment. Sigh. Always more work to do!

@sobri909
Copy link
Owner

sobri909 commented Dec 6, 2018

Actually, just looking at this again, it looks like you've exposed a bug there. It looks like the base LocoKit spec has dependencies on the Timelines spec, which is not supposed to be the case. I'll get that fixed today.

@poulpix
Copy link

poulpix commented Feb 10, 2019

Actually, just looking at this again, it looks like you've exposed a bug there. It looks like the base LocoKit spec has dependencies on the Timelines spec, which is not supposed to be the case. I'll get that fixed today.

Did you manage to fix it yet? It looks like it is still the case, as when doing a pod update today with only LocoKit and LocoKitCore referenced in my Podfile, I got the same missing types, and also had to add LocoKit/Timelines to my Podfile to make it build again...

@sobri909
Copy link
Owner

@poulpix Sorry, I still haven't had a chance to look into this. I recommend doing what you're doing, and including the Timelines subspec, as a workaround for now.

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

3 participants