kfiross / flutter_mongodb_realm

Unofficial Flutter plugin for using MongoDB Realm services on Android, iOS and web.
Apache License 2.0
41 stars 17 forks source link

flutter_mongo_stitch: ^0.8.0+1 i keep getting different errors #12

Closed Atteprojects closed 4 years ago

Atteprojects commented 4 years ago

Hello, first of all, thank you for working on this package, very useful. it is my first time using it and my app keeps crushing before it even starts.

this is the debug output, the latest one at least.

Launching lib/main.dart on iPhone 11 in debug mode... Running pod install... 1.7s CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate UsingARCHSsetting to build architectures of targetPods-Runner`: (``) Finding Podfile changes A flutter_mongo_stitch A flutter_mongo_stitch_web A streams_channel

kfiross commented 4 years ago

Hi, I'm really glad to hear you are using this plugin :) If I get it right, you have this bug on ios.. I'll try my best to fix this issue as soon as possible.

Atteprojects commented 4 years ago

Yes, I am getting this error on ios, but i am getting a different error on Android and i will post that soon. Thank you for replying so quick.

kfiross commented 4 years ago

Apparently, The problem caused because this plugin include also the web plugin too (as endorsed plugin). Web support is officially available from version 0.8.0, so I believe you should at the moment to downgrade to version 0.7.*

kfiross commented 4 years ago

I fixed the issue in newest version, please check if works good for you.

Atteprojects commented 4 years ago

Thank you for your fast response again but when i downgraded to 0.7.0 i got this error Launching lib/main.dart on iPhone 11 in debug mode... Running pod install... 1.0s CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate UsingARCHSsetting to build architectures of targetPods-Runner`: (``) Finding Podfile changes A flutter_mongo_stitch A streams_channel

and my podfile looks like this, part of it at least

` platform :ios, '9.0'

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } ... `

I also tried the new version and I got the same error. BTW i was able to get the android version working last night, I just had to change the

minSdkVersion 16 to minSdkVersion 21

in the android/app/build.gradle file.

Atteprojects commented 4 years ago

I was able to fix the problem by changing platform :ios, '9.0' to platform :ios, '11.0'

in the pod file. ios/podfile.

Everything seems to be working fine now.

kfiross commented 4 years ago

I'm really happy to hear all problems solved BTW, i mentioned to use ios 11/ android api 21 in the README, but I think I'll make it more clear