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?
Asked
Active
Viewed 157 times
0
-
Did you #import the .h file in the share extension code? – EricS Oct 09 '15 at 03:20
1 Answers
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