iOS Build Environment Help Center

Build fail when use c# hot update solution

append delete hounianci

Windows 11
iOS Builder 3.64
iOS SDK 17.4

Build fail when i try to use a third party c# hot update solution.

solution link :
https://hybridclr.doc.code-philosophy.com/en/docs/intro

build log :

Building the dependency project UnityFramework...
+ Preparing output directory...
+ XCFrameworks: 0 supplied
+ Libraries: 2 supplied, 0 built
+ Frameworks: 0 supplied, 0 built
+ Pre-parsing project files...
+ Building UnityFramework for iphoneos (configuration: Release)
+ [arm64] Compiling .\Classes\Unity\UnityWebRequest.mm...
clang: error: no such file or directory: ' -fno-strict-overflow -DNET_4_0 -DRUNTIME_IL2CPP=1 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DUNITY_VERSION_VER=2021 -DUNITY_VERSION_MAJ=3 -DUNITY_VERSION_MIN=21 -DIL2CPP_MONO_DEBUGGER_DISABLED'
+ [arm64] Compiling .\Libraries\Il2CppOptions.cpp...
detected compiler error, aborting multithreaded build.
clang: error: no such file or directory: ' -fno-strict-overflow -DNET_4_0 -DRUNTIME_IL2CPP=1 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DUNITY_VERSION_VER=2021 -DUNITY_VERSION_MAJ=3 -DUNITY_VERSION_MIN=21 -DIL2CPP_MONO_DEBUGGER_DISABLED'

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

1. Hello

If you want me to reproduce something, please send me an *Xcode project*, not the link to a website that will require me to spend hours reading specific documentation about something I never heard of before, setting things up, following procedures and going through a lot of hassle just for reproducing a Xcode project such as the one that I could get from you in much less time.

Also, when you attach build logs, please provide a link to the full log, in debug mode (Shift + Build), instead of just pasting a few lines for which I have little context.

Thank you for your understanding.

append delete #2. hounianci

Hello, thank you for your reply.I am a beginner in Unity development, and I apologize for any previous improper statements.
I use this third party solution to hotfix bugs without rebuild my project. I don't really understand about how it works but i found that it will add a Libraries folder called "libil2cpp".
anyway thank again.
here this my Xcode project:

https://drive.google.com/file/d/10Y9nfYjosuTARSAezSWCMwx82IUj7WR3/view?usp=drive_link

and full build log:

https://docs.google.com/document/d/1rI4nwXRUcmPBg05KELAx-ZDwzI4PYPk9ucKxMd-P1V8/edit?usp=drive_link

append delete #3. hounianci

Hello, just make sure you didn't miss my message

append delete #4. Pierre-Marie Baty

Hello

Yes, I noticed your message. The problem you discovered doesn’t look like an easy one. I need to be able to secure periods of uninterrupted time to be able to study it efficiently. This is not easy for me at the moment. I promise to spend some time on it this week, but I can’t announce the date at which this task will be completed, unfortunately.

I suppose that this add-on isn’t essential for your project, is it ?

:: @Pierre-Marie Baty added on 14 May ’24 · 23:31

*edit* well, there are days like this. Just as I finished writing the previous message the cause of the problem struck me like the obvious. I read the log again and it turns out that your add on adds a bunch of compiler flags to the Xcode project, but when doing so it includes the whole lot in double quotes, which makes the compiler think that those separate flags are in fact one single element, which it interprets as a file name, obviously nonexistent. Hence the error message.

The proper way to fix this would be to instruct your plugin to not add those extra quotes when it adds compiler flags to the Xcode project file. The fact that it works on Mac suggests that Xcode dequotes them automatically, but it’s not a very safe thing to do because it creates the opposite problem : it becomes impossible to pass the compiler a definition flag whose value would be a string, for example.

I could, however, align the builder with this Xcode behavior and strip quotes from all flags but I’m wary that it could cause problems elsewhere. Do you have the possibility to tell your plugin to not add these problematic quotes in the first place ?

append delete #5. hounianci

Hello, thank you for taking time to address this issue. You are right,this add-on is not a essential component of my project. Therefore, I will focus on other features of my game. I will try your suggestions later and will contact you if there is any progress.

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