Xcode not showing microphone access alert for iphonex simulator - objective-c

In Xcode, Before every time I got alert to access microphone.
Someone suggested below terminal command to avoid that
tccutil reset Microphone
After execution of this command, microphone usage alert not coming…so in iPhoneX simulator every time crashing in random place.
How to get above microphone usage alert every time like before? If this alert come then not crash…
In system settings now Xcode not visible under microphone
How to get microphone usage alert every time like before ? For iphone5 simulator this alert coming sometime..if alert come then no crash..if not come then crash in random place...now in same xcode, microphone alert not coming for iphonex simulator....how to get it everytime ?

Related

iOS 8.3 in app purchase

So after updating to iOS 8.3 and xCode 6.3, I'm getting a bug when trying to do an in app purchase. When that Sign In screen pops up, it seems that my game freezes but it doesn't crash. When I click on cancel and that message goes away, none of my buttons work. The frame rate and node count at the bottom of the screen is also frozen and it just sits there until I quit the game.
My in app purchase works fine with iOS 8.2 and lower, but after updating to 8.3 this problem happens. Does anyone know what is going on here?

iBeacon detection wake up iPhone from sleep mode with UILocalNotification

My application run on iOS 8 and when it go into background it need to detect and show a notification to the user when iBeacon detected (with UILocalNotification).
All works fine but when the iPhone is sleep/locked the Notification doesn't wake up the device.
How can I wake up the device when a notification come in?
Make sure the phone is detecting the beacon at all. Try adding a NSLog statement inside the didEnterRegion method or wherever you launch the notification. Then, start looking at the debug console while the phone screen is off and turn on the beacon. Do you get a debug line?
If you do not see the debug line, the issue is with detection, not with the notification. Note that it can take up to 15 minutes on an iPhone 4S to detect a beacon.
If this does not help, please post your code that sets up region monitoring and sends the notification. Also, please, describe how you are testing entering and exiting the region.

Background play stops when device has a passcode

I need help. After using Xcode 6, the background play will stop after playing for 10 seconds when my iPhone is locked. This happens when the device has a passcode on iOS 7 and above. And I use the AVAudioPlayer. Does anyone know how to resolve this?
It works well if the device doesn't have a passcode.

Always having to sign into Apple Game Center in simulator in iOS7?

I'm working on a game which requires the user to have an Apple Game Center account. Prior to XCode 5/iOS7 I would run the game in the simulator, if the player wasn't signed into GC it would show the dialogue, if they were they got a game center signed in msg, and that was that, didn't have to sign into GC again.
I upgraded to XCode5/iOS7 last night, and now each time I run a simulator for the first time, or when I switch to another simulator, it asks to be signed into GC again, any ideas why this is?

How do I play an alarm sound and present a custom view instead of just a notification?

I'm working on an alarm clock application for iOS 4.x. The other alarm clock applications that I've seen are able to present the user with something other than a local notification (i.e., a custom view) and are able to play a sound file. I've been looking into how that's done and have only found this solution:
Play sound with screen turned off / don't let iPhone go to sleep
Is there another approach or is this the best practice?
When your app is not visible, you can't display anything. The silent sound workaround is a cool trick but when a user presses your home button, your app is not visible (and might get destroyed under certain conditions) -> therefore you can't display anything.
So if you tell your user to use your alarm clock by firing it up and then press the sleep button it will work - you can display anything on your screen after the user unlocks the iphone again.
Needless to say that playing sound (even silent sound files) drains the battery so your user might be disappointed if he's not woken up because his iphone has run out of battery.
And yes, there is best practice: Local Notifications! Beginning with iOS 5 it will display your apps icon next to the notification...