Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2018.1.X, 2018.2.X
Votes
5
Found in
2018.1.0a1
2018.1.0b13
Issue ID
1022895
Regression
Yes
[iOS] Xcode compiler errors unknown type name bool in UnityInterface.h
To reproduce:
1. Open attached project "XcodeCompileErrors.zip"
2. Build for iOS
3. Run build with Xcode to iOS device
Expected result: the project is built to iOS device
Actual result: unknown type name bool in UnityInterface.h errors in the Xcode compilers
Reproduced on:
2018.1.0a1 2018.1.0f1 2018.2.0b1
Not reproduced on:
2017.4.1f1
Device:
iPhone SE iOS 9.3
Xcode Version 9.3 (9E145)
MacOS 10.13.4
Comments (19)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Only a single Selector is added to a Container when drag and dropping multiple of them on an Element in UI Builder
- Reverting all overrides in a Prefab Variant creates unrevertible changes when the parent GameObject of the Prefab is a Canvas
- New ShaderGraph SubGraph remains dirty when the non-existing changes are discarded
- Inspector window flickers when a selector is created using a Style Class List Section
- [iOS] "UnityBatchPlayerLoop()" causes a freeze in the iOS application when it is put to the background and brought back to the foreground
infosekr
Jun 08, 2018 21:16
Seeing this in 2018.1.3f1 still
syslord2k2
Jun 08, 2018 12:41
Automatic solution for cloud build and because it's more comfortable:
public class PostProcessBuild
{
[PostProcessBuild]
public static void OnPostProcessBuild(BuildTarget target, string path)
{
#if UNITY_IPHONE
string unityInterfacePath = path + "/Classes/Unity/UnityInterface.h";
if (File.Exists(unityInterfacePath))
{
List<string> interfaceLines = File.ReadAllLines(unityInterfacePath).ToList();
interfaceLines.Insert(0, "#include <stdbool.h>");
StringBuilder sb = new StringBuilder();
foreach (string s in interfaceLines)
{
sb.Append(s);
sb.Append("\n");
}
File.WriteAllText(unityInterfacePath, sb.ToString());
}
else
{
Debug.LogError("UnityInterface.h doesn't exist");
}
#endif
}
}
Chanachon
Jun 04, 2018 06:01
I have this problem too, anyone find some solutions?
multimediamarkers
Jun 01, 2018 19:32
It is still not working on 2018.1.1f1 ... So why is this issue closed because it is still in!!!!!
GAMEDIA_Justin
May 28, 2018 08:55
Still broken in 2018.1.2f1.
Workaround works fine, but I would love to see this fixed, so our builds in Cloud Build will work again.
mulova
May 21, 2018 05:36
Not fixed even in 2018.1.1f1 :(
mc1695
May 18, 2018 13:45
I can also confirm this is in 2018.1.0f2 and the suggested workarounds don't work with Unity Cloud Build
Hyperlink_Unity3D
May 16, 2018 12:45
Still exist in 2018.1.0f2
workaround solution is to add #include <stdbool.h> at the top of UNITYINTERFACE.H
dorukeker
May 10, 2018 13:51
Also seeing this on 2018.1.0f2