steipete/InterposeKit

Incompatible with bitcode

Thomvis opened this issue · 3 comments

After adopting InterposeKit in my app, uploading a build to Apple fails when bitcode is enabled with the following error:

ITMS-90562: Invalid Bundle - The app submission can not be successfully recompiled from bitcode due to missing symbols during linking. You can try to reproduce and diagnose such issues locally by following the instructions from: https://developer.apple.com/library/archive/technotes/tn2432/_index.html

Uploading with bitcode disabled is fine. After reading the linked page I suspect it has something to do with the inline assembly in ITKSuperBuilder.m. I removed InterposeKit from my app and uploaded with bitcode without error to confirm that it was indeed InerposeKit causing the issue. Please challenge my assumption if you think something else is the issue.

Do you think this can be fixed? At least I think it would make sense to document this limitation in the readme.

Yeah, I need to remove this. Noticed this as well.

Just in case you've forgotten about this, it would be really great to see this fixed!

For reference this is what the error is when linking

    Undefined symbols for architecture arm64:
      "_ITKReturnThreadSuper", referenced from:
          __hidden#19025_ in 091.o
    ld: symbol(s) not found for architecture arm64
    Exited with 1