Closed isRaining closed 5 years ago
Xcode print: #import <flutter_record/flutter_record-Swift.h> 'flutter_record/flutter_record-Swift.h' file not found VSCode print: === BUILD TARGET flutter_record OF PROJECT Pods WITH CONFIGURATION Debug === /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: warning: instance method 'audioPlayerDidFinishPlaying(_:successfully:)' nearly matches optional requirement 'audioPlayerDidFinishPlaying(_:successfully:)' of protocol 'AVAudioPlayerDelegate' @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: note: candidate exactly matches @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: note: move 'audioPlayerDidFinishPlaying(_:successfully:)' to an extension to silence this warning @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: note: make 'audioPlayerDidFinishPlaying(_:successfully:)' non-public to silence this warning @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ private AVFoundation.AVAudioPlayerDelegate:3:26: note: requirement 'audioPlayerDidFinishPlaying(_:successfully:)' declared here optional public func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: warning: instance method 'audioPlayerDidFinishPlaying(_:successfully:)' nearly matches optional requirement 'audioPlayerDidFinishPlaying(_:successfully:)' of protocol 'AVAudioPlayerDelegate' @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: note: candidate exactly matches @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: note: move 'audioPlayerDidFinishPlaying(_:successfully:)' to an extension to silence this warning @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:69:14: note: make 'audioPlayerDidFinishPlaying(_:successfully:)' non-public to silence this warning @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { ^ private AVFoundation.AVAudioPlayerDelegate:3:26: note: requirement 'audioPlayerDidFinishPlaying(_:successfully:)' declared here optional public func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) ^ /Users/zhangzhengyu/.pub-cache/hosted/pub.dartlang.org/flutter_record-0.1.3/ios/Classes/FlutterRecordPlugin.m:2:9: fatal error: 'flutter_record/flutter_record-Swift.h' file not found #import <flutter_record/flutter_record-Swift.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
编译期在ios/Podfile
target 'Runner' do use_frameworks! # 添加这行