Undefined symbols for architecture arm64
Hello, I am using latest Xcode and unity versions and getting the following error: Undefined symbols for architecture arm64: "OBJC_CLASS$_ALAssetsLibrary", referenced from: objc-class-ref in NativeGallery.o "_ALAssetsGroupPropertyName", referenced from: ___49+[UNativeGallery saveMediaOld:albumName:isImage:]_block_invoke.94 in NativeGallery.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
If your Other Linker Flags contains -framework AssetsLibrary, then this issue shouldn't occur. Nevertheless, you can add AssetsLibrary framework to your project manually get rid of this error.
Solved! That was the issue. Thank you for your prompt reply! I tried to follow the automatic setup.
Hi,
If your Other Linker Flags contains
-framework AssetsLibrary, then this issue shouldn't occur. Nevertheless, you can add AssetsLibrary framework to your project manually get rid of this error.
I have the same issue and i am not good with xcode. Can you explain to me the steps how to do that?
Thank you
Does your issue also contain the very same sentence OBJC_CLASS$_ALAssetsLibrary", referenced from: objc-class-ref in NativeGallery.o? Undefined symbols can be caused by a lot of things, not just ALAssetsLibrary.
I have fixed it by renaming it in the Unity project.
Thank you