0

I want to add Parse.com event recording to my iOS app's custom framework. I have followed Parse's instructions, except I add the Parse and other required frameworks to my framework, rather than to my app. Everything is fine until I add the "import Parse" line to one of the files in my framework (the one I'm trying to add Parse to), at which point the compiler tells me "No such module 'Parse'". Cleaning and rebuilding (and trashing Derived Data, cleaning, and rebuilding) have the same result.

Thanks in advance.

Chris
  • 941
  • 9
  • 18

2 Answers2

0

Make sure that you create an objective-c bridging header (because of the tag, I'll assume you are programming in swift) You can create a header by simply creating a new objective-c file and it will prompt you to create a new bridging header.

For more detailed instructions, see the following:

How to call Objective-C code from Swift

Community
  • 1
  • 1
3x14
  • 6,209
  • 3
  • 13
  • 25
  • Thanks Brandon. I don't *think* it's a bridging header problem (though not 100% sure). I'm in the process of making a framework that just wraps the Parse functionality, and following the same steps as above seems to work fine. It looks like I need to be a bit cunning because one can't include delis in frameworks that are included in app extensions. I think I can route around that. – Chris Apr 27 '15 at 13:42
0

I managed to solve this problem and the solution is documented at https://gist.github.com/multinormal/206e72ec4bdd5990d4d8

Chris
  • 941
  • 9
  • 18