drift icon indicating copy to clipboard operation
drift copied to clipboard

cannot run on ios with sqlite3_flutter_libs: ^0.5.13

Open cruvie opened this issue 3 years ago • 7 comments

Describe the bug after adding the sqlite3_flutter_libs , cannot run on ios image run in Xcode image run pod install image

cruvie avatar Apr 05 '23 08:04 cruvie

Have you tried running on a Physical device?

Harishwarrior avatar Apr 05 '23 13:04 Harishwarrior

Have you tried running on a Physical device?

not yet, but it works fine while removing the sqlite3_flutter_libs pkg

after further testing , only sqlite3_flutter_libs causes the problem, I will update the issue's title

cruvie avatar Apr 05 '23 14:04 cruvie

Does flutter clean help at all? I've not seen this error before, and I don't see how adding this dependency could cause that linker error. This StackOverflow question seems similar too, do the suggested answers help?

simolus3 avatar Apr 05 '23 21:04 simolus3

I noticed that 0.5.13 raises the min iOS version to 15 - maybe that is related.

kuhnroyal avatar Apr 05 '23 23:04 kuhnroyal

I noticed that 0.5.13 raises the min iOS version to 15 - maybe that is related.

not for the reason , my ios version is 16.4

cruvie avatar Apr 06 '23 01:04 cruvie

Does flutter clean help at all? I've not seen this error before, and I don't see how adding this dependency could cause that linker error. This StackOverflow question seems similar too, do the suggested answers help?

thank u, it helps a lot , and here is my solution image

post_install do |installer|
  installer.generated_projects.each do |project|
        project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
             end
        end
 end
    installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

cruvie avatar Apr 06 '23 01:04 cruvie

I noticed that 0.5.13 raises the min iOS version to 15 - maybe that is related.

That wasn't intentional, and I don't really understand how that could have happened. In the pod, we still have the original platform constraint and the spec for sqlite3, our only external dependency, doesn't specify a min version either.

simolus3 avatar Apr 08 '23 20:04 simolus3

No activity in over a year & seems to be resolved, closing

dickermoshe avatar Aug 16 '24 06:08 dickermoshe