Search Issue Tracker

Fixed in 2020.1

Fixed in 2019.3

Votes

1

Found in

2018.2.0b1

Issue ID

1176139

Regression

No

[iOS] `Swift Language Version` is not set in Xcode Build Settings when a .swift source plugin is added to an Unity Project

iOS

-

To Reproduce:

1. Add a valid .swift source file to your Unity project and mark it as an iOS plugin.
2. Export and Xcode project and build it.
3. Observe that Xcode fails with:

The target "Unity-iPhone" contains source code developed with Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets.

(or something similar)

This happens because we don't set the "Swift Language Version" (SWIFT_VERSION)" field to any Swift version in our build post-processor.

Tested on:
2019.1
2019.3

Comments (3)

  1. 544265d921496fb350569e19834a79f7?d=mm

    Lex3425

    Apr 25, 2020 19:14

    I've come to experience the problem in 2019.3.5.f1 also. However, it seems like it has been fixed now. Errors like these are not massive but can be frustrating and are what we look to avoid on any of our websites like https://www.airbnbcleaningserviceanchorage.com. Glad to see this has been addressed and fixed.

  2. 7d8c15b41dc098f2b83986800d341275?d=mm

    rendermouse

    Mar 16, 2020 14:19

    I am experiencing this on 2019.3.5.f1 as well.

  3. 6e8004cd16882bab42a72d2001828c09?d=mm

    excalith

    Feb 22, 2020 10:51

    Still broken on 2019.3.1f1 and 2019.3.2f2. Used to build with 2019.3.1f1 but started to fail. Seems like something is breaking this

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.