smartcard extension appex with framwork folder

I am creating an application extension (appex), to be precisely, a smartcard extension, my question is,


can an appex contain a Frameworks folder with a dylib in it?

like, sample.app/Contents/Frameworks/mylib.dylib


I woul like to load a dylib from there.


Is it possible or allowed to do that?

Accepted Reply

sample.app/Contents/Frameworks/mylib.dylib

That definitely works.

On macOS putting the dynamic library inside the appex should work as well.

IMPORTANT iOS is more strict about this stuff. Specifically:

  • iOS does not support third-party dynamic libraries. If you need this you have to wrap the library in a dummy framework.

  • iOS requires that such frameworks be embedded in the top level app.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

sample.app/Contents/Frameworks/mylib.dylib

That definitely works.

On macOS putting the dynamic library inside the appex should work as well.

IMPORTANT iOS is more strict about this stuff. Specifically:

  • iOS does not support third-party dynamic libraries. If you need this you have to wrap the library in a dummy framework.

  • iOS requires that such frameworks be embedded in the top level app.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thanks Eskimo, as always. It has helped a lot.


An off-topic question, do you know if CryptoTokenKit framework for iOS ever be open to public?

It has helped a lot.

Neat-o!

An off-topic question, do you know if CryptoTokenKit framework for iOS ever be open to public?

I don’t know but, even if I did, I’m not allowed to discuss The Future™. As always, if you’d like the system to do something that it doesn’t currently do, you should file an enhancement request describing your requirements. Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I have seen that CryptoTokenKit is open for public use on IOS starting from iOS 13 and Xcode 11, which is a good thing.


Not sure whether it will work also with usim. Somebody tried this?