Skip to content

Instantly share code, notes, and snippets.

@antonyalkmim
Created October 10, 2022 12:11
Show Gist options
  • Save antonyalkmim/3af203440d283b7ac90328ef9abc70a2 to your computer and use it in GitHub Desktop.
Save antonyalkmim/3af203440d283b7ac90328ef9abc70a2 to your computer and use it in GitHub Desktop.
Make MLKit simulator-arm64
# mkdir -p iphoneos
# mkdir -p iphonesimulator
cp -R MLImage.framework/ iphoneos/MLImage.framework
cp -R MLImage.framework/ iphonesimulator/MLImage.framework
xcrun lipo -remove i386 -remove x86_64 -remove armv7 ./iphoneos/MLImage.framework/MLImage -o ./iphoneos/MLImage.framework/MLImage
xcrun lipo -i iphoneos/MLImage.framework/MLImage
xcrun lipo -remove i386 -remove arm64 -remove armv7 ./iphonesimulator/MLImage.framework/MLImage -o ./iphonesimulator/MLImage.framework/MLImage
xcrun lipo -i iphonesimulator/MLImage.framework/MLImage
xcodebuild -create-xcframework -framework iphoneos/MLImage.framework/ -framework iphonesimulator/MLImage.framework/ -output "MLImage.xcframework"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment