Directory not found, Build Failed when including MLKIT && Text Recognition
See original GitHub issuePackage.json:
{ "nativescript": { "id": "org.nativescript.businesscardscanner", "tns-android": { "version": "4.2.0" }, "tns-ios": { "version": "4.3.0-2018-09-19-01" } }, "description": "NativeScript Application", "license": "SEE LICENSE IN <your-license-filename>", "repository": "<fill-your-repository-here>", "dependencies": { "@angular/animations": "~6.1.0", "@angular/common": "~6.1.0", "@angular/compiler": "~6.1.0", "@angular/core": "~6.1.0", "@angular/forms": "~6.1.0", "@angular/http": "~6.1.0", "@angular/platform-browser": "~6.1.0", "@angular/platform-browser-dynamic": "~6.1.0", "@angular/router": "~6.1.0", "nativescript-angular": "~6.1.0", "nativescript-plugin-firebase": "^7.3.0", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.8", "rxjs": "~6.2.0", "tns-core-modules": "~4.2.1", "zone.js": "^0.8.26" }, "devDependencies": { "typescript": "~2.7.2", "nativescript-dev-typescript": "~0.7.0", "@nativescript/schematics": "~0.3.0" }, "readme": "NativeScript Application" }
firebase.nativescript.json:
{ "external_push_client_only": false, "using_ios": true, "using_android": false, "firestore": false, "realtimedb": false, "authentication": false, "remote_config": false, "performance_monitoring": false, "messaging": false, "crashlytics": false, "crash_reporting": false, "storage": false, "functions": false, "facebook_auth": false, "google_auth": false, "admob": false, "invites": false, "dynamic_links": true, "ml_kit": true, "ml_kit_text_recognition": true, "ml_kit_barcode_scanning": false, "ml_kit_face_detection": false, "ml_kit_image_labeling": false, "ml_kit_custom_model": false }
Error Message:
ld: warning: directory not found for option '-F/Users/jon/Library/Developer/Xcode/DerivedData/businesscardscanner-auiudsyhgxwaxfemneeqijnxhqcf/Build/Products/Debug-iphonesimulator/Protobuf' ld: warning: directory not found for option '-F/Users/jon/Library/Developer/Xcode/DerivedData/businesscardscanner-auiudsyhgxwaxfemneeqijnxhqcf/Build/Products/Debug-iphonesimulator/nanopb' Undefined symbols for architecture i386: "_fEqual", referenced from: -[FIRVisionPoint isEqual:] in FirebaseMLVision(FIRVisionPoint_4f04bc57476c98935c2a2df41948a031.o) "_OBJC_CLASS_$_FBMLx_GMVFaceInitializationOptions", referenced from: objc-class-ref in FirebaseMLVision(FIRVisionFaceDetectorOptions_aad8020cef277ef84e95fb1088aff2ba.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) ** BUILD FAILED **
– This issue does not let me build when MLKit is set to true. I am able to build just fine if I build with authentication for instance. This appears to only be related to MLKit. The project that I have been working on can be found here… https://github.com/jonathanRinciari/business-card-scanner.
– I tried pulling down the demo and also ran into a similar issue…? Not sure what could be causing this issue when specifically targeting MLKIt
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
About to release 7.4.0 which includes the latest Firebase iOS SDK and I’m quite positive the issue is fixed (it is for me).
Temporary solution from my side:
That will install latest firebase 5.11.0 && GoogleUtilities 5.3.4
pod install
(no pod repo update)platforms/ios/plugins-debug.xcconfig
andplatforms/ios/plugins/plugins-release.xcconfig
in line 10 (OTHER_LDFLAGS
) add-framework "QuartzCore"
in the endtns run ios
App has been successfully built and run on real device. Barcode scanner works.