iOS build failing

I am trying to build for iOS, but all attempts have failed. I don’t know how to solve this. Can someone help me? Thank you!

Here are the errors:


[error] [2024-11-22T12:05:26Z - Unity] UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:EmitExceptionAsError<UnityEditor.Scripting.ScriptCompilation.EditorCompilation/CompileStatus> (System.Func`1<UnityEditor.Scripting.ScriptCompilation.EditorCompilation/CompileStatus>,UnityEditor.Scripting.ScriptCompilation.EditorCompilation/CompileStatus) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:49)

[error] [warning] [2024-11-22T12:05:50Z - Unity] Packages/com.unity.remote-config-runtime@4.0.1/Runtime/RCUnityWebRequest.cs(15,36): warning CS0618: 'UnityWebRequest.isHttpError' is obsolete: 'UnityWebRequest.isHttpError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.'

[error] [2024-11-22T12:06:34Z - Unity]  0.2 kb	 0.0% Packages/com.unity.services.cloudsave/Runtime/com.unity.services.cloudsave.internal/Runtime/ErrorMitigation/StatusCodePolicyConfig.cs

[error] [2024-11-22T12:12:20.061Z] - 7.5.3.2.7.4 - INFO: ▸ ❌  ld: Undefined symbols:
[error] [2024-11-22T12:12:20.061Z] - 7.5.3.2.7.4 - INFO: ▸ ❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

[error] [2024-11-22T12:12:20.122Z] - 7.5.3.2.7.4 - INFO: ❌  ld: Undefined symbols:
[error] [2024-11-22T12:12:20.122Z] - 7.5.3.2.7.4 - INFO: ❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)
[error] [2024-11-22T12:12:20.122Z] - 7.5.3.2.7.4 - INFO: ▸ clang: error: linker command failed with exit code 1 (use -v to see invocation)

[error] [2024-11-22T12:12:20.143Z] - 7.5.3.2.7.4 - ERROR: xcode build failed 
[error]   RuntimeError (Build Failure):
[error] /BUILD_PATH/.rvm/gems/ruby-2.7.4/gems/bvr-7.5.3.2.7.4/lib/bvr/build/handlers/platform/xcode_compiler.rb:319:in `block in exec_fastlane': Build Failure (RuntimeError)

Expand those linker errors, they should be listing missing symbols. Those will help to find what is missing.
It seems you are using Cocoa pods, maybe there is some thing wrong with those?

The problem has been solved. It was due to the undefined symbols error.

Thank you for your response.

How did you define them? I would like to know how you solved it.

This is not a general error with a common solution, it really depends on what exact symbols are missing to narrow down the source of the problem and figure out what’s going wrong.

You don’t just define the missing symbols, you need to fix whatever made the symbols not included or inadvertently included references to them.

You’re better off opening up a new topic with your specific errors instead of hijacking this thread which has likely another source.

2 Likes