iOS Build Environment Help Center

Delete

(Leave this as-is, it’s a trap!)

To delete this thread, and all replies to it, you must be either the original author or a designated moderator.

UnityAppController.h build issue

AT Mike

Windows Version: 11
Builder Version: 3.61
iOS SDK Version: 17.2
Unity Version: 2022.3.20f1

Hello,
I'm having a couple of issues I've seen other people talk about on here but can't really see a fix for.

Please note that the second issue is occurring on unity 2022.3.20f1 and is NOT occurring when building the same project using 2022.3.14 (I'm trying to upgrade unity to see if it stops an ios crash happening with my project).

When building a project, the project will give one of two errors:
If the option for "try to fix unresolved symbols automatically" is off, I get the following error:

ld64.lld: error: framework not found for -framework CoreAudioTypes

If the above mentioned setting is toggled on, I get this error instead:
In file included from .\MainApp\main.mm:1:
.\UnityFramework/UnityFramework.h(4,9): fatal error: 'UnityFramework/UnityAppController.h' file not found
#import <UnityFramework/UnityAppController.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
+ [arm64] Linking Project...
ld: file not found: build/Release-iphoneos/iPhone-target/arm64/./MainApp/main.mm.obj

This file is in the build folder but its in ..UnityFramework/headers-public/UnityFramework. As mentioned, this issue occurred when building using unity 2022.3.20 but not when using 2022.3.14 with the builder attempting to fix unresolved symbols

Does anyone know of a fix for either of these errors?
If all else fails I'll just have to build with 2022.3.14 and hope it fixes the crashing.

Thanks very much for reading.

Moderators: Pierre-Marie Baty