Value for SWIFT_VERSION cannot be empty

前端 未结 4 912
遇见更好的自我
遇见更好的自我 2021-02-02 05:43

I have installed swift pods for the obj c project. I got this error when I was trying to build it.

I have gone through all the solutions like deleting derived

4条回答
  •  时光取名叫无心
    2021-02-02 06:20

    Still, after all of that, if you're still at lost, you can add a SWIFT_VERSION directly the project file:

            80B11AAAAAAAAAAAAAAAC3E5D8 /* Debug */ = {
            isa = XCBuildConfiguration;
            baseConfigurationReference = DF5...040;
            buildSettings = {
                ...
                PRODUCT_MODULE_NAME = react-native-some-module;
                ...
                SWIFT_VERSION = "4.2";
            };
            name = Debug;
        };
    

    Repeat for both the Debug and Release targets. That had me hop over this issue.

提交回复
热议问题