Created
April 20, 2022 12:19
-
-
Save leemaguire/02873487e24541e4ea7aa53c5702bd0a to your computer and use it in GitHub Desktop.
Remove naming collisions in swiftinterface. Run this script in the root of the RealmSwift.xcframework folder
This file contains hidden or 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
#!/bin/bash | |
set -o pipefail | |
set -e | |
find . -name "*.swiftinterface" -exec sed -i -e 's/Realm\.//g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/import Private/import Realm.Private/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/RealmSwift.Configuration/RealmSwift.Realm.Configuration/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/extension Configuration/extension Realm.Configuration/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/RealmSwift.Error/RealmSwift.Realm.Error/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/extension Error/extension Realm.Error/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/RealmSwift.AsyncOpenTask/RealmSwift.Realm.AsyncOpenTask/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/RealmSwift.UpdatePolicy/RealmSwift.Realm.UpdatePolicy/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/RealmSwift.Notification /RealmSwift.Realm.Notification /g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/RealmSwift.Notification,/RealmSwift.Realm.Notification,/g' {} \; | |
find . -name "*.swiftinterface" -exec sed -i -e 's/τ_1_0/V/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment