-
-
Save kingnight/78c0ae046c3c2a2d1d594f898b7a1baf 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 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