UnityNativeGallery icon indicating copy to clipboard operation
UnityNativeGallery copied to clipboard

Undefined symbols for architecture arm64

Open ZYSHAQ opened this issue 8 years ago • 5 comments

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)

ZYSHAQ avatar Aug 31 '18 15:08 ZYSHAQ

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.

yasirkula avatar Aug 31 '18 15:08 yasirkula

Solved! That was the issue. Thank you for your prompt reply! I tried to follow the automatic setup.

ZYSHAQ avatar Aug 31 '18 16:08 ZYSHAQ

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

DirtyFreddie avatar Nov 11 '21 07:11 DirtyFreddie

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.

yasirkula avatar Nov 11 '21 09:11 yasirkula

I have fixed it by renaming it in the Unity project.

Thank you

DirtyFreddie avatar Nov 11 '21 09:11 DirtyFreddie