Open jtkeyva opened 2 years ago
I'm sorry, this package does not support in iOS yet. But works perfectly in Android :)
Got it, thanks. Might want to update platform compatibility on pub.dev. Any plans for iOS?
@jtkeyva Thank you for pointing it out, I will update it. for the iOS plans, it depends on Google, because I'm using Google's ML kit under the hood
@Eng-MFQ got it thanks. i posted a question for google_ml_kit to see if they plan to implement for ios
Hey what's the update for IOS , is it working with IOS or not till yet ?
@fullstackdeveloper01 I'm sorry not yet. but it will be soon!
Thanks for this cool idea! I've been battling this for a while but can't get it to run. Any ideas? Thanks!
Launching lib/main.dart on iPhone 13 in debug mode... Xcode build done. 5.1s Failed to build iOS app Error output from Xcode build: ↳ --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:ABEDB1CA-7FB4-47CE-A432-F6C6E73A05FD, OS:15.0, name:iPad (9th generation) } { platform:iOS Simulator, id:82F72832-289A-4C9A-AB14-181A569128F9, OS:15.0, name:iPad Air (4th generation) } { platform:iOS Simulator, id:D77DC02B-F752-4D59-9407-3A111696B685, OS:15.0, name:iPad Pro (9.7-inch) } { platform:iOS Simulator, id:61F66AE5-FF7E-44F3-8697-74DE6DACB0F4, OS:15.0, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:3341B2A7-6200-45FA-ABDA-AA3A81A11CCD, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) } { platform:iOS Simulator, id:14B3A078-32F5-4868-8893-C1FE03783110, OS:15.0, name:iPad mini (6th generation) } { platform:iOS Simulator, id:16E13ABB-7A6F-4436-9A21-B5989A6BB552, OS:15.0, name:iPhone 8 } { platform:iOS Simulator, id:108D164C-B7D9-41CA-958D-2E46E3F0B30D, OS:15.0, name:iPhone 8 Plus } { platform:iOS Simulator, id:797E00F2-BEB3-4716-AEBF-917F25CF30F0, OS:15.0, name:iPhone 11 } { platform:iOS Simulator, id:A9BEF53A-23A6-4F6F-B03B-E0A57E16B8AB, OS:15.0, name:iPhone 11 Pro } { platform:iOS Simulator, id:844569AC-6976-4F7E-B811-3E0ABDB0160F, OS:15.0, name:iPhone 11 Pro Max } { platform:iOS Simulator, id:34CA4DCB-4E8E-46E3-9BE1-CC200EA0F060, OS:15.0, name:iPhone 12 } { platform:iOS Simulator, id:1DEA97B6-1BAE-4EDF-ADA5-65B82FAF4572, OS:15.0, name:iPhone 12 Pro } { platform:iOS Simulator, id:CBF6D680-70C3-4EBD-89F4-A5D797980DE9, OS:15.0, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:DFA2EE8B-DB23-4444-8A46-DF591439D317, OS:15.0, name:iPhone 12 mini } { platform:iOS Simulator, id:52105F32-18A0-4BC6-A757-C63AE580C902, OS:15.0, name:iPhone 13 } { platform:iOS Simulator, id:52488849-7353-41A8-B92B-B17CDE30ABAA, OS:15.0, name:iPhone 13 Pro } { platform:iOS Simulator, id:76A3F8D2-F14B-447A-B9EB-E4D68AC14C71, OS:15.0, name:iPhone 13 Pro Max } { platform:iOS Simulator, id:76AE8EA4-E2C7-4255-A72F-293F50283AC0, OS:15.0, name:iPhone 13 mini } { platform:iOS Simulator, id:950D0DF1-6ECD-4E1C-849A-F4F70707BE33, OS:15.0, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id:433C5A3D-2EF8-403C-9D94-29B28473632D, OS:15.0, name:iPod touch (7th generation) } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-000829E00262001E } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } BUILD FAILED Xcode's output: ↳ /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:91:26: error: declaration of 'MLKTextRecognizedLanguage' must be imported from module 'MLKitTextRecognitionCommon.MLKTextRecognizedLanguage' before it is required languages:(NSArray<MLKTextRecognizedLanguage > )languages ^ In module 'MLKitTextRecognition' imported from /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:3: In module 'MLKitTextRecognitionCommon' imported from /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognition/Frameworks/MLKitTextRecognition.framework/Headers/MLKTextRecognizer+Latin.h:4: /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework/Headers/MLKTextRecognizedLanguage.h:7:12: note: declaration here is not visible @interface MLKTextRecognizedLanguage : NSObject ^ /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:28:41: warning: 'textRecognizer' is deprecated: Please use
textRecognizer(options:)
instead. [-Wdeprecated-declarations] textRecognizer = [MLKTextRecognizer textRecognizer]; ^ In module 'MLKitTextRecognition' imported from /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:3: /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognition/Frameworks/MLKitTextRecognition.framework/Headers/MLKTextRecognizer+Latin.h:21:5: note: 'textRecognizer' has been explicitly marked deprecated here __deprecated_msg("Please usetextRecognizer(options:)
instead."); ^ In module 'UIKit' imported from /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/Target Support Files/google_ml_kit/google_ml_kit-prefix.pch:2: In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8: In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/usr/include/sys/cdefs.h:208:48: note: expanded from macro '__deprecated_msg'define deprecated_msg(_msg) attribute((deprecated__(_msg)))
/Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:40:42: error: definition of 'MLKText' must be imported from module 'MLKitTextRecognitionCommon.MLKText' before it is required textResult[@"text"] = visionText.text; ^ In module 'MLKitTextRecognition' imported from /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:3: In module 'MLKitTextRecognitionCommon' imported from /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognition/Frameworks/MLKitTextRecognition.framework/Headers/MLKTextRecognizer+Latin.h:4: /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework/Headers/MLKText.h:9:12: note: definition here is not reachable @interface MLKText : NSObject ^ /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:47:33: error: definition of 'MLKTextBlock' must be imported from module 'MLKitTextRecognitionCommon.MLKTextBlock' before it is required cornerPoints:block.cornerPoints ^ In module 'MLKitTextRecognition' imported from /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:3: In module 'MLKitTextRecognitionCommon' imported from /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognition/Frameworks/MLKitTextRecognition.framework/Headers/MLKTextRecognizer+Latin.h:4: /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework/Headers/MLKTextBlock.h:11:12: note: definition here is not reachable @interface MLKTextBlock : NSObject ^ /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:57:36: error: definition of 'MLKTextLine' must be imported from module 'MLKitTextRecognitionCommon.MLKTextLine' before it is required cornerPoints:line.cornerPoints ^ In module 'MLKitTextRecognition' imported from /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:3: In module 'MLKitTextRecognitionCommon' imported from /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognition/Frameworks/MLKitTextRecognition.framework/Headers/MLKTextRecognizer+Latin.h:4: /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework/Headers/MLKTextLine.h:11:12: note: definition here is not reachable @interface MLKTextLine : NSObject ^ /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:67:43: error: definition of 'MLKTextElement' must be imported from module 'MLKitTextRecognitionCommon.MLKTextElement' before it is required cornerPoints:element.cornerPoints ^ In module 'MLKitTextRecognition' imported from /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/TextRecognizer.m:3: In module 'MLKitTextRecognitionCommon' imported from /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognition/Frameworks/MLKitTextRecognition.framework/Headers/MLKTextRecognizer+Latin.h:4: /Users/jt/Downloads/bye-bye-localization-main 2/example/ios/Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework/Headers/MLKTextElement.h:13:12: note: definition here is not reachable @interface MLKTextElement : NSObject ^ 1 warning and 5 errors generated. /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/ImageLabeler.m:79:15: warning: unused variable 'modelType' [-Wunused-variable] NSString modelType = optionsData[@"customModel"]; ^ /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/vision/ImageLabeler.m:80:15: warning: unused variable 'path' [-Wunused-variable] NSString path = optionsData[@"path"]; ^ 2 warnings generated. In file included from /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/MLKVisionImage+FlutterPlugin.m:1: /Users/jt/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_ml_kit-0.6.0/ios/Classes/GoogleMlKitPlugin.h:38:22: warning: unused function 'getFlutterError' [-Wunused-function] static FlutterError getFlutterError(NSError error) { ^ 1 warning generated. note: Using new build system note: Planning note: Build preparation complete note: Building targets in parallel note: Removed stale file '/Users/jt/Library/Developer/Xcode/DerivedData/Runner-hhcjahvdjswbtgdwozavnfptxlia/Build/Products/Debug-iphonesimulator/Runner.app' note: Removed stale file '/Users/jt/Library/Developer/Xcode/DerivedData/Runner-hhcjahvdjswbtgdwozavnfptxlia/Build/Products/Debug-iphonesimulator/Pods_Runner.framework' Could not build the application for the simulator. Error launching application on iPhone 13. Exited (sigterm)