Andrew Fletcher published: 28 October 2020 1 minute read
Updating Realm and RealmSwift from 5.5.x to 10.0.0 brought in the following error
RealmSwift 10.1: framework not found realm-sync
The greatest clue I came across to solving this issue was on the Realm GitHub issues page for realm-sync error. However, updating Cocopods wasn't the only step required to correct this issue. The steps I took were:
- Update Cocopods to v1.10.0 using
sudo gem install cocoapods
- Deintegrate all of your pods
pod deintegrate
- Install the pods from the podfile
pod install
- Quit Xcode and restart
Following all of these steps corrected the framework not found issue. I did attempt steps one and four only. However, once I completed all four steps, then the error was removed.
Related articles
Andrew Fletcher
•
17 Dec 2023
Ignoring ffi-1.16.3 because its extensions are not built. Try: gem pristine ffi --version 1.16.3
The error you're encountering indicates an issue with the ffi gem during the CocoaPods update. The error message suggests trying to run the gem pristine command to fix it.Using terminal - run the following command:gem pristine ffi --version 1.16.3This command will attempt to restore the ffi gem to...
Andrew Fletcher
•
16 Apr 2023
Xcode: Non-constant range: argument must be an integer literal error
Creating a foreach loop such as
var maxDigits: Int = 5
private var pinDots: some View {
HStack {
ForEach(0..<maxDigits) { index in
ZStack {
Image(systemName: self.getImageName(at: index))
.font(.system(size: 50.0, weight: .thin,...
Andrew Fletcher
•
12 Aug 2022
Using SwiftUI URLComponent to change a URL's scheme
The challenge I was facing, I had written a script to scan barcodes and use Google book API to view the contents. However, a snippet of the JSON response
{
"contentVersion": "0.2.0.0.preview.0",
"panelizationSummary": {
"containsEpubBubbles": false,
...