0

I have all constant key in .h file. After that, I share that one between my main app and my share extension. However, my share extension doesn't seem to read that file and I can't use constant key from there. How shall I do?

Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120

1 Answers1

0

You need to make an embedded framework that is imported by both the app target and the share extension target. That is how to share code of any kind between targets.

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • There's no requirement to making an embedded framework, although if the code is large it will save memory. – EricS Oct 09 '15 at 03:21