Command line switch do remove mlkit libs from simulator builds #84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello together,
since Xcode 26 even the older IOS emulators (till 17.5) now crash when MLKit libraries are linked to the binary. This update adds a comand line switch to disable mlkit libs from builds:
NSSkipMLKitFromIOSSimulator=1 ns debug ios --emulator
Note: all commands preparing/modifiying xcode projects need to be run with the environment variable in order to work. Additionally, when switching from simulator to device do not forget an ns clean.
I also removed the version pinning on the MLKit libraries. Background is, that GoogleMLKit is now on version 9. However, when pinning a subpackage of it to 8.x than the old GoogleMLKit 8 version gets added to the build instead. I have not found a different way to ensure GoogleMLKit 9 usage.
https://developers.google.com/ml-kit/release-notes?hl=de
Best regards,
Christoph