sobri909 / LocoKit

Location, motion, and activity recording framework for iOS
https://www.bigpaua.com/locokit/
GNU Lesser General Public License v3.0
1.52k stars 103 forks source link

Project won't build when importing LocoKit #56

Open djibouti33 opened 5 years ago

djibouti33 commented 5 years ago

Hi Matt,

First off, amazing open source contribution. Thank you so much, this is really helping our idea get off the ground.

I'm having a hard time including LocoKit into my app. I'm using Xcode 10.2.1 (10E1001).

I was also having difficulty building the demo app, until I started browsing the Closed Issues and learned that I need to be working off the develop branch.

My pod file has this:

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'

I also ran through these steps, as posted in Issue #10:

On Xcode, cleaned the project and its build folder
pod cache clean --all
rm -r Pods/
pod update
pod install

I'm getting the following errors from the LocoKit framework:

.../Pods.build/Production Debug-iphoneos/GRDB.swift.build/module.modulemap:11:12: Header 'GRDB-Swift.h' not found .../Pods/LocoKit/LocoKit/Timelines/ActivityTypes/ActivityType.swift:9:8: Could not build Objective-C module 'GRDB'

Any idea what I'm doing wrong?

sobri909 commented 5 years ago

Sorry for slow reply!

I really have no idea why this would be happening. GRDB is a dependency of LocoKit, used for the SQLite database layer. The error you're seeing is not one I've seen before. The Demo App definitely builds and runs properly in Xcode 10.2.1 for me, with that Podfile configuration.

The only thing I can think to try is to "Clean build folder", and perhaps also delete derived data in Xcode. It looks to me like Xcode is confused somehow.

keyhan76 commented 4 years ago

I had the same problem. Fixing the warnings of the LocoKit would solve the problem.