Problem with iOS API / Cocoapods (?)
Hello,
I do have a problem using the API for iOS.
About the environment:
Mac (MacOS 10.13.5)
Xcode (9.4)
iPhone 7 (iOS 11.4)
First i created a new project:
Then i did followed the instructions on Cocoapods (Version 3.1.1) - except one point: I did used the last commit of Bolts Swift (5d06920) instead of the version used at the tutorial.
I opened project using .xcworkspace. First, Xcode didn't accepted import of "MetaWear". After this was solved by a clean und rebuild i do get another exception:
After hours of searching i don't know what's wrong. I would be glad if someone could help me.
Thx in advance,
Karsten
This discussion has been closed.
Comments
Refer to the StarterProject. See if you can import that into xcode.
Hello Eric,
thanks for your answer. I tried the StarterProject already. It did worked, but i want to create a own project from scratch.
Many regards,
Karsten> @Eric said:
I've got the same issues here.
This may be related, but my StarterProject also does not build. It gets:
I've checked and there's nothing in that folder.
I also had to use the later commit for Bolts.
If I follow the steps to create my own project, I get the same error as the original poster, Karsten, with MBLMetaWearManager not found.
Using the version from the 'develop2.0' branch actually works, or at least the initial instructions on the Project Setup page work to connect to the device if you use the Podfile below:
The new version uses the C++ library as a submodule so it should read:
pod "MetaWear", :git => 'https://github.com/mbientlab/MetaWear-SDK-iOS-macOS-tvOS.git', :submodules => true, :commit => 'd1c417c'
That results in a CocoaPods error: "Unable to find a specification for
MetaWearCpp
"This issue has been solved in this thread: https://mbientlab.com/community/discussion/2612/pods-integration-with-v3-1-4-sdk#latest