Closed Shawn-sudo closed 1 year ago
Hi,
It is not clear if you are using pod install
for flutter run
. Could you do a flutter clean
and then flutter run
and check if it is working.
Hi, the same for me. I tried to update CocoaPods, update the Xcode command line tools.
I did flutter clean
, nothing works. And if I remove the dependency from the project, the run works fine.
(My Mac is up to date with Ventura)
@blagoev Hi, I forgot to mention about it in the first comment, but I ran flutter clean
, flutter pub run realm generate --clean
too. It didn't work tho 😿
Hi @Shawn-sudo , It is not clear from your post what exactly you have in your project and what commands you have run. Could you please let us know whether you have the same problem with a new project? Is it working if you run the following commands?
If you have an existing app probably you can try to clear ios
folder and to recreate it:
It is important the Realm package to be added before to init the Podfile
.
Looking forward to your answer.
Hi @desistefanova It didn't work ;/
I ran the app before adding realm: ^0.7.0+rc
to pubspec.yaml
, and it's currently displayed on the iOS simulator.
I added a new debug instance with realm: ^0.7.0+rc
added, and it failed.
@Shawn-sudo & @Pred05
What version of pod are you using (run pod --version
) and what is the output of flutter doctor -v
on your machines?
Pod: 1.11.3
My macbook is M1 macbook (fyi)
@Shawn-sudo As I expected you are running Ventura.
I cannot currently test with macOS 13.0.1 22A400 on darwin-arm, as MongoDB does not allow me to upgrade yet. Historically it has caused a lot of grief to update to a new macOS major versions, so they are playing it safe.
So, I'm going blind here. Anyway, could you try:
# Uninstall the local cocoapods gem
sudo gem uninstall cocoapods
# Reinstall cocoapods via Homebrew
brew install cocoapods
@Shawn-sudo I setup a Mac Mini M1 with Ventura, and installing cocoapods via gem, and I have no issue.
The reason I suggested trying to install cocoapods via brew was this Stackoverflow thread: https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1?page=1&tab=scoredesc#tab-top
Hi @nielsenko,
On my side I tried, and it doesn't work, and I'm able to build and run flutter app without the realm dependencies. It seems really linked to the transitive dependency "realm_dart".
I just tried with the release candidate 0.8.0 and still have the issue :
[!] Unable to install vendored xcframework realm_dart
for Pod realm
, because it contains both static and dynamic frameworks.
@Pred05 Have you tried other plugin packages?
Also, what is the output of flutter doctor -v
and which pod
on your machine?
@nielsenko Ok fixed 👍
With flutter doctor -v
I saw my version of CocoaPods to 1.11.2 but I made the update to 1.11.3 with brew install
few days ago.
I just remove the old version and the symlink, linked the new one and now pod install works! Sorry for wasting your time...
For your info all the other packages work (I am migrating an existing app from sqflite
to realm
for the built in data synchronization)
Thanks for help.
Hi @Pred05, I'm still suffering :/ Could you share with me how you "removed the old version and the symlink" and "linked the new one"?
@Pred05 Nvm I fixed it..
I'm kinda confused though. I reinstalled CocoaPods using homebrew and ran arch -x86_64 pod update
in the ios folder, and now it works somehow.
Apparently, it's a bug in CocoaPods (https://github.com/CocoaPods/CocoaPods/issues/10332).
Now that you both are up and running again (@Shawn-sudo + @Pred05) I will close this issue.
When will support m1 simulator...?
Real device is fine but m1 simulator crash at
Realm(Configuration.local([]));
@felix0324324 We do support that. Could I ask you to open a separate issue, and give some more context?
What happened?
I tried to run
pod install
on my Flutter project withrealm: ^0.7.0+rc
, but it failed with an error message:Removing
realm: ^0.7.0+rc
frompubspec.yaml
, I can start my project well as expected.Based on my observation, I'm guessing that it's a bug of this package, but I'm not sure.
Repro steps
realm: ^0.7.0+rc
topubspec.yaml
dependencies.pod install
in its process)Version
Flutter 3.3.8 • channel stable • https://github.com/flutter/flutter.git Framework • revision 52b3dc25f6 (2 days ago) • 2022-11-09 12:09:26 +0800 Engine • revision 857bd6b74c Tools • Dart 2.18.4 • DevTools 2.15.0
What Realm SDK flavor are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
iOS 16.0
Code snippets
pubspec.yaml
Stacktrace of the exception/crash you're getting
No response
Relevant log output
I'm using
arch -x86_64 pod install
instead ofpod install
cause I'm using M1 Macbook (https://github.com/CocoaPods/CocoaPods/issues/10220). It would return the same result ofpod install
on x86_64 based (intel) Macs.