logo
down
shadow

Updated to Xcode 10.1 on Mojave and now my app always asks to use the microphone


Updated to Xcode 10.1 on Mojave and now my app always asks to use the microphone

By : Han
Date : November 22 2020, 07:01 PM
should help you out I also got this problem recently on an audiostreaming app that has been working ok for years without the microphone access popup. It happens when you try to get the AVAudioSession.
Update: Seems like Xcode 10.2 (beta 1) solves this by only asking the first time and then remembering your answer.
code :


Share : facebook icon twitter icon
Developing same UI for 3.5, 4.0 (updated 4.7 and 5.5) inches screens in Xcode 5.0.1 (updated xcode 6), no landscape, no

Developing same UI for 3.5, 4.0 (updated 4.7 and 5.5) inches screens in Xcode 5.0.1 (updated xcode 6), no landscape, no


By : JavaDude
Date : March 29 2020, 07:55 AM
hope this fix your issue I have developed app considering 3.5 inch with .xib files and not storyboard. I am unable to find any tutorial or guide which will help me in designing app similar for all screens. I am using Xcode 5.0.1 I am developing only plain app with no auto layout and only for iOS 6 and iOS 7 (IPhone). , If you want check it Programmatically :
FOR Swift
code :
extension UIDevice {

 var iPhoneX: Bool {
    return UIScreen.main.nativeBounds.height == 2436
 }
 var iPhone: Bool {
    return UIDevice.current.userInterfaceIdiom == .phone
 }
 enum ScreenType: String {
    case iPhone4_4S = "iPhone 4 or iPhone 4S"
    case iPhones_5_5s_5c_SE = "iPhone 5, iPhone 5s, iPhone 5c or iPhone SE"
    case iPhones_6_6s_7_8 = "iPhone 6, iPhone 6S, iPhone 7 or iPhone 8"
    case iPhones_6Plus_6sPlus_7Plus_8Plus = "iPhone 6 Plus, iPhone 6S Plus, iPhone 7 Plus or iPhone 8 Plus"
    case iPhoneXR = "iPhone XR"
    case iPhoneX_iPhoneXS = "iPhone X,iPhoneXS"
    case iPhoneXSMax = "iPhoneXS Max"
    case unknown
 }

 var screenType: ScreenType {
    switch UIScreen.main.nativeBounds.height {
    case 960:
        return .iPhone4_4S
    case 1136:
        return .iPhones_5_5s_5c_SE
    case 1334:
        return .iPhones_6_6s_7_8
    case 1792:
        return .iPhoneXR
    case 1920, 2208:
        return .iPhones_6Plus_6sPlus_7Plus_8Plus
    case 2436:
        return .iPhoneX_iPhoneXS
    case 2688:
        return .iPhoneXSMax
    default:
        return .unknown
    }
  }
}
print("screenType:", UIDevice.current.screenType.rawValue)
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
    if ([[UIScreen mainScreen] scale] == 2.0) {
       if([UIScreen mainScreen].bounds.size.height == 568){
          // iPhone retina-4 inch
        } else{
         // iPhone retina-3.5 inch
        }
}
else {
    // not retina display
}
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
      if ([[UIScreen mainScreen] scale] == 2.0) {

           if([UIScreen mainScreen].bounds.size.height == 667){
             // iPhone retina-4.7 inch(iPhone 6)
           } 
           else if([UIScreen mainScreen].bounds.size.height == 568){
             // iPhone retina-4 inch(iPhone 5 or 5s)
           } 
           else{
            // iPhone retina-3.5 inch(iPhone 4s)
          }
      }
      else if ([[UIScreen mainScreen] scale] == 3.0)
      {
           //if you want to detect the iPhone 6+ only 
           if([UIScreen mainScreen].bounds.size.height == 736.0){
              //iPhone retina-5.5 inch screen(iPhone 6 plus)
           }
           //iPhone retina-5.5 inch screen(iPhone 6 plus)
      }
 }
#define IS_IPHONE_5 (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 568.0)
#define IS_IPHONE_6 (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 667.0)
#define IS_IPHONE_6_PLUS (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 736.0)
iOS App asks for microphone access, even for kAudioSessionCategory_MediaPlayback

iOS App asks for microphone access, even for kAudioSessionCategory_MediaPlayback


By : Fellipe Férrer
Date : March 29 2020, 07:55 AM
it fixes the issue Complete credit goes to DMT4u over at Github for this, but yes, his/her solution worked for me! Comment out the following lines:
code :
UInt32 one = 1;
CheckError( AudioUnitSetProperty(inputUnit,
kAudioOutputUnitPropertyEnableIO,
kAudioUnitScope_Input,
kInputBus,
&one,
sizeof(one)), "Couldn't enable IO on the input scope of output unit");
Xcode 9.2 on macOS 10.14 Mojave

