No such module 'MetaWearCpp'
Hello,
I've run into an odd problem, which is almost certainly my own fault.
I decided to start over with a fresh slate, so downloaded the starter project again (https://github.com/mbientlab/MetaWear-SDK-iOS-macOS-tvOS/tree/master/StarterProject). I got the ZIP file (not git method).
Now, I've run this start project without problems before - just a few days ago. However, even with no changes, it just doesn't work now for some obscure reason. Well, the reason is as stated in the title - the build fails with error 'No such module 'MetaWearCpp'', which originates from the file 'DeviceInformation.swift' as it tries to import said library.
At first I figured I needed to do one or more of the steps described here: https://mbientlab.com/tutorials/Apple.html
And so I did, with no changes. Now I'm thinking maybe doing the steps again broke something? Like adding to the PATH variable once again.
Whatever the case, I'm at my wits end.
Sorry to once again bring such a trivial and no doubt self-inflicted problem. I just don't know where else to turn.
Thanks,
Tobias
Comments
Follow the instructions exactly as described in the Swift tutorial I linked in your previous thread.
If it tells you to use download with git, then use git, etc.
Hi Eric,
I did that, followed to the letter (and it actually says I can just as well download the zip).
In any case it's a moot point by now. I got another version from a colleague and that works perfectly, for some strange reason.
Thanks.
@Tobias,
Thanks for the update. Could have been some outdated XCODE or missing libraries perhaps? Either way I am glad you got it working.
Please follow the steps in our iOS tutorial on your next install: https://mbientlab.com/tutorials/Apple.html
I am facing this issue as well and unable to resolve it. Followed all the instructions on the tutorial
Use the
git
command to retrieve the project.When you download the code from the repo, you need to make sure to also download the CPP reference: git clone --recurse-submodules https://github.com/mbientlab/MetaWear-SDK-iOS-macOS-tvOS.git
Please follow the instructions in the github readme: https://github.com/mbientlab/MetaWear-SDK-iOS-macOS-tvOS
Or as Eric mentioned, retrieve the project with git: https://github.com/mbientlab/MetaWear-SDK-Cpp
Just to update this thread, make sure the Clang flags in the Build Settings of your project match our examples: