Image not be picked in iOS simulator MacBook Pro m1 - flutter

hello every I have been working on my app with flutter language and one of the operation that the app do is allowing the user to use a camera to take a photo then I save this photo to the firebase . the problem is when I press on the button on the simulator to take a picture the app is crashed then this error appears to me in terminal (Lost connection to device.) and then a report is sending to apple from the device it self.
have you faced this problem ? please help me

Please make sure you add these permissions
NSPhotoLibraryUsageDescription, NSMicrophoneUsageDescription, and NSCameraUsageDescription to info.plist

Related

Getting Mulitiple App Icons on ios7 device

Im getting a strange bug on ios7 (iPhone5 device). I installed iPhone app using xcode5 on ios7
my problem is whenever I install my app on the device, I'm getting my app icons multiple
times with same name, I also tried for different apps through my system. I'm getting the same problem, even duplicate icon image not deleting from my device.
Any help will be appreciated.
I also have similar issue. the installation icon with a "download circle" is left behind. I have a workaround to delete this extra icon. Try to install the app again and when device is downloading the app, delete the icon!
I also observed that when I upload the same ipa on testflight, or use itune directly, it work without leaving another icon behind.
Any help?
I had a similar problem when downloading the app from server. The issue occurs when there is a conflict with the bundle identifier in your info.plist in your app bundle and the bundle identifier in the plist file on the server from which you download your ipa. If both the bundle identifier are of exact match, you will not run into this issue.
Have you made sure all the app icon dimensions are correct? I don't know if that would help at all. Another thing you should try is loading the app onto another iPhone that isn't yours to see if it is on your Computers side or just your phones problem.

Accessing data from core data when in location background mode

I have a app that get launched in the background mode by location region service , I would like to then display a local notification but I need to access core-data to get info for the notification and to query weather it should show the notification. every thing works but the query wont return any data when in the background , If it is not possible to access core-data at that time is there any other way I can store my data so I can read it while running in the background.
I did get this sort of working I think it is more of a issue with xcode 4.2 which is giving me issues I could access the core data file from the background mode only if I run the app from xcode then after I quit running I must open the app on the phone or simulator by clicking the app icon not the run button in xcode then close the app then the next time a run the app on the phone or sim by clicking the app icon not the run button in xcode then the application will access the core-data database. but local notification now wont work on the simulator unless I run form xcode which will then stop core-data access. I guess Im stuck with not being able to build this app till xcode 4.2 is at standard of xcode 3 where I could just get things to work.
Thanks for the comments I think Ive sorted it out , I did not have icloud on my iphone as its older one and I've been testing on simulator and thats is why Ive had this issue so if any one else has this problem the way to fix it is to start and stop your app in the simulator first as when you stop the app by clicking stop in xcode after running it kill the app the wrong way here is the log "9/02/12 12:46:52 PM Application '*App Name**' exited abnormally with signal 9: Killed SpringBoard[5273]" which then stops the app from accessing core data while in background , Ill send apple a bug report but I dont know if its something they want to fix . PS grate Site helpful thanks to anyone who answers Questions :)

iOS Hiding Elements on Screenshot

I've extensively searched the web, and everything I've found suggests that I can use 'applicationDidEnterBackground' to detect that a screenshot is about to be taken, hide the relevant controls, and then show them again in 'applicationWillEnterForeground'.
Circumvent screenshot for iOS 4
Unfortunately, I can't seem to get this message to be sent to my app when I take a screenshot on the device. I've even created a brand new template app, and tried that, and they are still not sent.
The only thing I can think of is that I'm running iOS 5.0.1 on my device, and all of the web pages I've found have referred to iOS 4.
Can anyone verify they have it working on iOS 5, and if so, what do I need to do to get it working in my app?
Please help.
The srceenshot talked about in the thread you mentioned is the one used when app is send to the background when the user presses the home button.
It is the screen that the user will see when you start the app when it is already running.
You arre talking about the screenshot when the user is pressing the home and power button are pressed at the same time.
The screenshot with this methods (home + power button) can't be detected by my knowledge.

iPhone application reset

I have a strange problem with my iPhone app.
I use geolocation and push notification. Everything is ok, but I want to test from scratch on the iPhone (connected to xcode debugger)... and I can't re initialized the iPhone.
I explain: I remove the app from the iPhone, and after re-installing the app (with xcode or with iTunes), I launch the app, but iOS doesn't ask me to approve geolocation and push notification as it does the first time. In fact, it seems to 'remember' my choices.
As I need to debug this (Some users have problem on running app the first time), I'm blocked.
Thanks by advance for yours answers
There's a place in the Settings app to reset Location permissions.

IPhone App Submission Problem

I have finally gotten my first app to work properly and I'm attempting to send it to the App Store. In my Application Loader, I'm getting this error:
Info.plist does not contain a CFBundleResourceSpecification
I have read on the following SO question that this could be because I am Building on the simulator and then zipping up the app, and sending this instead of building on a proper device.
http://stackoverflow.com/questions/2180201/cant-upload-application-binary-to-the-app-store
However, when I provision a distribution profile, I can't select my IPod Touch under my devices when I have App Store selected. When I switch it to AdHoc I can select it, then I can Build it on the device perfectly, everything works. Has anybody had this issue before?
Any advice would help me here, Thanks!
An App Store build can't be run on a device using Xcode. It's only good for submission.