Search Issue Tracker

Fix In Review for 2019.3

Votes

0

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

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.