iOS Build Environment Help Center

XR Plugin Management - AR Foundation (Apple AR Kit)

append delete Marios

Hello Pierre,

I'm using XR Plugin Management - AR Foundation (Apple AR Kit) with Unity.
I'm trying to build my project but it failed.
I think I need to link a framework like I did previously with the Firebase SDK.
Unfortunately, I can't find something.
Please let me know what is needed to solve this issue.

Thanks in advance.

LOGFILE

------------

+ Wiping output directory...
Building the dependency project GameAssembly...
+ Pruning compiler caches...
+ Preparing output directory...
+ XCFrameworks: 0 supplied
+ Libraries: 7 supplied, 0 built
+ Frameworks: 0 supplied, 0 built
+ Pruning compilation results...
+ Pre-parsing project files...
1 file(s) copied.
+ Building libGameAssembly.a for iphoneos (configuration: Release)
+ Creating portable copy of Unity il2cpp compiler: 2022.3.15f1
+ Using Unity il2cpp compiler: 2022.3.15f1
+ Calling the Unity il2cpp compiler to build the game assembly library...
PLEASE NOTE: this step MAY take time, and Unity doesn't always display
its progress. You can tell it's working by checking your CPU activity.
It should display 8 instances of clang.exe associated with il2cpp.exe.
======================= il2cpp output BEGIN =======================
Starting: C:\Users\Marios\Documents\Unity\Eventify\Build iOS\Il2CppOutputProject\IL2CPP\build\deploy_win64\bee_backend\win-x64\bee_backend.exe --verbose --threads=8 --profile="C:/Users/Marios/Documents/Unity/Eventify/Build iOS/build/Release-iphoneos/GameAssembly/temp/artifacts/arm64/buildstate/backend_profiler0.traceevents" --beedriver-listener --dagfile="C:/Users/Marios/Documents/Unity/Eventify/Build iOS/build/Release-iphoneos/GameAssembly/temp/artifacts/arm64/buildstate/bee.dag" --continue-on-failure FinalProgram
WorkingDir: C:/Users/Marios/Documents/Unity/Eventify/Build iOS/build/Release-iphoneos/GameAssembly/temp/artifacts/arm64/buildstate
ExitCode: 4 Duration: 0s109ms
ExitCode: 0 Duration: 0s1ms
Starting: C:\Users\Marios\Documents\Unity\Eventify\Build iOS\Il2CppOutputProject\IL2CPP\build\deploy_win64\bee_backend\win-x64\bee_backend.exe --verbose --threads=8 --profile="C:/Users/Marios/Documents/Unity/Eventify/Build iOS/build/Release-iphoneos/GameAssembly/temp/artifacts/arm64/buildstate/backend_profiler1.traceevents" --beedriver-listener --dagfile="C:/Users/Marios/Documents/Unity/Eventify/Build iOS/build/Release-iphoneos/GameAssembly/temp/artifacts/arm64/buildstate/bee.dag" --continue-on-failure --dagfilejson="C:/Users/Marios/Documents/Unity/Eventify/Build iOS/build/Release-iphoneos/GameAssembly/temp/artifacts/arm64/buildstate/bee.dag.json" FinalProgram
WorkingDir: C:/Users/Marios/Documents/Unity/Eventify/Build iOS/build/Release-iphoneos/GameAssembly/temp/artifacts/arm64/buildstate
ExitCode: 0 Duration: 5m:40s
Build succeeded with 338 successful nodes and 0 failed ones

======================== il2cpp output END ========================
+ Creating universal library (arm64)...
+ Done.

Build time: 354 seconds (0 h 5 min 54 s)
Output directory: build\Release-iphoneos\GameAssembly\GameAssembly.lib

