Search Issue Tracker

Fixed in 5.4.2

Votes

5

Found in

5.4.0b15

Issue ID

793624

Regression

Yes

Unity does not include UnityEditor.iOS.Xcode in project file

iOS

-

How to reproduce:

1. Open a new project
2. Create a script and place it in a folder named 'Editor'.
3. Add "using UnityEditor.iOS.Xcode;" to the top of the script
4. Add "PBXProject project = new PBXProject();" to the Start() message
5. Save and switch back to Unity
- Note that Unity compiles the code successfully, but in the editor the code is displayed in red

- Reproduced in Version 5.4.0b17 (d34aa569a642), Version 5.3.4p4 (43a3882ae25c)
- Not reproducible in Version 5.2.4f1 (98095704e6fe)

Comments (36)

  1. Mispon

    Mar 28, 2019 14:25

    I put my file in root folder like this: "Assets/Editor/MyFile.cs" and it fixed this issue. Is important - "Editor" folder in root "Assets".

  2. PAHeartBeat

    Mar 12, 2019 13:00

    Reproduced in 2018.3.2f1

    I am facing the same issue while creating post-process build files in Standard Assets=>Editor

    I used @KJAKA suggestion and put those two files in Standard Assets=>Editor instead-of Assets/Resources.

    @TeamUnity, please fix this issue for while we are using post-process system from Standard Assets=>Editor

  3. Kjaka

    Jan 02, 2019 11:18

    This is definitely not fixed. Reproduced in 2017.3.1f1.
    As a workaround I put these files in Assets/Resources folder;

    *UnityEditor.iOS.Extensions.Xcode.dll
    *UnityEditor.iOS.Extensions.Xcode.dll.mdb

    For now it's working in both Unity and Xcode

  4. gdwf

    Dec 28, 2018 21:59

    Not fixed on Visual Studio, happens on 2018.3.02f

  5. Manas_1996

    Nov 23, 2018 08:17

    @BENOITFRESLON Thanks ... Works Like Charm ...

  6. iPedro

    Oct 07, 2018 18:24

    This issue is not fixed. It is still happening in 2018.2.11f1 and extremely frustrating. Also, the solution posted by @Maksim_Narchuk does not work and in Visual Studio for Mac the option to edit references is disabled (greyed out) all the time. How does this get re-opened?

  7. Maksim_Narchuk

    Jun 28, 2018 12:17

    Hi everyone!
    This problem has easy solution:
    1. Delete all *.csproj and *.sln at folder level "Assets"
    2. Open Unity3d and selected your project
    3. Close MonoDevelop or VisualStudio
    4. Select Assets/Open c# Project

  8. MySweet

    Jun 22, 2018 02:16

    unity 2018 刚刚也出现了

  9. rcstamp

    Jun 08, 2018 11:29

    Occurs in 2018.1

  10. whalepaha

    Apr 28, 2018 16:57

    Got this in 2017.4.1f1

Add comment

Log in to post comment