Cannot import Module - iOS Cocoapods

395 views
Skip to first unread message

Rafael Casabianca

unread,
Apr 21, 2017, 4:56:40 AM4/21/17
to Blockly
Hello, 

I was working with blockly on an iOS app but after the Swift 3.1 update it crashed. I used Cocoapods to import the library. When importing the library it says that a module compiled in Swift 3.0.2 cannot be imported in Swift 3.1. I tried manually installing it but it didn't work either. Do any of you know how I can avoid compiling the binary in 3.0.2 or how to fix this? 

I tried running xcode with version 3.0.2 but then AEXML wouldn't work cause it's compiled in 3.1. 

Many thanks!

Victor Ng

unread,
Apr 21, 2017, 3:22:32 PM4/21/17
to Blockly
Hi Rafael,

We ran into this problem too and found that Xcode was caching an old compilation.

Try the following:
1) Clean your project
2) Clear your Derived Data directory
3) In the error message, it will reference a specific location of the compiled Blockly framework that's causing an issue. You should be able to delete it (or temporarily move it out of its directory).
4) Rebuild your project.

This *should* fix the problem (at least it did for us!). Let us know if this works for you.

Victor

Cory Diers

unread,
Apr 21, 2017, 4:11:44 PM4/21/17
to blo...@googlegroups.com
I think the problem might've actually been our AEXML dependency. The one we had was from a previous version of Swift. I've cut a new release that depends on AEXML 4.1, which is Swift 3.1. Try updating your pods first, see if that helps.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Cory Diers | Software Engineer | cory...@google.com | 

Reply all
Reply to author
Forward
0 new messages