• Also, depending on the iOS version you’re running, you could be able to just load the ARKit framework using the load_framework method in the objc_module.

    import objc_util objc_util.load_framework('ARKit') #do stuff

    The work @Brun0oO did, if I’m not mistaken, just makes using ARKit a little easier with Pythonista. It still uses objc_util in the background to do everything, so merging your code with Bruno’s should be a simple process.

  • The __init__is only necessary if you want to import by folder name. The key is that, if you run main.py, extension.py must be in the same folder, or otherwise on sys.path (for instance, in site-packages).

  • Thanks for this!

    When I physically connect an iPad it works beautifully in Xcode 13.3.1 (MacOS 12.3.1) on a Mac Mini M1

    However, building for a simulator, I get this:

    ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/andreas/Library/Mobile Documents/com~apple~CloudDocs/CloudSrc/Pythonista3AppTemplate Updated/Pythonista3AppTemplate/Py3Kit.framework/Py3Kit' for architecture arm64

    I suspect the linker is telling me that the arm64 version is meant for an iOS device and that it is missing an arm64 version for MacOS? Does anybody know of a solution?

    Thanks!

  • @vignesh, probably best to read this thread first.

  • it worked thank you!

Internal error.

Oops! Looks like something went wrong!