iOS Build Environment Help Center

fatal error: 'Availability.h' file not found #include <Availability.h>

append delete Tabarlin

Windows 10
SDK 15.5
iOS Builder 3.50.1

Empty project. Unity 2021.3.38 and 2020.3.35 he same thing.

1 error generated.
In file included from <built-in>:1:
In file included from F:/Local_Git/IOS_Proj/Test//Classes/Prefix.pch:5:
F:/Local_Git/IOS_Proj/Test/Classes/Preprocessor.h(3,10): fatal error: 'Availability.h' file not found
#include <Availability.h>

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello, because polite people say hello first.

Are you the same poster as : https://www.pmbaty.com/iosbuildenv/help/thread.php?path=Problem%20solving/&file=fatal-error-uikit-uikit-h-file-not-found

If so, let me make the same reply.

Have a nice day,

:: @Pierre-Marie Baty added on 24 Aug ’22 · 12:48

TL;DR: either misdeployed or broken iOS SDK, or IOSBUILDENV_PATH/IOSUNITYBUILDER_PATH environment variables pointing to incorrect locations.

For the "Unity Asset" version of this toolchain, IOSBUILDENV_PATH should be unexistent/empty and IOSUNITYBUILDER_PATH should point to the builder's install path (e.g. "C:\Users\YourName\iOS Project Builder for Unity").

For the NON-Unity Asset version, it's the other way around. IOSUNITYBUILDER_PATH should be unexistent/empty and IOSBUILDENV_PATH should point to the builder's install path (e.g. "C:\Users\YourName\iOS Build Environment").

append delete #2. Joshua

Hi Pierre, I hope you’re doing well!

I seem to be encountering a similar issue to Tabarlin and Mikhail.

I disabled my antivirus (MalwareBytes) and confirmed that my IOSBUILDENV_PATH is correct, but the problem still persists?

I also unfortunately only have limited access to a Mac! A friend installed Xcode (which took over a day to download and install) on his computer just to help me with this! He wasn’t logged in when he ran the command file though — is that a problem? Another thing that I’m not sure about, is that he said an input dialog popped up during the execution, but he just left it blank.

Are there any log files I can share with you that may be helpful?

Thanks!

append delete #3. Pierre-Marie Baty

Hello Joshua

You haven't told which version of the builder you were using, nor which version of the iOS SDK was installed. I cannot guess these informations.

If the error is

%
Classes/Preprocessor.h(3,10): fatal error: 'Availability.h' file not found
%

Then please migrate your iOS SDK again. It was very likely misdeployed. Redo both steps of the migration, starting from an up-to-date Mac with the latest Xcode.

append delete #4. Matthias Leu

I use this tools for over a year now and its absolutly great.

I was recently confronted with the same problem:

Classes/Preprocessor.h(3,10): fatal error: 'Availability.h' file not found

Since I didn't change anything in the toolchain and the SDK, and the application was still running on other PCs, I was able to track down the error after hours.

In version 3.60.2, the Swift 5.9.1 Developer Package from swift.org have to be uninstalled. Then it worked again

Maybe this will help some people

Greetings Matthias

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