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 Symbols on iOS build using ARFoundation #41

Open
fourthedesign opened this issue Apr 12, 2024 · 1 comment
Open

Undefined Symbols on iOS build using ARFoundation #41

fourthedesign opened this issue Apr 12, 2024 · 1 comment

Comments

@fourthedesign
Copy link

Describe the bug
I have a project in Unity that uses Arfoundation and Airar. I successfully built for android, but when transferring to XCode and building for a device I received the following errors:
Undefined symbol: MetToUIImage(cv::Matconst&)
Undefined symbol: UIImageToMat(UIImageconst& cv::Mat& bool)
Undefined symbol: cv::warpPerspective(..)
Undefined symbol: cv::gtePerspectiveTransform(...)
Undefined symbol: cv::Mat::deallocate()
Undefined symbol: cv::fastFree(void*)
Which seems to be Linker connected error

To Reproduce
Steps to reproduce the behavior:

  1. Copied libAirarColorMap.a and opencv2.framework (v3.4.11 as suggested) to Plugins/iOS in Unity
  2. Set the appropriate settings in Player Settings as suggested in Readme
  3. target iOs Version 11+
  4. Built for iOS and opened in XCode
  5. Built for iOS device
  6. Build failed with the above errors.

Desktop (please complete the following information):

  • Unity 2022.3.6
  • ArFoundation 5.0.7
  • ARKit 5.0.7
  • XCode 14.3

Additional context
What we tried:

  1. setting opencv2.framework to "Embed&Sign" in Xcode Frameworks and Libraries
  2. Setting Library Search Paths and Header Search Paths to opencv2.framework
  3. Clean build folder in XCode
@arif69eee
Copy link

Hi @fourthedesign ,

Were you able to fix this issue? Please let us know if you were, it would be very helpful !! I am also getting the same error!

Author of this plugin, would you please help us?

Many thanks!

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

2 participants