-
Notifications
You must be signed in to change notification settings - Fork 463
Run on iOS #12
Comments
I also have the same issue. Its failing to run on ios. |
@GokulDharumar nothing yet. I believe the developers will resolve this issue as soon as possible. |
@edufolly thanks |
I've the same issue. |
I'm having the same issue. |
Make sure the below is placed in the runner/Info.plist file: iOS < key >NSCameraUsageDescription< /key > (Added spaces to key and string so it shows) Also check flutter doctor to make sure everything is installed correctly. |
Did you ever get this working? |
I did. Flutter upgrade. Remove Pods and Podfile and then rebuild. |
@rcagantas I'm quite new to this so could you please help me do that? It'd be great if you could show me exactly what commands you typed. Thanks. |
If I remember correctly, inside your project folder I may have created a new test project just to copy a new generated Podfile. I still get warnings but no more errors at least. |
The most common reason this happens is that flutter build does not run the |
@rcagantas @matthewtsmith Thanks for your responses. I ran flutter clean and flutter upgrade, but when I cd into ios and try run rm Podfile.lock or rm -r Pods it says "No such file or directory". Have I set something up wrong? EDIT: I ran Pod Install in my ios directory and then tried, but when I ran rm - r Pods it said "Directory not empty" a bunch of times. Should I just try plug in my phone and do flutter run or do I need to flutter build first? |
If that directory is not there it means that pod install definitely hasn't run. What is the output when you run a |
@matthewtsmith It seems okay now and I think, but when I run it in Xcode I get this error
even though this is dart... and I cannot find that setting anywhere. When I run flutter build it asks me to choose aot/apk/bundle/flx/ios, should I run ios? EDIT: I ran flutter build ios and it gave me the swift language version error again. |
@matthewtsmith Sorry for the spam. I just added a blank swift file to Pods and to Runner, and now it is showing SWIFT_VERSION in both of their Build Settings. In Runner it lets me pick 3.3, 4.1 or Unspecified, and in Pods it is set to 3.0 but it's an entry not a dropdown. I tried all combinations but it's still giving me the error. Any ideas? |
@matthewtsmith Okay... now it's working after I set the SWIFT_VERSION in simple_permissions too. However, now under simple_permissions I get Swift Compiler Errors:
|
Sounds like you are having issues with swift dependencies. For this reason, all the plugins I've created are ObjC because flutter's swift plugin support is still lacking. This falls outside the scope of this plugin. There is much discussion about this topic here. |
@matthewtsmith Can you please re-open this issue ? I have the same problem barcode_scan: 0.0.8 Doctor summary (to see all details, run flutter doctor -v): • No issues found! |
I have been stuck on this for a long time. The mistake was silly:
|
Thanks @marfnk — that solved it. |
in your podfile set the minimum ios version to 11 and run it on a device ios 11+ |
tried all solutions, but not working in iOS, anyone have the same issue? |
Thanks @marfnk , you saved me a lot of time :) |
Still not working please open the tread again ,Thankyou. |
cd ios this works for me. be careful "Xcode ." (space and dot) |
Hi,
when I try to run on iOS simulator, receive this error:
The text was updated successfully, but these errors were encountered: