Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbol: _OBJC_CLASS_$_PHImageManager and 11 other errors #143

Open
KaiZhone opened this issue Dec 23, 2019 · 0 comments
Open

Undefined symbol: _OBJC_CLASS_$_PHImageManager and 11 other errors #143

KaiZhone opened this issue Dec 23, 2019 · 0 comments

Comments

@KaiZhone
Copy link

KaiZhone commented Dec 23, 2019

Hi,

I've followed this link:
link

I followed the tutorial up to trying to build the project it self but it here shows these error:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_PHImageManager", referenced from: objc-class-ref in NativeGallery.o "_OBJC_CLASS_$_PHImageRequestOptions", referenced from: objc-class-ref in NativeGallery.o "_OBJC_CLASS_$_PHAssetCollection", referenced from: objc-class-ref in NativeGallery.o "_OBJC_CLASS_$_PHFetchOptions", referenced from: objc-class-ref in NativeGallery.o "_OBJC_CLASS_$_PHAssetCollectionChangeRequest", referenced from: objc-class-ref in NativeGallery.o "_kUTTypeMovie", referenced from: +[UNativeGallery pickMedia:savePath:] in NativeGallery.o "_OBJC_CLASS_$_PHAssetChangeRequest", referenced from: objc-class-ref in NativeGallery.o "_OBJC_CLASS_$_PHPhotoLibrary", referenced from: objc-class-ref in NativeGallery.o "_OBJC_CLASS_$_PHAsset", referenced from: objc-class-ref in NativeGallery.o "_kUTTypeImage", referenced from: +[UNativeGallery pickMedia:savePath:] in NativeGallery.o +[UNativeGallery imagePickerController:didFinishPickingMediaWithInfo:] in NativeGallery.o "_kUTTypeVideo", referenced from: +[UNativeGallery pickMedia:savePath:] 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)

I've tried to find these error in the issues but so far no luck and adding
-DNET_4_0 to OTHER_CFLAGS doesn't seems to help either. (rather i already have added it from following the article), was there anything i'm missing.
I'm using Xcode 11.3(11C29) "latest i believe", and my unity version is 2018.4.12f1.

P.S: In the XcodePostScript i added absolute path because i'm not sure how am i going to put relative path from the folder i'm building, but after building, a little console shows up and ask me to choose for the filepath and build the script, i did that but end up needing to remove many unity-exported files reference from my native-swift project's build phases "compile-sources". Should i try to redo the tutorial from the begining again?

P.S.S: Why is there no support/documentation on native-iOS for vuforia sdk. The official site gives outdated sources and when i submit a forum question ticket, nobody replies me. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant