tetujin / ESense

An iOS library for eSense (Earable Computing Platform)
http://www.esense.io/
MIT License
14 stars 2 forks source link

No such module 'ESense' #2

Open bardram opened 4 years ago

bardram commented 4 years ago

I'm trying to run the example app. I cloned the repro, and ran pod install in the Example folder, as specified:

Analyzing dependencies
Fetching podspec for `ESense` from `../`
Downloading dependencies
Using CSV.swift (2.4.2)
Using Charts (3.3.0)
Using ESense (0.1.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 3 total pods installed.

And yet, when I open the Example project in XCode, I get a

No such module 'ESense'

error in ViewController.swift

What's wrong?

minoskt commented 4 years ago

With cocoapods you need to open the .xcworkspace file of your project, not the .xcodeproj.

bardram commented 4 years ago

Thanks @minoskt - that helped. But now I get a weird error like this:

dyld: Library not loaded: @rpath/CSV.framework/CSV
  Referenced from: /private/var/containers/Bundle/Application/42980BC7-DE1E-4D30-8C3D-81A9C20CC7DE/ESense_Example.app/ESense_Example
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/42980BC7-DE1E-4D30-8C3D-81A9C20CC7DE/ESense_Example.app/Frameworks/CSV.framework/CSV: code signature invalid for '/private/var/containers/Bundle/Application/42980BC7-DE1E-4D30-8C3D-81A9C20CC7DE/ESense_Example.app/Frameworks/CSV.framework/CSV'

I tried to google this, but couldn't really see what the problem is? Have you seen this on the new version of the iOS - I'm running 13.3

minoskt commented 4 years ago

I've never seen this before. It seams CSV framework cannot be found. Have you tried doing a Product > Clean build folder and then recompile?