Error building for ios

Getting the following when trying to build for ios. Xcode 12.4.
Undefined symbols for architecture x86_64:
OBJC_CLASS$_ALAssetsLibrary”, referenced from:
objc-class-ref in background_upload.a(background_upload_API.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld /tmp/tmpcmYjNc/ios/app/build/Release-iphonesimulator/ForgeInspector.app/Forge normal
(1 failure)

ALAssets* symbols belong to Apple’s Assets Library framework which Apple have deprecated.

This means we’re no longer using it ourselves and have stopped linking the framework into the Forge runtime binary.

It’s possible to still add it manually via module/ios/build_steps.json:

{ "do": { "add_ios_system_framework": "AssetsLibrary.framework" } },

That said, depending on what you’re doing, there’s a good chance you’ll have to rewrite your module to use Apple’s PhotoKit framework instead.

The file module’s code might be a good starting point if you need to do that: