question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IOS Xcode Build errors with manual setup: Undefined symbols for architecture arm64: "_kUTTagClassFilenameExtension"

See original GitHub issue

Description of the bug

When using Automatic IOS build setup, the plugin works fine, however I have a project where I need to use a push notification service so I switched over to manual steps. I found that when doing them, I get this error:

Undefined symbols for architecture arm64: "_kUTTagClassFilenameExtension", referenced from: +[UNativeFilePicker convertExtensionToUTI:] in NativeFilePicker.o "_UTTypeCreatePreferredIdentifierForTag", referenced from: +[UNativeFilePicker convertExtensionToUTI:] in NativeFilePicker.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

So I went and made a fresh project just imported UnityNativeFilePicker and tried again there, same error!

I think this is a fantastic plugin and want to be able to use it for a few apps if there is a fix for this error?

I suspect something changed in Xcode recently for this issue to happen?

Reproduction steps

Repro Project: https://drive.google.com/file/d/1Ke8xfR77bywc9OawG3nJZjThfcayZDef/view?usp=sharing

Open this repro project in Unity 2020.3.0f1 on a mac with Xcode 12.4 installed, build the project, follow the manual IOS steps here: https://github.com/yasirkula/UnityNativeFilePicker/wiki/Manual-Setup-for-iOS

Platform specs

I am using Unity 2020.3.0f1 on MacOS Big Sur 11.2.3, Xcode 12.4 and build target is an Ipad running IOS 14~ Plugin downloaded via the Git URL through package manager

Additional info Screenshots just to make sure I’m not missing anything here:

Screenshot 2021-03-26 at 17 33 31 Screenshot 2021-03-26 at 17 31 38

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ROBYER1commented, Mar 26, 2021

Thank you! This bug is resolved

0reactions
yasirkulacommented, Mar 26, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Undefined symbols for architecture arm64
I fixed this by deleting arm64 from the Valid Architectures list and then setting Build Active Architecture Only to NO.
Read more >
Undefined symbols for architecture arm64 in Xcode 14
I am facing an issue when building a project that builds without issue in Xcode 13.4.1, but hits a build error in Xcode...
Read more >
Xcode Build fails - Undefined symbols for architecture arm64
When I build for android it all works fine and builds however, I switch platform to IOS and some intresting things happen. 1st...
Read more >
[Bug report] Undefined symbols for architecture x86_64 on ...
We are getting several errors Undefined symbols for architecture x86_64 when try to build (play) the React Native app with Xcode for iOS....
Read more >
Unity + iOS Build Error in Xcode (Undef symbols for ...
When I create a build for iOS using Unity 2020.1.9f, I am seeing the following build error in ... Undefined symbols for architecture...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found