Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Change +load methods to static __attribute__((constructor)) functions #234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

farktronix
Copy link

With the latest version of Xcode installed I was getting this dyld error at app launch time:

Swift class extensions and categories on Swift classes are not allowed to have +load methods

It looks like it's possible to replace +load methods with a static __attribute__((constructor)) function without making dyld angry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant