Search Issue Tracker

Won't Fix

Votes

5

Found in

2019.4

2019.4.4f1

2020.2

Issue ID

1265255

Regression

No

[iOS] "Invalid SWIFT_VERSION: Could not parse version component from: '0 5'" error when deploying proj. with some SDKs in Xcode

iOS

-

Reproduction steps:
1. Open customer's attached project in "FacebookSDK_Try.zip"
2. Build the project for iOS and open .xcworkspace
3. Try deploying the project to a device

Unexpected behavior: deployment fails due to invalid SWIFT_VERSION

4. Select UnityFramework Target and go to Build Settings
5. Change Swift Language Version from "Swift 5" to "Swift 5" (no mistake here)
6. Try deploying it again

The issue is resolved and the project is now deployed

Reproducible with: 2019.4.6f1, 2020.1.0f1, 2020.2.0a19
Could not test with: 2018.4, 2019.3.0a1 because of errors in the console

Notes:
1. The scene deployed can be empty (SampleScene has 3 cubes)
2. The project uses FacebookSDK, NiceVibrations (and some scripts executed in Editor mode)
3. A video is attached in 2020-07-28 10-45-52.mov (4.8 MB)

  1. Response avatar

    Resolution Note:

    The issue lies within the Nice Vibrations package. To fix, change:
    pbxProject.AddBuildProperty(targetGUID, "SWIFT_VERSION", "5.1");
    to:
    pbxProject.SetBuildProperty(targetGUID, "SWIFT_VERSION", "5.1");

Comments (4)

  1. 60be4bf9b9f04c6a2874a56033bae988?d=mm

    bourriquet

    Sep 14, 2020 13:11

    That didn't fix it for me.

  2. 04ea3247a2add9b45bd1a8caabb0279d?d=mm

    VHNGames

    Sep 08, 2020 21:43

    Same here, 2019.4.9f1

  3. 5c1c6d81eda78e7b671d4b7cf1e69491?d=mm

    Masashi-Wada

    Aug 09, 2020 17:51

    Thank you.
    I had the same problem.

  4. 49a4d4951dbb0df10b5beb4b0c2c6b41?d=mm

    AlenBrk

    Aug 06, 2020 11:45

    Thanks you, this helped me.

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.