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

iOS

-

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)

  1. 680d10e61268f0642176377a5ffaac4b?d=mm

    infosekr

    Jun 08, 2018 21:16

    Seeing this in 2018.1.3f1 still

  2. C8be143add550180689aa50bab255029?d=mm

    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
    }
    }

  3. 3cf3196c0869d8940087e0f5cb544bad?d=mm

    Chanachon

    Jun 04, 2018 06:01

    I have this problem too, anyone find some solutions?

  4. Ca257b341ceba54bef73094eb76e786f?d=mm

    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!!!!!

  5. Fc629b042434bf71b9a4ae9e533d574d?d=mm

    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.

  6. Bf2724e59fb9371610e97f5492360ce4?d=mm

    mulova

    May 21, 2018 05:36

    Not fixed even in 2018.1.1f1 :(

  7. 1bd8cda968da7ef7e1a231c6b00330e9?d=mm

    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

  8. 7ba24de5629a1760ede4fbdbeae3d666?d=mm

    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

  9. C05f193835e72cd1d25d7c49b4c403f9?d=mm

    dorukeker

    May 10, 2018 13:51

    Also seeing this on 2018.1.0f2

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.