Xcode 9.2 on macOS 10.14 Mojave


By : user1845088
Date : March 29 2020, 07:55 AM
may help you . I confirm, Xcode 9.2 works well on macOS Mojave. Hope this helps someone.
Updated to Xcode 10.1, now my app is asking for microphone permission?

Updated to Xcode 10.1, now my app is asking for microphone permission?


By : Pooja
Date : March 29 2020, 07:55 AM
This might help you I've the same problem. Have you implemented the siri shortcuts?
edit: from apple:
Cannot Access Microphone on Mac Mojave using pyaudio

Cannot Access Microphone on Mac Mojave using pyaudio


By : Mindaugas Vasiliausk
Date : October 02 2020, 02:00 PM
To fix the issue you can do Met same problem on Mac Mojave. Solved by running the python script with 'Terminal', it will ask the access for microphone.
Related Posts Related Posts :
  • HTML5 Video Volume
  • Make page flip animation on iPhone (like magazine)
  • unrecognized selector sent to class coming from Facebook SDK
  • How to use AutoLayout with transform
  • How to detect changes on UIPickerView?
  • Login with Linkedin SDK iOS
  • What's the best way for an iOS app to retrieve its URL scheme?
  • Display a number on the screen Phone SDK
  • Is there any way not to get CPU-throttled in the background?
  • Save image to the File Directory
  • iOS - UITableView inside a UIView
  • How to change the speed of video playback
  • UISearch bar case insensitive?
  • Import csv data (SDK iphone)
  • Apple push notifications and Emoji characters
  • Automation testing for iPhone
  • Is it possible to access the iPhone "Favorite" numbers?
  • I get a nil when I use self in block.But self does't free
  • UIButton in tableFooterView not registering touches
  • How to get Push-Notification on iOS working with Firebase and Flutter?
  • How to send long data (255 Bytes in one packet ) in ios using BLE
  • Cannot install React subspec in CocoaPods
  • Code signing .framework failed , included framework manually
  • Swift UserDefaults optional Int
  • What is the difference between depth and arrayLength in MTLTexture of iOS Metal
  • MFA for MAC Logon (Second factor authentication)
  • How to minimise(Memory leak) the app memory in ARKit Scene Click on back button?
  • Getting an image imbedded in an NSAttributedString (via NSTextAttachment) to be treated as a single character, so that i
  • How to create UIButton Pulse animation using Swift?
  • using swift can we airplay photos on Apple TV programmatically?
  • Where to find the shared secret for iOS App Store receipt validation?
  • AVRoutePickerView Won't Change Color when Airplay is Active
  • What sections of Apple Health app are available via the x-apple-health:// URL scheme?
  • Flutter error on pod install: CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"
  • RegEx for matching specific URLs with lowercase and dashes
  • How to build and use C library in iOS project?
  • UICollectionView cell spacing for both portrait and landscape
  • How to capture cell data from UITableView with multiple cell prototypes?
  • Swift run multiple block of codes asynchronously in background thread in order
  • how do I trigger the click event on AVRoutePickerView using swift
  • Animate UIImageView start from rounded topRight corner and end with Rectangle
  • Xamarin.iOS binding for a swift library
  • Converting JSON String to Dictionary<String, Any> serializes Boolean as Int
  • How to keep tableFooterView always on bottom of UITableView
  • Why not getting response from one URL?
  • Why might my iOS app be stuck on splash screen for Apple reviewers but not for me?
  • Installing .ipa over the air does not open
  • How to Add Business Logic in CollectionView?
  • is there a shortcut to know, when I'm running my app, which view controller am I in?
  • error: Unable to load contents of file list: '/Target Support Files/Pods-xx/Pods-xx-frameworks-Debug-input-files.xcfilel
  • Encode and Decode a Class in ios
  • How to get device token using firebase?
  • Removing duplicate objects from fetch based on object parameter UPDATED Swift
  • Class variable assignment is not working inside a Alamofire request block
  • Is it possible to do Augmented Faces on iOS with ARCore?
  • How to differentiate between event saved through my app and event saved by using calendar app using EventKit?
  • Pushing Firebase events To a Table View
  • What happens to local files on iOS when the app is updated?
  • How to make a variable accessible from a different swift file?
  • I want to generate QR Code encrypted in such a way that it is only read by own QRScanner app
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk