UE4 Xcode 15 remote build fails due to many warnings

Hello,

I had my project set up for iOS with a Remote Build and it was working until the new requirements of Xcode 15 (and updated the MacOS to Ventura 13.6.6).

I am getting a lot of red warning as deprecated, searched this past week and tried everything I found, including the flags to ignore the warning etc. But, in the end I am getting the same errors.

I have two versions of the project and both are on UE4. Tried with both 4.26 and 4.27. It’s pretty much the same errors.

On the 4.26 I tried correcting the warning and I got from 20 to 6 warnings, meaning for those that are deprecated, but I still get some weird red warnings and the build just cannot finish and fails.

And I cannot migrate the project to UE5, so it needs to be on UE4.


The other unedited version has also the deprecated warnings.

Any help would be appreciated as I am getting on the end of my nerves. Lol

Thank you!

Edit: here is the log file: Dropbox

I’ve managed to sort it out with ChatGPT updating the core files from the engine. I’ve managed to build with 4.26.2 and Xcode 15 through remove IOS build with Vmware.

Would you be willing to share your solution?
Does it require modifying a lot of files or is it a few steps?

It was a couple of files that I updated in the engine. I did a copy of the whole 4.26 engine and I can zip it and send you a link if you like?

Message me with your email.

Thanks, but I’m using 4.27.2 and I don’t know if there will be any conflicts.

In addition, I just tried to use CHATGPT to help me modify the code of IsTriviallyCopyAssignable.h / IsTriviallyCopyConstructible.h / IsTriviallyDestructible.h. It can be compiled normally, but I’m not sure if it is the most correct modification solution, so maybe I can refer to your file.

Yes, those were the files that I modify. In the end just try to solve all the red errors and the build should finish without issues.

Got it, it looks like GPT has solved this problem for me.
Now I can compile it.

That’s great to hear!

I just packed the archive of 4.26, but glad you sorted it out!

Do you have any experience with Android building? I am getting the project built without errors, but as soon as the app starts it crashes.

There are many factors that can cause crashes, and generally speaking, it is recommended to check the crash logs of UE4GAME on Android phones to determine what the problem is.

It’s crashing due to Firebase as I can see from the error log:

07-10 10:31:42.127 E/s.DaisysRevenge(32327): Not starting debugger since process cannot load the jdwp agent.
07-10 10:31:42.596 W/BpBinder(32327): PerfMonitor binderTransact : time=408ms interface=android.os.IServiceManager code=2
07-10 10:31:43.246 W/BpBinder(32327): PerfMonitor binderTransact : time=643ms interface=android.app.IActivityManager code=19
07-10 10:31:43.311 W/libc (32327): Access denied finding property “ro.vendor.df.effect.conflict”
07-10 10:31:43.320 E/AndroidRuntime(32327): FATAL EXCEPTION: main
07-10 10:31:43.320 E/AndroidRuntime(32327): Process: com.CreativeWorks.DaisysRevenge, PID: 32327
07-10 10:31:43.320 E/AndroidRuntime(32327): java.lang.BootstrapMethodError: Exception from call site #60 bootstrap method
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.google.firebase.components.ComponentDiscovery.discoverLazy(Unknown Source:29)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.google.firebase.FirebaseApp.(Unknown Source:60)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.google.firebase.FirebaseApp.initializeApp(Unknown Source:64)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.google.firebase.FirebaseApp.initializeApp(Unknown Source:2)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.google.firebase.FirebaseApp.initializeApp(Unknown Source:35)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source:4)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.content.ContentProvider.attachInfo(ContentProvider.java:2468)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.content.ContentProvider.attachInfo(ContentProvider.java:2433)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:3)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.app.ActivityThread.installProvider(ActivityThread.java:7966)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.app.ActivityThread.installContentProviders(ActivityThread.java:7477)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7205)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2241)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.os.Handler.dispatchMessage(Handler.java:106)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.os.Looper.loopOnce(Looper.java:211)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.os.Looper.loop(Looper.java:300)
07-10 10:31:43.320 E/AndroidRuntime(32327): at android.app.ActivityThread.main(ActivityThread.java:8395)
07-10 10:31:43.320 E/AndroidRuntime(32327): at java.lang.reflect.Method.invoke(Native Method)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
07-10 10:31:43.320 E/AndroidRuntime(32327): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
07-10 10:31:43.320 E/AndroidRuntime(32327): Caused by: java.lang.ClassCastException: Bootstrap method returned null
07-10 10:31:43.320 E/AndroidRuntime(32327): … 21 more
07-10 10:31:43.321 W/OOMEventManagerFK(32327): Failed to mkdir /data/miuilog/stability/memleak/heapdump/
07-10 10:31:43.589 W/BpBinder(32327): PerfMonitor binderTransact : time=256ms interface=android.app.IActivityManager code=7

I tried to fix it with ChatGPT, but it gave me other errors . How did you guys modifyIsTriviallyCopyAssignable.h, IsTriviallyCopyConstructible.h, IsTriviallyDestructible.h? I am trying to build Unreal Engine 4.27.2 too.

You need to edit the lines that are giving the errors. Chat GPT helped here a lot. Do you want me to email you the fixed files? Send me your email.

The compiler is throwing the following error in multiple files
example:
/Engine/Source/Runtime/RHI/Private/DynamicRHI.cpp:505:14 variable ‘dbg’ set but not used [-Werror,-Wunused-but-set-variable]

this error appears on variables that are being used just two lines after being declared.

I’ve tried to follow several steps to ignore these errors globally, but nothing has worked so far. Here are some of the things I’ve tried:

Adding ‘’ Result += " -Wno-unused-but-set-variable";‘’ to MacToolChain.cs in the GetCompileArguments_Global function

and adding

#pragma clang diagnostic push
#pragma clang diagnostic ignored “-Wunused-but-set-variable”

(code with the error)

#pragma clang diagnostic pop

After ignoring the variable warning with #pragma, similar errors appear for other variables in other files, causing a cascade of build failures.

While I could add the #pragma to each file individually, I believe there might be a more efficient solution.

Have you guys encountered the same errors?

I am going insane, help.

For anyone experiencing similar issues, I resolved it by switching branches from 4.27 to 4.27-plus. This version is actively being updated, and the Xcode and build errors have already been fixed in this branch.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.