Building the dependency project UnityFramework...
+ Preparing output directory...
+ XCFrameworks: 0 supplied
+ Libraries: 7 supplied, 8 built
+ Frameworks: 0 supplied, 0 built
+ Pruning compilation results...
+ Pre-parsing project files...
1 file(s) copied.
+ Building UnityFramework for iphoneos (configuration: Release)
+ [arm64] Compiling .\Classes\UI\UnityViewControllerBase+visionos.mm...
+ [arm64] Compiling .\Classes\Unity\UnityWebRequest.mm...
+ [arm64] Compiling .\Libraries\Il2CppOptions.cpp...
+ [arm64] Compiling .\Classes\Unity\CMVideoSampling.mm...
+ [arm64] Compiling .\Classes\UI\UnityView+iOS.mm...
+ [arm64] Compiling .\Classes\PluginBase\AppDelegateListener.mm...
+ [arm64] Compiling .\Classes\UI\UnityViewControllerBase+tvOS.mm...
+ [arm64] Compiling .\Classes\UI\UnityView+Keyboard.mm...
+ [arm64] Compiling .\Classes\Unity\UnityReplayKit.mm...
+ [arm64] Compiling .\Classes\UI\UnityView+tvOS.mm...
+ [arm64] Compiling .\Classes\UI\UnityViewControllerBase.mm...
+ [arm64] Compiling .\Classes\Unity\UnityReplayKit_Scripting.mm...
+ [arm64] Compiling .\Classes\UI\UnityAppController+ViewHandling.mm...
+ [arm64] Compiling .\Classes\Unity\CVTextureCache.mm...
+ [arm64] Compiling .\Classes\Unity\DisplayManager.mm...
+ [arm64] Compiling .\Classes\Unity\VideoPlayer.mm...
+ [arm64] Compiling .\Classes\Unity\DeviceSettings.mm...
+ [arm64] Compiling .\Classes\Unity\FullScreenVideoPlayer.mm...
+ [arm64] Compiling .\Classes\Unity\InternalProfiler.cpp...
+ [arm64] Compiling .\Classes\UI\StoreReview.m...
+ [arm64] Compiling .\Classes\UI\OrientationSupport.mm...
+ [arm64] Compiling .\Classes\PluginBase\RenderPluginDelegate.mm...
+ [arm64] Compiling .\Classes\UnityAppController.mm...
+ [arm64] Compiling .\Classes\Unity\AVCapture.mm...
+ [arm64] Compiling .\Classes\Unity\NoGraphicsHelper.mm...
+ [arm64] Compiling .\Classes\iPhone_Sensors.mm...
+ [arm64] Compiling .\Classes\Unity\Filesystem.mm...
+ [arm64] Compiling .\Classes\UI\UnityView.mm...
+ [arm64] Compiling Classes\main.mm...
+ [arm64] Compiling .\Classes\Unity\OnDemandResources.mm...
+ [arm64] Compiling .\Classes\UnityAppController+Rendering.mm...
+ [arm64] Compiling .\Classes\UI\Keyboard.mm...
+ [arm64] Compiling .\Classes\CrashReporter.mm...
+ [arm64] Compiling .\Libraries\RegisterFeatures.cpp...
+ [arm64] Compiling .\Classes\UI\UnityViewControllerBase+iOS.mm...
+ [arm64] Compiling .\Classes\UnityAppController+UnityInterface.mm...
+ [arm64] Compiling .\Classes\Unity\CameraCapture.mm...
+ [arm64] Compiling .\Classes\PluginBase\UnityViewControllerListener.mm...
+ [arm64] Compiling .\Classes\PluginBase\LifeCycleListener.mm...
+ [arm64] Compiling .\Classes\UI\ActivityIndicator.mm...
+ [arm64] Compiling .\Classes\Unity\MetalHelper.mm...
+ [arm64] Compiling Libraries\com.unity.xr.arkit\Runtime\iOS\UnityARKit.m...
+ [arm64] Compiling Libraries\Plugins\NativeGallery\iOS\NativeGallery.mm...
+ [arm64] Compiling Libraries\com.unity.inputsystem\InputSystem\Plugins\iOS\iOSStepCounter.mm...
+ [arm64] Including Libraries\libiPhone-lib.a...
+ [arm64] Including $(BUILT_PRODUCTS_DIR)\libGameAssembly.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppStorage.a...
+ [arm64] Including Libraries\com.unity.xr.arkit\Runtime\iOS\Xcode1500\libUnityARKit.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppApp.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppAuth.a...
+ [arm64] Including Libraries\libil2cpp.a...
+ [arm64] Including Libraries\baselib.a...
+ [arm64] Linking UnityFramework...
ld64.lld: warning: directory not found for option -LC:/Users/Marios/Documents/Unity/Eventify/Build iOS/$(BUILT_PRODUCTS_DIR)
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: framework not found for -framework Symbols
ld64.lld: error: framework not found for -framework CoreAudioTypes
ld64.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)

Press any key to continue . . .

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Some projects require to be linked with the Apple linker and not the LLVM one. This is your case. Untick the box "Use the LLVM linker" in the builder UI to use Apple’s ld64 linker.

:: @Pierre-Marie Baty added on 08 Mar ’24 · 22:39

P.S. Next time please provide the required info - and try things on your own before posting.

append delete #2. Marios

Dear pierre.

I have unticked the "use the LLVM linker"
The project was built successfully but when I uploaded and submiting the .ipa file I received the following message:

''Please correct the following issues and upload a new binary to App Store Connect.

ITMS-90109: This bundle is invalid - The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would prevent this application from running on devices that were supported by previous versions. Refer to QA1623 for additional information: https://developer.apple.com/library/ios/#qa/qa1623/_index.html

Apple Developer Relations"

In the Apple developer console shows: iOS App Invalid Binary

Why this issue?

Thanks in advance.

append delete #3. Pierre-Marie Baty

What is it that you don’t understand in the explanation Apple gave you specifically ?

#4. Marios

This post was deleted by its owner

append delete #5. Marios

I don't understand how to solve The key UIRequiredDeviceCapabilities in the Info.plist.

if I add the <string>armv7</string> in the Info.plist may the issue can be solved or the problem is completely different?

<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
<string>arm64</string>
<string>metal</string>
<string>arkit</string>
</array>

Thanks in advance

append delete #6. Pierre-Marie Baty

They say

The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would *prevent this application from running on devices that were supported by previous versions*.

(Emphasis mine). So, just do what they say and don’t add keys that weren’t present in earlier versions of your app.

append delete #7. Marios

Ok I understand what is happening.

Thanks a lot Pierre for the support and the helpful tool.

append delete #8. Pierre-Marie Baty

You’re welcome.

Reply

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

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty