Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
- [@nativescript/mlkit-selfie-segmentation](packages/mlkit-selfie-segmentation/README.md)
- [@nativescript/mlkit-text-recognition](packages/mlkit-text-recognition/README.md)

# How to run it with IOS simulator?

Since Xcode 26 also older IOS emulators (till 17.5) crash when MLKit libs are included in the binary. You can now
therefore control inclusion of the libs via a command line switch.

NSSkipMLKitFromIOSSimulator=1 ns prepare ios

# How to use?

This workspace manages the suite of plugins listed above.
Expand Down
1 change: 0 additions & 1 deletion migrations.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/mlkit-barcode-scanning/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/mlkit-barcode-scanning",
"version": "3.0.1",
"version": "3.0.2",
"description": "NativeScript MLKit Barcode Scanner module",
"main": "index",
"typings": "index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion packages/mlkit-barcode-scanning/platforms/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
platform :ios, '15.5.0'
pod 'GoogleMLKit/BarcodeScanning', '8.0.0'

if ENV.key?('NSSkipMLKitFromIOSSimulator')
puts '⏭️ Skipping GoogleMLKit/BarcodeScanning (simulator build)'
else
pod 'GoogleMLKit/BarcodeScanning'
end
2 changes: 1 addition & 1 deletion packages/mlkit-core/index.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ export function detectWithStillImage(image: any, options?: StillImageDetectionOp
} catch (e) {}
}
resolve(result);
}
},
);
});
}
2 changes: 1 addition & 1 deletion packages/mlkit-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/mlkit-core",
"version": "3.0.2",
"version": "3.0.3",
"description": "NativeScript MLKit Core",
"main": "index",
"typings": "index.d.ts",
Expand Down
Loading