Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ** BUILD FAILED **
- Xcode's output:
- ↳
- /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'
- try audioSession.setCategory(AVAudioSession.Category.record, mode: .default)
- ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
- /Users/builder/programs/flutter/.pub-cache/git/speech_recognition-82ccef031b7549d5fa71aae4e458a24303d77004/ios/Classes/SwiftSpeechRecognitionPlugin.swift:111:73: error: type 'String' has no member 'default'
- try audioSession.setCategory(AVAudioSession.Category.record, mode: .default)
- ~^~~~~~~
- /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'
- try audioSession.setMode(AVAudioSession.Mode.measurement)
- ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
- /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:)'
- try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
- ^~~~~~~~~ ~~~~~~~
- setActive with
- AVFoundation.AVAudioSession:14:15: note: 'setActive(_:options:)' was introduced in Swift 4.2
- open func setActive(_ active: Bool, options: AVAudioSessionSetActiveOptions = []) throws
- ^
- /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'
- return input.rawValue
- ~~~~~ ^~~~~~~~
- Command CompileSwift failed with a nonzero exit code
- note: Using new build system
- note: Building targets in parallel
- note: Planning build
- note: Constructing build description
- ════════════════════════════════════════════════════════════════════════════════
- Building a deployable iOS app requires a selected Development Team with a
- Provisioning Profile. Please ensure that a Development Team is selected by:
- 1- Open the Flutter project's Xcode target with
- open ios/Runner.xcworkspace
- 2- Select the 'Runner' project in the navigator then the 'Runner' target
- in the project settings
- 3- In the 'General' tab, make sure a 'Development Team' is selected.
- You may need to:
- - Log in with your Apple ID in Xcode first
- - Ensure you have a valid unique Bundle ID
- - Register your device with your Apple Developer Account
- - Let Xcode automatically provision a profile for your app
- 4- Build or run your project again
- For more information, please visit:
- https://flutter.dev/setup/#deploy-to-ios-devices
- Or run on an iOS simulator without code signing
- ════════════════════════════════════════════════════════════════════════════════
- Encountered error while building for device.
- Build failed :|
- Failed to build for iOS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement