Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in ios build - 'objc_ownership' only applies to Objective-C object or block pointer types #1254

Open
halhwadi opened this issue Dec 5, 2024 · 1 comment
Assignees

Comments

@halhwadi
Copy link

halhwadi commented Dec 5, 2024

Hi

Mobile scanner works properly on android, but on IOS(18.0.1) physical device throws this error:

**"Library/Developer/Xcode/DerivedData/Runner-czitbbrlbqgugmapfcauuxbvputn/Build/Products/Release-iphoneos/mobile_scanner/mobile_scanner.framework/Headers/mobile_scanner-Swift.h:342:31: 'objc_ownership' only applies to Objective-C object or block pointer types; type here is 'CVPixelBufferRef Nullable' (aka 'struct __CVBuffer *')"**_

IOS 18.0.1 IOS(18.0.1) physical device
Xcode: 16.1
mobile_scanner: ^3.5.5
Pod version 1.16.2
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 14.6 23G80 darwin-arm64, locale en-AE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] Connected device (4 available)
[✓] Network resources

@navaronbracke
Copy link
Collaborator

This should only be a warning, we had this error on the MacOS implementation before.

Is this a fatal error in iOS 18, when building on physical devices?
I see you are using a very old version of mobile_scanner, though.
Does this happen on version 6.0.0 ?

@navaronbracke navaronbracke self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants