Search Unity

Bug iOS build in 2020.3.16 won't generate the project.xcworkspace

Discussion in 'iOS and tvOS' started by Roy-Hu, Sep 18, 2021.

  1. Roy-Hu

    Roy-Hu

    Joined:
    Apr 13, 2021
    Posts:
    7
    As said, the generated xcode project doesn't contains the workspace file:
    Code (shell):
    1. $ ls Unity-iPhone.xcodeproj
    2. project.pbxproj    xcshareddata
    This happens in the 2020.3.16f1 version, and after I opening the project with 2020.3.3f1 and rebuilding the project, everthing goes as expected with the precious project.xcworkspace.

    So to prove my guess, I creat a new empty unity project, and try to build the iOS target with three different unity versions: 2020.3.3f1, 2020.3.16f1, 2020.3.18f1, it works ok only with 2020.3.3f1.

    And also, I try to export the xcode project using the "Build" and "Build And Run" command in the builtin "Build Setting" panel, the "Buiild And Run" exports the xcode project corretly with the "project.xcworkspace", but "Build" fails same as building through BuildPipeline.BuildPlayer API.

    So what's the difference between "Build" and "Build And Run"? Aren't they both using the BuildPipeline.BuildPlayer api ?

    Please Help :(