diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index a6d6446..49e7d28 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -11,7 +11,7 @@ Before opening an issue, make sure you try the following: 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**. -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. 1. Open your project with Xcode (`Example.xcworkspace`) 2. In the menu-bar, press **File** > **New** > **File** (⌘N) diff --git a/example/ios/VisionCameraExample.xcodeproj/project.pbxproj b/example/ios/VisionCameraExample.xcodeproj/project.pbxproj index 4caec73..d36fcfd 100644 --- a/example/ios/VisionCameraExample.xcodeproj/project.pbxproj +++ b/example/ios/VisionCameraExample.xcodeproj/project.pbxproj @@ -306,7 +306,7 @@ PRODUCT_NAME = VisionCameraExample; SWIFT_OBJC_BRIDGING_HEADER = "VisionCameraExample-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 5.2; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; @@ -329,7 +329,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativevisioncamera; PRODUCT_NAME = VisionCameraExample; SWIFT_OBJC_BRIDGING_HEADER = "VisionCameraExample-Bridging-Header.h"; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 5.2; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; @@ -386,7 +386,6 @@ LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", - "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = YES; @@ -440,7 +439,6 @@ LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", - "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; diff --git a/ios/VisionCamera.xcodeproj/project.pbxproj b/ios/VisionCamera.xcodeproj/project.pbxproj index 47ec1c1..0cccf7f 100644 --- a/ios/VisionCamera.xcodeproj/project.pbxproj +++ b/ios/VisionCamera.xcodeproj/project.pbxproj @@ -403,7 +403,7 @@ SKIP_INSTALL = YES; SWIFT_OBJC_BRIDGING_HEADER = CameraBridge.h; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 5.2; }; name = Debug; }; @@ -421,7 +421,7 @@ PRODUCT_NAME = VisionCamera; SKIP_INSTALL = YES; SWIFT_OBJC_BRIDGING_HEADER = CameraBridge.h; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 5.2; }; name = Release; };