supabase-flutter icon indicating copy to clipboard operation
supabase-flutter copied to clipboard

Module 'app_links' not found

Open muezz opened this issue 1 year ago • 7 comments

When I try to run my app from XCode, the build fails with the error Module 'app_links' not found. I need to get past this because I want to run the app on a physical device. I have tried:

  • flutter clean && flutter pub get
  • Delete ios/Pods, ios/PodFile.lock and even ios/Flutter
  • pod repo update
  • pod install

I have also ensure that both supabase and cocoapods are the latest version.

muezz avatar Nov 03 '24 07:11 muezz

Exact same issue here. I wonder if its because I'm on iOS 18.3 beta. I really don't want to downgrade

MicahDoes avatar Nov 15 '24 21:11 MicahDoes

It's the same for me, anyone found the way to fix that?

thiagoneves1 avatar Nov 25 '24 12:11 thiagoneves1

What Flutter version are you running?

DanMossa avatar Feb 17 '25 15:02 DanMossa

When opening your project with XCode, make sure to open xcworkspace instead of xcproject.

bdlukaa avatar Feb 17 '25 16:02 bdlukaa

@DanMossa Its been a few months since I last looked into it but I am fairly certain that it was the latest version at that time. And I am also fairly certain that this problem still exists, but it only comes up if you try to build from XCode.

@bdlukaa I tried and had an issue in both.

muezz avatar Feb 17 '25 17:02 muezz

I fixed it. If I remember correctly, to fix the issue I had to

1-completely delete my iOS file on my flutter project and reinitialize. (I wish I remembered the exact commands) 2-go in manually on new Runner.xcworkspace and set the build target of all pods to the minimum iOS deployment target of the app.

I wish I were a bigger help. It took a lot of ChatGPT help (with search on for up-to-date references) and a specific stack overflow thread. I'll link it if I find it again.

MicahDoes avatar Feb 17 '25 17:02 MicahDoes

@MicahYea I thought about doing that but chose not in the end because it was an already deployed project with tons of native configurations for things like permissions, notifications, etc.

muezz avatar Feb 17 '25 18:02 muezz