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

No Such Module 'Moltin' #21

Closed
x697 opened this issue Apr 22, 2018 · 7 comments
Closed

No Such Module 'Moltin' #21

x697 opened this issue Apr 22, 2018 · 7 comments

Comments

@x697
Copy link

x697 commented Apr 22, 2018

I followed instruction and installed the pod file to my project. I open the workspace and clean and build it. I then try to import Moltin, but "no such module" is found. I created a bridging header containing the statement: "#import <Moltin/Moltin.h>". I have the compiling settings for objective c in build settings set to the bridging header I created. I've tried several solutions, but nothing works. Help with this issue would be greatly appreciated.

@craigtweedy
Copy link
Contributor

Hi,

At the moment, unfortunately, we only support Swift projects. This is due to a few Swift specific language features we use from the V2 branch onwards, such as generic enums and typealias.

I'm looking into ways to support Objective-C but at the moment the use of these language features are holding us back. Replacing typealias with the underlying types should be easy enough, but replacing the generic enum needs some thought put into it. I could replace it with a boxed object, but this will affect how people interact with the data returned which is a breaking change (although maybe a necessary one).

@x697
Copy link
Author

x697 commented Apr 23, 2018 via email

@x697
Copy link
Author

x697 commented Apr 23, 2018 via email

@craigtweedy
Copy link
Contributor

Hi,

I'm sorry this is obviously not ideal for you. I'm looking at this as a priority and I am currently testing a fix for this. Will get back to you ASAP with a confirmation.

@craigtweedy craigtweedy reopened this Apr 23, 2018
@craigtweedy
Copy link
Contributor

Hi @x697 ,

Just a quick update. I've pushed up version 3.0.5 of the Moltin pod. This corrects the majority of the issue I believe you were having, however on testing that I'm getting some issues with code signing. This is something I'm currently still looking into, but I figured I'd update you on this anyway.

In the meantime, there is a way you can work with the latest Moltin SDK separately from CocoaPods:

  • Download the 3.0.5 code directly from the master branch, or from this tag
  • Drag moltin.xcodeproj into your project.
  • Go to your targets Build Phases
  • Click the plus icon under "Link Binary With Libraries"
  • Add moltin.framework - I'm guessing you're integrating to iOS, so select moltin.framework from moltin iOS target.

I'll keep you updated as soon as I've fixed this code signing issue.

@x697
Copy link
Author

x697 commented Apr 23, 2018 via email

@craigtweedy
Copy link
Contributor

Oh! That is odd! In that case, it seems like the code signing issue is just on my side then!

I'm going to leave this issue open for a little while, and do some more testing on that side of the codebase, but in case it pops up for anyone else.

Thanks for your patience with this, I appreciate how frustrating these integration problems can be. I've already made some notes on areas we can improve to avoid these issues in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants