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

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

Open
farktronix wants to merge 1 commit intovicc:masterfrom
farktronix:StaticLoad
Open

Change +load methods to static __attribute__((constructor)) functions#234
farktronix wants to merge 1 commit intovicc:masterfrom
farktronix:StaticLoad

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