2.6 KiB
2.6 KiB
id | title | sidebar_label |
---|---|---|
troubleshooting | Troubleshooting | Troubleshooting |
Before opening an issue, make sure you try the following:
iOS
- Try cleaning and rebuilding everything:
rm -rf package-lock.json && rm -rf yarn.lock && rm -rf node_modules && rm -rf ios/Podfile.lock && rm -rf ios/Pods npm i # or "yarn" cd ios && pod repo update && pod update && pod install
- Check your minimum iOS version. VisionCamera requires a minimum iOS version of 11.0.
- Open your
Podfile
- Make sure
platform :ios
is set to11.0
or higher
- Open your
- Check your Swift version. VisionCamera requires a minimum Swift version of 5.2.
- Open
project.pbxproj
in a Text Editor - If the
LIBRARY_SEARCH_PATH
value is set, make sure there is no explicit reference to Swift-5.0. If there is, remove it. See this StackOverflow answer. - If the
SWIFT_VERSION
value is set, make sure it is set to5.2
or higher.
- Open
- Make sure you have created a Swift bridging header in your project.
- Open your project (
.xcworkspace
) in Xcode - Press File > New > File (⌘+N)
- Select Swift File and press Next
- Choose whatever name you want, e.g.
File.swift
and press Create - Press Create Bridging Header when promted.
- Open your project (
- If you're experiencing weird behaviour, check the logs in Xcode to find out more.
Android
- Since the Android implementation uses the not-yet fully stable CameraX API, make sure you've browsed the CameraX issue tracker to find out if your issue is a limitation by the CameraX library even I cannot get around.
- If you're experiencing weird behaviour, check the logs in Android Studio/Logcat (⌘ + 6) to find out more.
- If a camera device is not being returned by
getAvailableCameraDevices()
, make sure it meets the minimum requirements - that is minum supported harwdware level ofLIMITED
and above. See this section in the Android docs for more information.
Issues
If nothing has helped so far, try browsing the GitHub issues. If your issue doesn't exist, create a new one. Make sure to fill out the template and include as many details as possible.