Created
October 10, 2022 12:11
-
-
Save antonyalkmim/3af203440d283b7ac90328ef9abc70a2 to your computer and use it in GitHub Desktop.
Make MLKit simulator-arm64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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