Repository navigation
Closed
Description
Sounds Version : latest (0.8.2)
- FULL or LITE flavor ? Full version
Severity - High
-
Crash ? Prevents building app for iOS
-
Cannot build my App for iOS
Primary error: error: no visible @interface for 'FFmpegPlugin' declares the selector 'alloc' FFmpegPlugin* FFmpegPlugin = [[FFmpegPlugin alloc] init]; // The singleton
Logs
(This is very important. Most of the time we cannot do anything if we do not have information on your bug):
Running Xcode build...
Xcode build done. 82.0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
In file included from /Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:24:
In file included from /Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.h:22:
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:33:60: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
extern void SoundPlayerReg(NSObject<FlutterPluginRegistrar>* registrar);
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:33:60: note: insert '_Nullable' if the pointer may be null
extern void SoundPlayerReg(NSObject<FlutterPluginRegistrar>* registrar);
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:33:60: note: insert '_Nonnull' if the pointer should never be null
extern void SoundPlayerReg(NSObject<FlutterPluginRegistrar>* registrar);
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:70:56: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)seekToPlayer:(nonnull NSNumber*) time result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:70:56: note: insert '_Nullable' if the block pointer may be null
- (void)seekToPlayer:(nonnull NSNumber*) time result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:70:56: note: insert '_Nonnull' if the block pointer should never be null
- (void)seekToPlayer:(nonnull NSNumber*) time result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:71:59: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setSubscriptionDuration:(double)duration result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:71:59: note: insert '_Nullable' if the block pointer may be null
- (void)setSubscriptionDuration:(double)duration result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:71:59: note: insert '_Nonnull' if the block pointer should never be null
- (void)setSubscriptionDuration:(double)duration result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:72:44: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setVolume:(double) volume result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:72:44: note: insert '_Nullable' if the block pointer may be null
- (void)setVolume:(double) volume result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:72:44: note: insert '_Nonnull' if the block pointer should never be null
- (void)setVolume:(double) volume result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:31: note: insert '_Nullable' if the pointer may be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:31: note: insert '_Nonnull' if the pointer should never be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:53: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:53: note: insert '_Nullable' if the pointer may be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:53: note: insert '_Nonnull' if the pointer should never be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:89: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:89: note: insert '_Nullable' if the block pointer may be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:89: note: insert '_Nonnull' if the block pointer should never be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:74:41: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setActive:(BOOL)enabled result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:74:41: note: insert '_Nullable' if the block pointer may be null
- (void)setActive:(BOOL)enabled result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:74:41: note: insert '_Nonnull' if the block pointer should never be null
- (void)setActive:(BOOL)enabled result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:50: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:50: note: insert '_Nullable' if the pointer may be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:50: note: insert '_Nonnull' if the pointer should never be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:66: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:66: note: insert '_Nullable' if the block pointer may be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:66: note: insert '_Nonnull' if the block pointer should never be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:47: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:47: note: insert '_Nullable' if the pointer may be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:47: note: insert '_Nonnull' if the pointer should never be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:63: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:63: note: insert '_Nullable' if the block pointer may be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:63: note: insert '_Nonnull' if the block pointer should never be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:276:55: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
audioPlayer = [[AVAudioPlayer alloc] initWithData:data error:nil];
^
self->
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:277:55: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
audioPlayer.delegate = self;
^
self->
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:283:56: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
[audioPlayer play];
^
self->
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:439:39: warning: unused variable 'result' [-Wunused-variable]
FlutterResult result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:440:35: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
bool b = [audioPlayer isPlaying];
^
self->
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:127:17: warning: method definition for 'freeSlot:' not found [-Wincomplete-implementation]
@implementation TrackPlayer
^
In file included from /Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.m:24:
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/TrackPlayer.h:44:1: note: method 'freeSlot:' declared here
- (void)freeSlot: (int)slotNo;
^
18 warnings generated.
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/Track.m:61:19: warning: unused variable 'albumArtFileString' [-Wunused-variable]
NSString *albumArtFileString = [responseObj objectForKey:@"albumArtFile"];
^
1 warning generated.
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/Sounds.m:24:9: warning: non-portable path to file '"FFmpegPlugin.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import "FfmpegPlugin.h"
^~~~~~~~~~~~~~~~
"FFmpegPlugin.h"
In file included from /Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/Sounds.m:27:
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:33:60: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
extern void SoundPlayerReg(NSObject<FlutterPluginRegistrar>* registrar);
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:33:60: note: insert '_Nullable' if the pointer may be null
extern void SoundPlayerReg(NSObject<FlutterPluginRegistrar>* registrar);
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:33:60: note: insert '_Nonnull' if the pointer should never be null
extern void SoundPlayerReg(NSObject<FlutterPluginRegistrar>* registrar);
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:70:56: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)seekToPlayer:(nonnull NSNumber*) time result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:70:56: note: insert '_Nullable' if the block pointer may be null
- (void)seekToPlayer:(nonnull NSNumber*) time result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:70:56: note: insert '_Nonnull' if the block pointer should never be null
- (void)seekToPlayer:(nonnull NSNumber*) time result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:71:59: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setSubscriptionDuration:(double)duration result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:71:59: note: insert '_Nullable' if the block pointer may be null
- (void)setSubscriptionDuration:(double)duration result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:71:59: note: insert '_Nonnull' if the block pointer should never be null
- (void)setSubscriptionDuration:(double)duration result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:72:44: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setVolume:(double) volume result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:72:44: note: insert '_Nullable' if the block pointer may be null
- (void)setVolume:(double) volume result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:72:44: note: insert '_Nonnull' if the block pointer should never be null
- (void)setVolume:(double) volume result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:31: note: insert '_Nullable' if the pointer may be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:31: note: insert '_Nonnull' if the pointer should never be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:53: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:53: note: insert '_Nullable' if the pointer may be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:53: note: insert '_Nonnull' if the pointer should never be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:89: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:89: note: insert '_Nullable' if the block pointer may be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:73:89: note: insert '_Nonnull' if the block pointer should never be null
- (void)setCategory: (NSString*)categ mode:(NSString*)mode options:(int)options result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:74:41: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setActive:(BOOL)enabled result:(FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:74:41: note: insert '_Nullable' if the block pointer may be null
- (void)setActive:(BOOL)enabled result:(FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:74:41: note: insert '_Nonnull' if the block pointer should never be null
- (void)setActive:(BOOL)enabled result:(FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:50: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:50: note: insert '_Nullable' if the pointer may be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:50: note: insert '_Nonnull' if the pointer should never be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:66: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:66: note: insert '_Nullable' if the block pointer may be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:75:66: note: insert '_Nonnull' if the block pointer should never be null
- (void)initializeSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:47: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:47: note: insert '_Nullable' if the pointer may be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:47: note: insert '_Nonnull' if the pointer should never be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:63: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:63: note: insert '_Nullable' if the block pointer may be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nullable
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/SoundPlayer.h:76:63: note: insert '_Nonnull' if the block pointer should never be null
- (void)releaseSoundPlayer: (FlutterMethodCall*)call result: (FlutterResult)result;
^
_Nonnull
13 warnings generated.
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/FfmpegPlugin.m:80:49: error: no visible @interface for 'FFmpegPlugin' declares the selector 'alloc'
FFmpegPlugin* FFmpegPlugin = [[FFmpegPlugin alloc] init]; // The singleton
~~~~~~~~~~~~ ^~~~~
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/FfmpegPlugin.m:93:15: warning: unused variable 'command' [-Wunused-variable]
NSString* command = call.arguments[@"command"];
^
/Users/mbpro/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/sounds-0.8.2/ios/Classes/FfmpegPlugin.m:94:15: warning: unused variable 'delimiter' [-Wunused-variable]
NSString* delimiter = call.arguments[@"delimiter"];
^
2 warnings and 1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).
flutter doctor :
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.15.5 19F101, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 3.5)
[✓] Connected device (2 available)
• No issues found!
flutter pub deps :
cloud_firestore:
firebase_auth:
firebase_core:
firebase_database:
firebase_storage:
firebase_messaging:
google_sign_in:
image_picker:
image_cropper:
intl:
# flutter_sound: ^5.0.0
sounds:
flutter_launcher_icons:
flushbar:
file_picker:
path_provider:
audioplayers:
provider:
sliding_up_panel:
font_awesome_flutter:
marquee:
Describe the bug
I'm unable to get my app to build for iOS (seems to work for Android) due to the above error when building. I am trying to switch over from using Flutter Sound since I've updated my flutter version. I'm excited about this fork and having a cleaner API for the sound system! Would love to help contribute any way I can (I'll admit, I know very little about iOS development, however).
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-][BUG][/-][+][BUG] - Unable to Build on iOS due to FFmpegPlugin[/+]bsutton commentedon Jun 18, 2020
So looks like its an error generated by a newer version of the objective-c compiler.
We need to add nullable before each pointer.
https://stackoverflow.com/questions/32539285/pointer-is-missing-a-nullability-type-specifier
I'm still setting an an ios environment.
If you want to have a crack at applying the nullable method and pushing a pr that would be fantastic.
bsutton commentedon Jun 18, 2020
Once I get the project it to a semi reasonable state I'm going to try and recruit other developers, hopefully with objective-c experience.
bsutton commentedon Jun 18, 2020
I've just pushed 0.8.6 which I THINK fixes the error. I've also made an attempt to remove one of the warnings.
kbanta11 commentedon Jun 20, 2020
I've been messing around trying to get this to work with the updates the past few days. Still unable to get it to build for iOS, but I think I've gotten around this issue and am now running into an issue with package
ext_storagewhich we're using in sounds being only supported on Android (so it fails to build for iOS due to a missing package):definition of 'ExtStoragePlugin' must be imported from module 'ext_storage.ExtStoragePlugin' before it is required @implementation ExtStoragePluginXCode gives this error on the line causing that^:
'ext_storage/ext_storage-Swift.h' file not foundIs there a different external storage package that might work that supports iOS, or a way to ignore this package on iOS?
bsutton commentedon Jun 20, 2020
bsutton commentedon Jun 20, 2020
I've just pushed a released that has ext_storage removed.
As I guessed its no longer in use.
bsutton commentedon Jun 20, 2020
I would be interested in your thoughts an involvement on
#10 combined with #3 and #5 .
I'm quite keen to remove ffmpeg out of Sounds and create a new project that does the codec conversions.
So essentially Sounds only does native playback/recording and you add the external codec package if you need more codecs.
This keeps Sounds lean and easier to maintain.
I would needs some help with this plan as I've never used Objective-C. I can manage the dart and java pieces.
The core piece would be to implement getduration using the native apis rather than ffmpeg.
kbanta11 commentedon Jun 20, 2020
Ok, still failing to build for iOS but I think I've solved the issues related to the Sounds package!
Regarding the other points, I think removing ffmpeg to its own package makes sense. I think the primary value it adds is codec conversion, which I think is fine to leave to a user's discretion if they even need that ability to pull in a package for it. I also like the idea of splitting the media format and codec, I think its more clean than the current codecFormat and I think allows us to organize some of the details better than just within the track.
I guess I'm indifferent to pulling the Codec portion (and MediaFormat?) out into a separate package since we'll only really be supporting the native codecs within the Sounds package. I guess much of this would need to be pulled into a package that both sounds and a split out ffmpeg package could use.
Unfortunately, I'm also of almost no help on iOS/C. I might be able to figure out implementing get duration, but I'm coming from a java/dart/python background and don't have much experience with Objective-C.
bsutton commentedon Jun 21, 2020
kbanta11 commentedon Jun 23, 2020
I think we could probably just put together some instructions for using that plugin/ffmpeg in general. We might also want to include some instructions on ffprobe as well in case we need to determine the codec before executing something. That
flutter_ffmpegseems relatively simple enough, though, as most of the details will be more ffmpeg specific.bsutton commentedon Jun 24, 2020
bsutton commentedon Jun 28, 2020
You can now compile on ios.
I've removed all of the ffmpeg code to a new project (sounds_codec).
There is also a new common project sounds_common which shared by sounds and sounds_codec.
You can just get sounds without worrying about the other two unless you want to make code changes.
I've also done the work to move from Codec to MediaFormat.
I've done some VERY basic testing on android and the example app works but really need to through and retest everything.
Also need to update the doco.
The iOS code is completely untested at this point beyond (it compiles).
I also need to add support for the getDuration method on both systems.
bsutton commentedon Jun 28, 2020
So I've just pushed 0.9.0.
This essentially completes the work of changing from a Codec to a MediaFormat and the removal of the ffmpeg library.
The demo app is no 'mostly' working on android and ios.
There is still a problem with getDuration on ios.
https://stackoverflow.com/questions/7256735/nsinvalidargumentexception
Hopefully stackoverflow will come to the rescue.
Still a chunk more testing required but it feels like we are code complete.
Still need to implement the codec conversion libraries in sounds_codec but I will hopefully get to this over the next couple of weeks. I don't think is urgent as yet.
I will start going through updating the doco.
Any feed back on the api or bug reports and/or fixes would be appreciated.