InterposeKit icon indicating copy to clipboard operation
InterposeKit copied to clipboard

Incompatible with bitcode

Open Thomvis opened this issue 3 years ago • 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.

Thomvis avatar Mar 27 '21 19:03 Thomvis

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

steipete avatar Mar 27 '21 20:03 steipete

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

duraidabdul avatar Jul 24 '21 00:07 duraidabdul

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

twodayslate avatar Jan 24 '22 03:01 twodayslate