Advertisement
OmarYehiaDev

Error No.4

Apr 5th, 2020
925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 3.73 KB | None | 0 0
  1.     ** BUILD FAILED **
  2.  
  3.  
  4. Xcode's output:
  5.     /Users/builder/programs/flutter/.pub-cache/git/speech_recognition-82ccef031b7549d5fa71aae4e458a24303d77004/ios/Classes/SwiftSpeechRecognitionPlugin.swift:111:58: error: type 'AVAudioSession.Category' (aka 'NSString') has no member 'record'
  6.         try audioSession.setCategory(AVAudioSession.Category.record, mode: .default)
  7.                                      ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
  8.     /Users/builder/programs/flutter/.pub-cache/git/speech_recognition-82ccef031b7549d5fa71aae4e458a24303d77004/ios/Classes/SwiftSpeechRecognitionPlugin.swift:111:73: error: type 'String' has no member 'default'
  9.         try audioSession.setCategory(AVAudioSession.Category.record, mode: .default)
  10.                                                                            ~^~~~~~~
  11.     /Users/builder/programs/flutter/.pub-cache/git/speech_recognition-82ccef031b7549d5fa71aae4e458a24303d77004/ios/Classes/SwiftSpeechRecognitionPlugin.swift:112:50: error: type 'AVAudioSession.Mode' (aka 'NSString') has no member 'measurement'
  12.         try audioSession.setMode(AVAudioSession.Mode.measurement)
  13.                                  ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
  14.     /Users/builder/programs/flutter/.pub-cache/git/speech_recognition-82ccef031b7549d5fa71aae4e458a24303d77004/ios/Classes/SwiftSpeechRecognitionPlugin.swift:113:22: error: 'setActive(_:options:)' has been renamed to 'setActive(_:with:)'
  15.         try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
  16.                          ^~~~~~~~~       ~~~~~~~
  17.                          setActive       with
  18.     AVFoundation.AVAudioSession:14:15: note: 'setActive(_:options:)' was introduced in Swift 4.2
  19.         open func setActive(_ active: Bool, options: AVAudioSessionSetActiveOptions = []) throws
  20.                   ^
  21.     /Users/builder/programs/flutter/.pub-cache/git/speech_recognition-82ccef031b7549d5fa71aae4e458a24303d77004/ios/Classes/SwiftSpeechRecognitionPlugin.swift:186:15: error: value of type 'AVAudioSession.Category' (aka 'NSString') has no member 'rawValue'
  22.             return input.rawValue
  23.                    ~~~~~ ^~~~~~~~
  24.     Command CompileSwift failed with a nonzero exit code
  25.     note: Using new build system
  26.     note: Building targets in parallel
  27.     note: Planning build
  28.     note: Constructing build description
  29.  
  30. ════════════════════════════════════════════════════════════════════════════════
  31. Building a deployable iOS app requires a selected Development Team with a
  32. Provisioning Profile. Please ensure that a Development Team is selected by:
  33.   1- Open the Flutter project's Xcode target with
  34.        open ios/Runner.xcworkspace
  35.   2- Select the 'Runner' project in the navigator then the 'Runner' target
  36.      in the project settings
  37.   3- In the 'General' tab, make sure a 'Development Team' is selected.
  38.      You may need to:
  39.          - Log in with your Apple ID in Xcode first
  40.          - Ensure you have a valid unique Bundle ID
  41.          - Register your device with your Apple Developer Account
  42.          - Let Xcode automatically provision a profile for your app
  43.   4- Build or run your project again
  44.  
  45. For more information, please visit:
  46.   https://flutter.dev/setup/#deploy-to-ios-devices
  47.  
  48. Or run on an iOS simulator without code signing
  49. ════════════════════════════════════════════════════════════════════════════════
  50. Encountered error while building for device.
  51.  
  52.  
  53.  
  54.  
  55. Build failed :|
  56. Failed to build for iOS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement