Pin SWIFT_VERSION to 5.2

This commit is contained in:
Marc Rousavy 2021-02-19 17:55:37 +01:00
parent 75628a0dce
commit 3597fa949d
3 changed files with 5 additions and 7 deletions

View File

@ -11,7 +11,7 @@ Before opening an issue, make sure you try the following:
cd ios && pod repo update && pod update && pod install cd ios && pod repo update && pod update && pod install
``` ```
2. Check your minimum iOS version. react-native-vision-camera requires a minimum iOS version of **11.0**. 2. Check your minimum iOS version. react-native-vision-camera requires a minimum iOS version of **11.0**.
3. Check your Swift version. react-native-vision-camera requires a minimum Swift version of **5.0**. 3. Check your Swift version. react-native-vision-camera requires a minimum Swift version of **5.2**.
4. Make sure you have created a Swift bridging header in your project. 4. Make sure you have created a Swift bridging header in your project.
1. Open your project with Xcode (`Example.xcworkspace`) 1. Open your project with Xcode (`Example.xcworkspace`)
2. In the menu-bar, press **File** > **New** > **File** (⌘N) 2. In the menu-bar, press **File** > **New** > **File** (⌘N)

View File

@ -306,7 +306,7 @@
PRODUCT_NAME = VisionCameraExample; PRODUCT_NAME = VisionCameraExample;
SWIFT_OBJC_BRIDGING_HEADER = "VisionCameraExample-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "VisionCameraExample-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.2;
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";
}; };
name = Debug; name = Debug;
@ -329,7 +329,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativevisioncamera; PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativevisioncamera;
PRODUCT_NAME = VisionCameraExample; PRODUCT_NAME = VisionCameraExample;
SWIFT_OBJC_BRIDGING_HEADER = "VisionCameraExample-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "VisionCameraExample-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.2;
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";
}; };
name = Release; name = Release;
@ -386,7 +386,6 @@
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
LIBRARY_SEARCH_PATHS = ( LIBRARY_SEARCH_PATHS = (
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
"\"$(inherited)\"", "\"$(inherited)\"",
); );
MTL_ENABLE_DEBUG_INFO = YES; MTL_ENABLE_DEBUG_INFO = YES;
@ -440,7 +439,6 @@
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
LIBRARY_SEARCH_PATHS = ( LIBRARY_SEARCH_PATHS = (
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
"\"$(inherited)\"", "\"$(inherited)\"",
); );
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;

View File

@ -403,7 +403,7 @@
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = CameraBridge.h; SWIFT_OBJC_BRIDGING_HEADER = CameraBridge.h;
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.2;
}; };
name = Debug; name = Debug;
}; };
@ -421,7 +421,7 @@
PRODUCT_NAME = VisionCamera; PRODUCT_NAME = VisionCamera;
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = CameraBridge.h; SWIFT_OBJC_BRIDGING_HEADER = CameraBridge.h;
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.2;
}; };
name = Release; name = Release;
}; };