JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

Enable APPLICATION_EXTENSION_API_ONLY in iOS target.

Open paulkite opened this issue 7 years ago • 8 comments

Would it be possible to set the APPLICATION_EXTENSION_API_ONLY build configuration setting to YES in the iOS target so it can be embedded / used in iOS extensions, like iMessage?

paulkite avatar Apr 01 '19 23:04 paulkite

Done. Will be pushed to master branch soon.

patchthecode avatar Apr 02 '19 19:04 patchthecode

I do not know much about App extensions. Hope it works well with this change and that nothing breaks.

patchthecode avatar Apr 02 '19 19:04 patchthecode

Really it just seems to forbid use of UIApplication.shared

paulkite avatar Apr 02 '19 19:04 paulkite

Ok. you lost me.. Can you explain it like i am 5?

patchthecode avatar Apr 02 '19 19:04 patchthecode

Haha. So iOS extensions aren't allowed access to UIApplication.shared. This setting ensures that the framework doesn't and isn't able to call it is all.

paulkite avatar Apr 02 '19 22:04 paulkite

ok. So if i make the change you requested, then it will be fixed?

patchthecode avatar Apr 03 '19 00:04 patchthecode

Yup.

paulkite avatar Apr 03 '19 00:04 paulkite

alright then. well the change is made. I will push the change to master branch soon

patchthecode avatar Apr 03 '19 02:04 patchthecode