Closed arnoutvandervorst closed 2 years ago
I am also experiencing the same issue when running flutter build ios
.
My environment: M1 MacBook - Big Sur 11.6 Flutter 2.5.1 better_player 0.0.74
Let me know if I can provide further information.
Are there any known workarounds to this issue?
Identical problem
My environment: M1 Mac Mini - Big Sur 11.6 Flutter 2.5.1 better_player 0.0.74
I just downgraded to 0.0.74 -> 0.0.73.
use without ^
this. better_player: 0.0.73
Fixed in Better Player 0.0.75.
This is still not working for me with ^0.0.75. Downgrading to 0.073 (exact version) works though. (iOS simulator)
It fails with a Swift compiler error in the CacheManager file.
var server: HLSCachingReverseProxyServer?
lazy var storage: Cache.Storage? = {
return try? Cache.Storage(diskConfig: diskConfig, memoryConfig: memoryConfig, transformer: TransformerFactory.forCodable(ofType: Data.self))
}()
Generic parameter 'Key' could not be inferred
@ObserverMoment I've tried to setup new app with Better Player 0.0.75 with Flutter 2.5.1 and Xcode 13 and iOS 15 and everything's fine.
What's your flutter doctor output? What is your xcode version? Can you clean your flutter project and pods before installing BP 0.0.75?
I get the same issue as @ObserverMoment with Better Player 0.0.75, Flutter 2.5.1, Xcode 13 and iOS 15. Better Player 0.0.74 also not working, all builds separated with a flutter clean. Works fine with BetterPlayer 0.0.73
Can you please share full output of build error? Can you please try to setup clean flutter project and add BP 0.0.75 and see if there's error?
@themadmrj Can you look on this on your side?
@jhomlala I currently can't get Xcode 13 and since it works find on Xcode 12, it will have to wait until I can upgrade...
Hi @jhomlala, doctor output:
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.5.2 20G95 darwin-x64, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.60.2)
[✓] Connected device (1 available)
@jhomlala, and the error log. After doing these steps in the terminal (in vscode)
I get
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:F22CFF4E-F835-4085-ABE0-42F91C01ABEA, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:66E46C9A-5974-4BA0-8A11-601E209274FC, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:9EE23943-E6D5-433A-A1E1-DF08E6FA0D75, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:FE099149-F267-404A-9F6F-A9A0B22B4450, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:25785D85-8EB0-488B-A6AC-6723A246541D, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:F216CAB8-92A7-4E23-AF4B-F182278FE60A, OS:15.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:24AB453B-2B3A-491A-BF41-1EB2DF66B826, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:3E608B96-C785-42C0-B75F-5738C9B02254, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:F56B7B81-D46B-4C65-947E-DFDB9859DC87, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:54B447B7-A3CF-4381-B63F-247BD98BE9A8, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:70DB19BE-9C8D-4941-BE9C-75B8A0FF2972, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:17987A77-E9EB-4DCD-89C9-04E541051FB5, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:805299B0-AFFD-40B5-9B7A-FD1B75F66D71, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:2B0589FA-B497-4735-A315-918EFE060BE9, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:19F9EDAF-6073-4D99-88E7-1544DE08BDC3, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:2BAC4DA3-3369-4C45-B603-E4637DF9D998, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:1EB767C4-C073-4F43-8A0D-FC184E05ADDB, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:F70FCFB0-5D0D-459A-87FF-5180E4A2052F, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:1A19F77E-E04F-4641-A1EA-748803956CBB, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:BA847246-83A3-4E44-A8BC-565BC2A4DD6F, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:8CBBAF57-1109-429B-8F49-06EE56FD0C99, OS:15.0, name:iPod touch (7th generation) }
** BUILD FAILED **
Xcode's output:
↳
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/photo_manager-1.3.2/ios/Classes/core/PMManager.m:845:59: warning: 'openURL:' is
deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
BOOL success = [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/photo_manager/photo_manager-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/UIKit.f
ramework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:38: warning: variable 'sum_left' may be
uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1426:3: note: variable 'sum_left' is declared
here
uint16x8_t sum_left;
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:48: warning: variable 'sum_top' may be
uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1425:3: note: variable 'sum_top' is declared here
uint16x8_t sum_top;
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:38: warning: variable 'sum_left' may be
uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1509:3: note: variable 'sum_left' is declared
here
uint16x8_t sum_left;
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:48: warning: variable 'sum_top' may be
uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1508:3: note: variable 'sum_top' is declared here
uint16x8_t sum_top;
^
4 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:694:12: warning: variable
'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:626:20: note: initialize the
variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:17:44: warning:
'UIImagePickerControllerReferenceURL' is deprecated: first deprecated in iOS 11.0 - Will be removed in a future release, use PHPicker.
[-Wdeprecated-declarations]
NSURL *referenceURL = [info objectForKey:UIImagePickerControllerReferenceURL];
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/UIKit.f
ramework/Headers/UIImagePickerController.h:62:51: note: 'UIImagePickerControllerReferenceURL' has been explicitly marked deprecated here
UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerReferenceURL API_DEPRECATED("Will be removed in a future
release, use PHPicker.", ios(4.1, 11.0)) API_UNAVAILABLE(tvos); // an NSURL that references an asset in the AssetsLibrary framework
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:21:47: warning:
'fetchAssetsWithALAssetURLs:options:' is deprecated: first deprecated in iOS 11 - Will be removed in a future release
[-Wdeprecated-declarations]
PHFetchResult<PHAsset *> *result = [PHAsset fetchAssetsWithALAssetURLs:@[ referenceURL ]
^
In module 'Photos' imported from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/Photos.
framework/Headers/PHAsset.h:77:1: note: 'fetchAssetsWithALAssetURLs:options:' has been explicitly marked deprecated here
+ (PHFetchResult<PHAsset *> *)fetchAssetsWithALAssetURLs:(NSArray<NSURL *> *)assetURLs options:(nullable PHFetchOptions *)options
API_DEPRECATED("Will be removed in a future release", ios(8, 11), tvos(8, 11)) API_UNAVAILABLE(macos);
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m
:87:14: warning: 'automaticallyAdjustsScrollViewInsets' is deprecated: first deprecated in iOS 11.0 - Use UIScrollView's
contentInsetAdjustmentBehavior instead [-Wdeprecated-declarations]
self.automaticallyAdjustsScrollViewInsets = NO;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/UIKit.f
ramework/Headers/UIViewController.h:257:34: note: 'automaticallyAdjustsScrollViewInsets' has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets API_DEPRECATED("Use UIScrollView's contentInsetAdjustmentBehavior
instead", ios(7.0,11.0),tvos(7.0,11.0)); // Defaults to YES
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m
:1297:36: warning: 'topLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use view.safeAreaLayoutGuide.topAnchor instead of
topLayoutGuide.bottomAnchor [-Wdeprecated-declarations]
statusBarHeight = self.topLayoutGuide.length;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/UIKit.f
ramework/Headers/UIViewController.h:500:58: note: 'topLayoutGuide' has been explicitly marked deprecated here
@property(nonatomic,readonly,strong) id<UILayoutSupport> topLayoutGuide API_DEPRECATED("Use view.safeAreaLayoutGuide.topAnchor instead
of topLayoutGuide.bottomAnchor", ios(7.0,11.0), tvos(7.0,11.0));
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Reachability/Reachability.m:465:63: warning: cast to smaller integer type
'unsigned int' from 'Reachability *' [-Wpointer-to-int-cast]
NSStringFromClass([self class]), (unsigned int) self, [self currentReachabilityFlags]];
^~~~~~~~~~~~~~~~~~~
1 warning generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:338:37: warning:
'archivedDataWithRootObject:' is deprecated: first deprecated in iOS 12.0 - Use +archivedDataWithRootObject:requiringSecureCoding:error:
instead [-Wdeprecated-declarations]
return [NSKeyedArchiver archivedDataWithRootObject:object];
^
In module 'Foundation' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/Foundat
ion.framework/Headers/NSKeyedArchiver.h:47:1: note: 'archivedDataWithRootObject:' has been explicitly marked deprecated here
+ (NSData *)archivedDataWithRootObject:(id)rootObject API_DEPRECATED("Use +archivedDataWithRootObject:requiringSecureCoding:error:
instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:346:35: warning: 'unarchiveObjectWithData:'
is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead [-Wdeprecated-declarations]
return [NSKeyedUnarchiver unarchiveObjectWithData:data];
^
In module 'Foundation' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/Foundat
ion.framework/Headers/NSKeyedArchiver.h:152:1: note: 'unarchiveObjectWithData:' has been explicitly marked deprecated here
+ (nullable id)unarchiveObjectWithData:(NSData *)data API_DEPRECATED("Use +unarchivedObjectOfClass:fromData:error: instead",
macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
^
2 warnings generated.
Command CompileSwiftSources failed with a nonzero exit code
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9: note: in
file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/BetterPlayer.h:53:34: warning: 'width' used
as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/BetterPlayer.h:53:34: note: introduce a
parameter name to make 'width' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/BetterPlayer.h:53:39: note: or insert
whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9: note: in
file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/BetterPlayer.h:53:47: warning: 'height' used
as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/BetterPlayer.h:53:47: note: introduce a
parameter name to make 'height' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/BetterPlayer.h:53:53: note: or insert
whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/CacheManager.swift:33:40: error: generic
parameter 'Key' could not be inferred
lazy var storage: Cache.Storage? = {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/CacheManager.swift:213:13: warning:
initialization of immutable value 'str' was never used; consider replacing with assignment to '_' or removing it
let str = String(format: "%.1f%%", percentage)
~~~~^~~
_
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Pods.xcodeproj: warning: MobileCoreServices has been renamed. Use
CoreServices instead. (in target 'GCDWebServer' from project 'Pods')
Encountered error while building for device.
These lines seem to match the Swift Compiler error I was seeing when building directly inside Xcode.
2 warnings generated.
Command CompileSwiftSources failed with a nonzero exit code
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/CacheManager.swift:33:40: error: generic parameter 'Key' could not be inferred lazy var storage: Cache.Storage? = { ^
If it's just this, than a simple explicit declaration like Storage<String, Data> should fix it.
The same thing with flutter 2.5.1 and better_player 0.0.75
/Users/prilepskiy/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/CacheManager.swift:33:40: error: generic parameter
'Key' could not be inferred
lazy var storage: Cache.Storage? = {
^
Can you please share full output of build error? Can you please try to setup clean flutter project and add BP 0.0.75 and see if there's error?
I can confirm it's works good for me with an empty flutter project. So i assume the error comes from an incompatibility with one of my others packages? Here my pubspec:
My log is the same as @ObserverMoment except warnings related to my project
same issue after upgrade from 0.0.73 to 0.0.75
...flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.75/ios/Classes/CacheManager.swift:33:40: error: generic parameter 'Key' could not be inferred lazy var storage: Cache.Storage? = {
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.2.3 20D91 darwin-x64, locale en-FR) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] Android Studio (version 4.0) [✓] IntelliJ IDEA Community Edition (version 2020.2.1) [✓] VS Code (version 1.59.0) [✓] Connected device (3 available)
• No issues found!
any update please ?
I still can't reproduce this issue on my side. Anyway I'm trying to fix blindly this issue.
Please use this temporary BP version:
better_player:
git:
url: https://github.com/jhomlala/betterplayer
ref: feature/ios_crash_fix
Also please do these steps:
flutter pub get
flutter clean
pod repo update
from ios directory@Milvintsiss thank you for adding your pubspec. Anyway it didn't trigger any issue on my side (I just needed to set iOS version 10).
I tried with your branch but it's not working too. I tried to use the same pubspec on the empty flutter project and it's working fine (with iOS 10 too) and also tried with iOS 12.1 (the one used for my main project) and it's working too... Can't figure out why it's not working for my project, I have no time to investigate this more at the moment and using 0.0.73 is good for me, but if you need more informations don't hesitate to @ me :)
Please use this temporary BP version:
better_player: git: url: https://github.com/jhomlala/betterplayer ref: feature/ios_crash_fix
Also please do these steps:
flutter pub get
flutter clean
- Remove file Podfile.lock from ios directory of your project
- Run
pod repo update
from ios directory- Run your app normally.
I did it (with dependency_overrides) and got a new error:
/Users/prilepskiy/flutter/.pub-cache/git/betterplayer-769a605c2524f390681513df92c8dded259f85fb/ios/Classes/CacheManager.swift:33:29: error:
generic type 'Storage' specialized with too few type parameters (got 1, but expected 2)
lazy var storage: Cache.Storage<Data>? = {
^ ~~~~~~~
I don't use better_player in my project directly, but some of packages use it, I think that's tweet_ui and they also have an issue with flutter 2.5: https://github.com/schibsted/tweet_ui/issues/69
I have applied new fix to branch feature/ios_crash_fix
. Please check this branch again and follow these steps:
flutter pub get
flutter clean
- Remove file Podfile.lock from ios directory of your project
- Run
pod repo update
from ios directory- Run your app normally.
I've added to pubspec.yaml the following.
better_player:
git:
url: https://github.com/jhomlala/betterplayer
ref: feature/ios_crash_fix
And performed flutter pub get
, flutter clean
, removed Podfile.lock from ios directory, ran pod repo update
and then tried to build --release for ios and I am getting the following error before crash. Have I missed a step or something in this thread?
/flutter/.pub-cache/git/betterplayer-92c2175aefc5368394a91e692d86edf46672a146/ios/Classes/CacheManager.swift:121:63: error: cannot force unwrap value of non-optional type 'Data'
playerItem = CachingPlayerItem(data: data!!, mimeType: mimeTypeResult.1, fileExtension: mimeTypeResult.0)
~~~~~^
/flutter/.pub-cache/git/betterplayer-92c2175aefc5368394a91e692d86edf46672a146/ios/Classes/CacheManager.swift:214:13: warning: initialization of immutable value 'str' was never used; consider replacing with assignment to '_' or
removing it
let str = String(format: "%.1f%%", percentage)
~~~~^~~
OK, I have applied another fix to branch feature/ios_crash_fix
. Please check this branch again and follow these steps from above.
@Zelfapp @prilepskiy @Milvintsiss Can you please confirm if it works right now?
@jhomlala I checked it and it's working well. at least the build though.
please note there is pending update from apple for xcode-build-tools and new os
@jhomlala feature/ios_crash_fix
Error Domain=AVFoundationErrorDomain Code=-11828 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media format is not supported., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x283a48780 {Error Domain=NSOSStatusErrorDomain Code=-12847 "(null)"}} [VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: PlatformException(VideoError, Failed to load video: Cannot Open, null, null)
0.0.73 works well
This is other kind of error. Please report this in other issue. Remember to fill issue with the template.
Version 0.0.76 should solve this problem. If not please let me know.
Hi @jhomlala,
I have updated to ^0.076.
Run flutter pub get
Run flutter clean
Remove podfile.lock
Run pod repo update
from ios directory
Run sudo gem install cocoapods
when prompted with CocoaPods 1.11.2 is available
Launch app from vscode (Run > Run without debugging
like I usually do)
I am still getting a failed build unfortunately. Here is the log output.
The plugin `video_thumbnail` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib/main.dart on iPhone 13 in debug mode...
Xcode build done. 13.9s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:F22CFF4E-F835-4085-ABE0-42F91C01ABEA, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:66E46C9A-5974-4BA0-8A11-601E209274FC, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:9EE23943-E6D5-433A-A1E1-DF08E6FA0D75, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:FE099149-F267-404A-9F6F-A9A0B22B4450, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:25785D85-8EB0-488B-A6AC-6723A246541D, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:F216CAB8-92A7-4E23-AF4B-F182278FE60A, OS:15.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:24AB453B-2B3A-491A-BF41-1EB2DF66B826, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:3E608B96-C785-42C0-B75F-5738C9B02254, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:F56B7B81-D46B-4C65-947E-DFDB9859DC87, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:54B447B7-A3CF-4381-B63F-247BD98BE9A8, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:70DB19BE-9C8D-4941-BE9C-75B8A0FF2972, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:17987A77-E9EB-4DCD-89C9-04E541051FB5, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:805299B0-AFFD-40B5-9B7A-FD1B75F66D71, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:2B0589FA-B497-4735-A315-918EFE060BE9, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:19F9EDAF-6073-4D99-88E7-1544DE08BDC3, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:2BAC4DA3-3369-4C45-B603-E4637DF9D998, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:1EB767C4-C073-4F43-8A0D-FC184E05ADDB, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:F70FCFB0-5D0D-459A-87FF-5180E4A2052F, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:1A19F77E-E04F-4641-A1EA-748803956CBB, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:BA847246-83A3-4E44-A8BC-565BC2A4DD6F, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:8CBBAF57-1109-429B-8F49-06EE56FD0C99, OS:15.0, name:iPod touch (7th generation) }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
** BUILD FAILED **
Xcode's output:
↳
Command CompileSwiftSources failed with a nonzero exit code
Command CompileSwiftSources failed with a nonzero exit code
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PINCache", referenced from:
objc-class-ref in CacheManager.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Pods.xcodeproj: warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'GCDWebServer' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 13.
Exited (sigterm)
Am reverting back to 0.073 for the time being as that version is still working. If there is anything else to try or any steps that I missed then let me know - thanks.
@ObserverMoment try cd ios
and pod update
and run again
I can confirm this issue still exists in 0.0.76 but is fine if I revert to 0.0.73, i have cleared all caches, derived data, pods, installed everything fresh and the problem persists but goes away again if i go back to 0.0.73 then returns if i go back to 0.0.76. thanks
@prilepskiy, still failing after pod update
.
Running "flutter pub get" in sofie_ui...
Warning: You are using these overridden dependencies:
! analyzer 2.3.0
! provider 6.0.0 (6.0.1 available)
The plugin `video_thumbnail` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib/main.dart on iPhone 13 in debug mode...
Xcode build done. 83.3s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:F22CFF4E-F835-4085-ABE0-42F91C01ABEA, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:66E46C9A-5974-4BA0-8A11-601E209274FC, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:9EE23943-E6D5-433A-A1E1-DF08E6FA0D75, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:FE099149-F267-404A-9F6F-A9A0B22B4450, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:25785D85-8EB0-488B-A6AC-6723A246541D, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:F216CAB8-92A7-4E23-AF4B-F182278FE60A, OS:15.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:24AB453B-2B3A-491A-BF41-1EB2DF66B826, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:3E608B96-C785-42C0-B75F-5738C9B02254, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:F56B7B81-D46B-4C65-947E-DFDB9859DC87, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:54B447B7-A3CF-4381-B63F-247BD98BE9A8, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:70DB19BE-9C8D-4941-BE9C-75B8A0FF2972, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:17987A77-E9EB-4DCD-89C9-04E541051FB5, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:805299B0-AFFD-40B5-9B7A-FD1B75F66D71, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:2B0589FA-B497-4735-A315-918EFE060BE9, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:19F9EDAF-6073-4D99-88E7-1544DE08BDC3, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:2BAC4DA3-3369-4C45-B603-E4637DF9D998, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:1EB767C4-C073-4F43-8A0D-FC184E05ADDB, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:F70FCFB0-5D0D-459A-87FF-5180E4A2052F, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:1A19F77E-E04F-4641-A1EA-748803956CBB, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:BA847246-83A3-4E44-A8BC-565BC2A4DD6F, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:8CBBAF57-1109-429B-8F49-06EE56FD0C99, OS:15.0, name:iPod touch (7th generation) }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
** BUILD FAILED **
Xcode's output:
↳
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/photo_manager-1.3.2/ios/Classes/core/PMManager.m:845:59: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
BOOL success = [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/photo_manager/photo_manager-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0)) NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/photo_manager-1.3.2/ios/Classes/core/PMManager.m:845:59: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
BOOL success = [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/photo_manager/photo_manager-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0)) NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:694:12: warning: variable 'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:626:20: note: initialize the variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
4 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:694:12: warning: variable 'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:626:20: note: initialize the variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:17:44: warning: 'UIImagePickerControllerReferenceURL' is deprecated: first deprecated in iOS 11.0 - Will be removed in a future release, use PHPicker. [-Wdeprecated-declarations]
NSURL *referenceURL = [info objectForKey:UIImagePickerControllerReferenceURL];
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:62:51: note: 'UIImagePickerControllerReferenceURL' has been explicitly marked deprecated here
UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerReferenceURL API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(4.1, 11.0)) API_UNAVAILABLE(tvos); // an NSURL that references an asset in the AssetsLibrary framework
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:21:47: warning: 'fetchAssetsWithALAssetURLs:options:' is deprecated: first deprecated in iOS 11 - Will be removed in a future release [-Wdeprecated-declarations]
PHFetchResult<PHAsset *> *result = [PHAsset fetchAssetsWithALAssetURLs:@[ referenceURL ]
^
In module 'Photos' imported from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h:77:1: note: 'fetchAssetsWithALAssetURLs:options:' has been explicitly marked deprecated here
+ (PHFetchResult<PHAsset *> *)fetchAssetsWithALAssetURLs:(NSArray<NSURL *> *)assetURLs options:(nullable PHFetchOptions *)options API_DEPRECATED("Will be removed in a future release", ios(8, 11), tvos(8, 11)) API_UNAVAILABLE(macos);
^
2 warnings generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:17:44: warning: 'UIImagePickerControllerReferenceURL' is deprecated: first deprecated in iOS 11.0 - Will be removed in a future release, use PHPicker. [-Wdeprecated-declarations]
NSURL *referenceURL = [info objectForKey:UIImagePickerControllerReferenceURL];
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:62:51: note: 'UIImagePickerControllerReferenceURL' has been explicitly marked deprecated here
UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerReferenceURL API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(4.1, 11.0)) API_UNAVAILABLE(tvos); // an NSURL that references an asset in the AssetsLibrary framework
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:21:47: warning: 'fetchAssetsWithALAssetURLs:options:' is deprecated: first deprecated in iOS 11 - Will be removed in a future release [-Wdeprecated-declarations]
PHFetchResult<PHAsset *> *result = [PHAsset fetchAssetsWithALAssetURLs:@[ referenceURL ]
^
In module 'Photos' imported from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h:77:1: note: 'fetchAssetsWithALAssetURLs:options:' has been explicitly marked deprecated here
+ (PHFetchResult<PHAsset *> *)fetchAssetsWithALAssetURLs:(NSArray<NSURL *> *)assetURLs options:(nullable PHFetchOptions *)options API_DEPRECATED("Will be removed in a future release", ios(8, 11), tvos(8, 11)) API_UNAVAILABLE(macos);
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m:87:14: warning: 'automaticallyAdjustsScrollViewInsets' is deprecated: first deprecated in iOS 11.0 - Use UIScrollView's contentInsetAdjustmentBehavior instead [-Wdeprecated-declarations]
self.automaticallyAdjustsScrollViewInsets = NO;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:257:34: note: 'automaticallyAdjustsScrollViewInsets' has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets API_DEPRECATED("Use UIScrollView's contentInsetAdjustmentBehavior instead", ios(7.0,11.0),tvos(7.0,11.0)); // Defaults to YES
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m:1297:36: warning: 'topLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor [-Wdeprecated-declarations]
statusBarHeight = self.topLayoutGuide.length;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:500:58: note: 'topLayoutGuide' has been explicitly marked deprecated here
@property(nonatomic,readonly,strong) id<UILayoutSupport> topLayoutGuide API_DEPRECATED("Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor", ios(7.0,11.0), tvos(7.0,11.0));
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m:87:14: warning: 'automaticallyAdjustsScrollViewInsets' is deprecated: first deprecated in iOS 11.0 - Use UIScrollView's contentInsetAdjustmentBehavior instead [-Wdeprecated-declarations]
self.automaticallyAdjustsScrollViewInsets = NO;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:257:34: note: 'automaticallyAdjustsScrollViewInsets' has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets API_DEPRECATED("Use UIScrollView's contentInsetAdjustmentBehavior instead", ios(7.0,11.0),tvos(7.0,11.0)); // Defaults to YES
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m:1297:36: warning: 'topLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor [-Wdeprecated-declarations]
statusBarHeight = self.topLayoutGuide.length;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:500:58: note: 'topLayoutGuide' has been explicitly marked deprecated here
@property(nonatomic,readonly,strong) id<UILayoutSupport> topLayoutGuide API_DEPRECATED("Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor", ios(7.0,11.0), tvos(7.0,11.0));
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Reachability/Reachability.m:465:63: warning: cast to smaller integer type 'unsigned int' from 'Reachability *' [-Wpointer-to-int-cast]
NSStringFromClass([self class]), (unsigned int) self, [self currentReachabilityFlags]];
^~~~~~~~~~~~~~~~~~~
1 warning generated.
1 warning generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:338:37: warning: 'archivedDataWithRootObject:' is deprecated: first deprecated in iOS 12.0 - Use +archivedDataWithRootObject:requiringSecureCoding:error: instead [-Wdeprecated-declarations]
return [NSKeyedArchiver archivedDataWithRootObject:object];
^
In module 'Foundation' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h:47:1: note: 'archivedDataWithRootObject:' has been explicitly marked deprecated here
+ (NSData *)archivedDataWithRootObject:(id)rootObject API_DEPRECATED("Use +archivedDataWithRootObject:requiringSecureCoding:error: instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:346:35: warning: 'unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead [-Wdeprecated-declarations]
return [NSKeyedUnarchiver unarchiveObjectWithData:data];
^
In module 'Foundation' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h:152:1: note: 'unarchiveObjectWithData:' has been explicitly marked deprecated here
+ (nullable id)unarchiveObjectWithData:(NSData *)data API_DEPRECATED("Use +unarchivedObjectOfClass:fromData:error: instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:338:37: warning: 'archivedDataWithRootObject:' is deprecated: first deprecated in iOS 12.0 - Use +archivedDataWithRootObject:requiringSecureCoding:error: instead [-Wdeprecated-declarations]
return [NSKeyedArchiver archivedDataWithRootObject:object];
^
In module 'Foundation' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h:47:1: note: 'archivedDataWithRootObject:' has been explicitly marked deprecated here
+ (NSData *)archivedDataWithRootObject:(id)rootObject API_DEPRECATED("Use +archivedDataWithRootObject:requiringSecureCoding:error: instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:346:35: warning: 'unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead [-Wdeprecated-declarations]
return [NSKeyedUnarchiver unarchiveObjectWithData:data];
^
In module 'Foundation' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h:152:1: note: 'unarchiveObjectWithData:' has been explicitly marked deprecated here
+ (nullable id)unarchiveObjectWithData:(NSData *)data API_DEPRECATED("Use +unarchivedObjectOfClass:fromData:error: instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:107:14: warning: 'automaticallyAdjustsScrollViewInsets' was deprecated in iOS 11.0: Use UIScrollView's contentInsetAdjustmentBehavior instead
self.automaticallyAdjustsScrollViewInsets = false
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:107:14: warning: 'automaticallyAdjustsScrollViewInsets' was deprecated in iOS 11.0: Use UIScrollView's contentInsetAdjustmentBehavior instead
self.automaticallyAdjustsScrollViewInsets = false
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9: note: in file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: warning: 'width' used as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: note: introduce a parameter name to make 'width' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:39: note: or insert whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9: note: in file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: warning: 'height' used as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: note: introduce a parameter name to make 'height' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:53: note: or insert whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/CacheManager.swift:214:13: warning: initialization of immutable value 'str' was never used; consider replacing with assignment to '_' or removing it
let str = String(format: "%.1f%%", percentage)
~~~~^~~
_
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9: note: in file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: warning: 'width' used as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: note: introduce a parameter name to make 'width' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:39: note: or insert whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9: note: in file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: warning: 'height' used as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: note: introduce a parameter name to make 'height' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:53: note: or insert whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/CacheManager.swift:214:13: warning: initialization of immutable value 'str' was never used; consider replacing with assignment to '_' or removing it
let str = String(format: "%.1f%%", percentage)
~~~~^~~
_
18 warnings generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.m:32:21: warning: comparison of distinct pointer types ('NSURL *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_licenseURL != [NSNull null]){
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.m:45:40: warning: 'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in iOS 9.0 - Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h [-Wdeprecated-declarations]
decodedData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil];
^
In module 'Foundation' imported from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h:405:1: note: 'sendSynchronousRequest:returningResponse:error:' has been explicitly marked deprecated here
+ (nullable NSData *)sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLResponse * _Nullable * _Nullable)response error:(NSError **)error API_DEPRECATED("Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h", macos(10.3,10.11), ios(2.0,9.0), tvos(9.0,9.0)) API_UNAVAILABLE(watchos);
^
2 warnings generated.
In file included from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:5:
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: warning: 'width' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: note: introduce a parameter name to make 'width' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:39: note: or insert whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: warning: 'height' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: note: introduce a parameter name to make 'height' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:53: note: or insert whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:34: warning: 'width' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:34: note: introduce a parameter name to make 'width' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:39: note: or insert whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:47: warning: 'height' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:47: note: introduce a parameter name to make 'height' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:53: note: or insert whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:200:17: warning: comparison of distinct pointer types ('NSDictionary *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (headers == [NSNull null] || headers == NULL){
~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:206:22: warning: comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (cacheKey == [NSNull null]){
~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:213:46: warning: comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (certificateUrl && certificateUrl != [NSNull null] && [certificateUrl length] > 0) {
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:219:47: warning: sending 'BetterPlayerEzDrmAssetsLoaderDelegate * _Nonnull __strong' to parameter of incompatible type 'id<AVAssetResourceLoaderDelegate> _Nullable'
[asset.resourceLoader setDelegate:_loaderDelegate queue:streamQueue];
^~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetResourceLoader.h:51:66: note: passing argument to parameter 'delegate' here
- (void)setDelegate:(nullable id <AVAssetResourceLoaderDelegate>)delegate queue:(nullable dispatch_queue_t)delegateQueue;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:224:9: warning: @available does not guard availability here; use if (@available) instead [-Wunsupported-availability-guard]
if (@available(iOS 10.0, *) && overriddenDuration > 0) {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:321:52: warning: comparison between pointer and integer ('AVPlayerTimeControlStatus' (aka 'enum AVPlayerTimeControlStatus') and 'NSNull * _Nonnull') [-Wpointer-integer-compare]
if (_lastAvPlayerTimeControlStatus != [NSNull null] && _lastAvPlayerTimeControlStatus == _player.timeControlStatus){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:378:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
NSLog(item.error.debugDescription);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:378:23: note: treat the string as an argument to avoid this
NSLog(item.error.debugDescription);
^
@"%@",
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:529:13: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
_player.rate = _playerRate;
^
self->
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:529:28: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
_player.rate = _playerRate;
^
self->
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:655:14: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
self._playerLayer = nil;
^ ~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:747:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
NSLog(exception.debugDescription);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:747:15: note: treat the string as an argument to avoid this
NSLog(exception.debugDescription);
^
@"%@",
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:22:17: warning: method definition for 'FLTCMTimeToMillis:' not found [-Wincomplete-implementation]
@implementation BetterPlayer
^
In file included from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:5:
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:58:1: note: method 'FLTCMTimeToMillis:' declared here
- (int64_t) FLTCMTimeToMillis:(CMTime) time;
^
16 warnings generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:179:64: warning: use of C-style parameters in Objective-C method declarations is deprecated [-Wdeprecated-declarations]
- (void) setupRemoteCommandNotification:(BetterPlayer*)player, NSString* title, NSString* author , NSString* imageUrl{
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:238:52: warning: use of C-style parameters in Objective-C method declarations is deprecated [-Wdeprecated-declarations]
- (void) setupUpdateListener:(BetterPlayer*)player,NSString* title, NSString* author,NSString* imageUrl {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:62:12: warning: incompatible pointer types returning 'BetterPlayerView *' from a function with result type 'NSObject<FlutterPlatformView> * _Nonnull' [-Wincompatible-pointer-types]
return player;
^~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:138:33: warning: comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:149:33: warning: comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:156:33: warning: comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:166:37: warning: comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:167:56: warning: incompatible pointer types initializing 'MPChangePlaybackPositionCommandEvent *' with an expression of type 'MPChangePlaybackRateCommandEvent *' [-Wincompatible-pointer-types]
MPChangePlaybackPositionCommandEvent * playbackEvent = (MPChangePlaybackRateCommandEvent * ) event;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:170:46: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
[_notificationPlayer seekTo: millis];
~ ^~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:191:18: warning: comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (imageUrl != [NSNull null]){
~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:195:17: warning: comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (key != [NSNull null]){
~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:213:92: warning: 'initWithImage:' is deprecated: first deprecated in iOS 10.0 - Use -initWithBoundsSize:requestHandler: [-Wdeprecated-declarations]
MPMediaItemArtwork* artworkImage = [[MPMediaItemArtwork alloc] initWithImage: tempArtworkImage];
^
In module 'MediaPlayer' imported from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:248:1: note: 'initWithImage:' has been explicitly marked deprecated here
- (instancetype)initWithImage:(UIImage *)image MP_DEPRECATED("Use -initWithBoundsSize:requestHandler:", ios(5.0, 10.0));
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:326:25: warning: comparison of distinct pointer types ('NSDictionary *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (headers == [NSNull null] || headers == NULL){
~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:429:25: warning: comparison of distinct pointer types ('NSDictionary *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (headers == [ NSNull null ]){
~~~~~~~ ^ ~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:433:24: warning: comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (urlArg != [NSNull null]){
~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:450:24: warning: comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (urlArg != [NSNull null]){
~~~~~~ ^ ~~~~~~~~~~~~~
18 warnings generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.m:32:21: warning: comparison of distinct pointer types ('NSURL *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_licenseURL != [NSNull null]){
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.m:45:40: warning: 'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in iOS 9.0 - Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h [-Wdeprecated-declarations]
decodedData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil];
^
In module 'Foundation' imported from /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h:405:1: note: 'sendSynchronousRequest:returningResponse:error:' has been explicitly marked deprecated here
+ (nullable NSData *)sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLResponse * _Nullable * _Nullable)response error:(NSError **)error API_DEPRECATED("Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h", macos(10.3,10.11), ios(2.0,9.0), tvos(9.0,9.0)) API_UNAVAILABLE(watchos);
^
2 warnings generated.
error: the following command failed with exit code 0 but produced no further output
CompileC /Users/richbeans/Library/Developer/Xcode/DerivedData/Runner-duibrprmdvezjtakeigtfxkskwno/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/better_player.build/Objects-normal/arm64/BetterPlayer.o /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'better_player' from project 'Pods')
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PINCache", referenced from:
objc-class-ref in CacheManager.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PINCache", referenced from:
objc-class-ref in CacheManager.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command CompileSwiftSources failed with a nonzero exit code
Command CompileSwiftSources failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Pods.xcodeproj: warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'GCDWebServer' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 13.
Exited (sigterm)
Does this problem appears on clean fresh project? Did you upgrade iOS project version to 11? It's min. version supported by Better Player. Please check this stackoverflow topic to see how to clean the project: https://stackoverflow.com/questions/61805786/undefined-symbols-for-architecture-x86-64-flutter https://stackoverflow.com/questions/18408531/xcode-build-failure-undefined-symbols-for-architecture-x86-64
@ObserverMoment @wapoywapa
I believe this issue is connected with existing projects. On the new fresh project, only iOS version must be changed to 11 in deployment info.
If your problem still occurs after clearing cache please provide reproducible example. This is the only way to help you solving issue in your project. Downgrading to 0.0.73 is only temp. solution because you won't receive future updates for BP.
Hi @jhomlala. This is a pretty new project - first commit was only 7 days a go and it was a fresh install of the latest Flutter version (2.5.1).
Will check the links above and let you know if anything works.
After completing these steps the build still fails.
On project/ios folder, run pod deintegrate && rm Podfile.lock && pod install On your project folder, run flutter clean Clear the Xcode derived data by running rm -rf ~/Library/Developer/Xcode/DerivedData Open the project with Xcode and also clean by doing Cmd + Shift + K Build with flutter build ios command.
➜ sofie_ui git:(sandbox) ✗ cd ios
➜ ios git:(sandbox) ✗ pod deintegrate && rm Podfile.lock && pod install
Deintegrating `Runner.xcodeproj`
Deleted 1 'Check Pods Manifest.lock' build phases.
Deleted 1 'Embed Pods Frameworks' build phases.
- Pods_Runner.framework
Deleting Pod file references from project
- Pods-Runner.debug.xcconfig
- Pods-Runner.release.xcconfig
- Pods-Runner.profile.xcconfig
Deleted 1 empty `Frameworks` groups from project.
Removing `Pods` directory.
Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Analyzing dependencies
firebase_auth: Using Firebase SDK version '8.6.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.6.0' defined in 'firebase_core'
Downloading dependencies
Installing Cache (6.0.0)
Installing DKImagePickerController (4.3.2)
Installing DKPhotoGallery (0.0.17)
Installing FMDB (2.7.5)
Installing Firebase (8.6.0)
Installing FirebaseAuth (8.6.0)
Installing FirebaseCore (8.6.0)
Installing FirebaseCoreDiagnostics (8.8.0)
Installing Flutter (1.0.0)
Installing GCDWebServer (3.5.4)
Installing GTMSessionFetcher (1.7.0)
Installing GoogleDataTransport (9.1.0)
Installing GoogleUtilities (7.5.2)
Installing HLSCachingReverseProxyServer (0.1.0)
Installing PINCache (3.0.3)
Installing PINOperation (1.2.1)
Installing PromisesObjC (2.0.0)
Installing Reachability (3.2)
Installing SDWebImage (5.11.1)
Installing SwiftyGif (5.4.0)
Installing TOCropViewController (2.6.0)
Installing audio_session (0.0.1)
Installing better_player (0.0.1)
Installing connectivity_plus (0.0.1)
Installing file_picker (0.0.1)
Installing firebase_auth (3.1.1)
Installing firebase_core (1.6.0)
Installing flutter_keyboard_visibility (0.0.1)
Installing image_cropper (0.0.4)
Installing image_gallery_saver (1.5.0)
Installing image_picker (0.0.1)
Installing just_audio (0.0.1)
Installing libwebp (1.2.0)
Installing nanopb (2.30908.0)
Installing path_provider (0.0.1)
Installing photo_manager (1.0.0)
Installing record (0.0.1)
Installing share_plus (0.0.1)
Installing sqflite (0.0.2)
Installing uni_links (0.0.1)
Installing url_launcher (0.0.1)
Installing video_compress (0.3.0)
Installing video_player (0.0.1)
Installing video_thumbnail (0.0.1)
Installing wakelock (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 23 dependencies from the Podfile and 45 total pods installed.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
➜ ios git:(sandbox) ✗ cd ..
➜ sofie_ui git:(sandbox) ✗ flutter clean
Cleaning Xcode workspace... 6.4s
Deleting build... 913ms
Deleting .dart_tool... 3ms
Deleting .packages... 1ms
Deleting Generated.xcconfig... 0ms
Deleting flutter_export_environment.sh... 1ms
Deleting Flutter.podspec... 0ms
Deleting .flutter-plugins-dependencies... 0ms
Deleting .flutter-plugins... 0ms
➜ sofie_ui git:(sandbox) ✗ rm -rf ~/Library/Developer/Xcode/DerivedData
➜ sofie_ui git:(sandbox) ✗ flutter build ios
Warning: You are using these overridden dependencies:
! analyzer 2.3.0
! provider 6.0.0 (6.0.1 available)
Running "flutter pub get" in sofie_ui... 2,077ms
The plugin `video_thumbnail` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding.
Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.
Building com.quarksoup.sofie for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: UDU3B8HT72
Running pod install... 12.2s
Running Xcode build...
Xcode build done. 64.4s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator
Device }
{ platform:iOS Simulator, id:F22CFF4E-F835-4085-ABE0-42F91C01ABEA, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:66E46C9A-5974-4BA0-8A11-601E209274FC, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:9EE23943-E6D5-433A-A1E1-DF08E6FA0D75, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:FE099149-F267-404A-9F6F-A9A0B22B4450, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:25785D85-8EB0-488B-A6AC-6723A246541D, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:F216CAB8-92A7-4E23-AF4B-F182278FE60A, OS:15.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:24AB453B-2B3A-491A-BF41-1EB2DF66B826, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:3E608B96-C785-42C0-B75F-5738C9B02254, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:F56B7B81-D46B-4C65-947E-DFDB9859DC87, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:54B447B7-A3CF-4381-B63F-247BD98BE9A8, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:70DB19BE-9C8D-4941-BE9C-75B8A0FF2972, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:17987A77-E9EB-4DCD-89C9-04E541051FB5, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:805299B0-AFFD-40B5-9B7A-FD1B75F66D71, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:2B0589FA-B497-4735-A315-918EFE060BE9, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:19F9EDAF-6073-4D99-88E7-1544DE08BDC3, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:2BAC4DA3-3369-4C45-B603-E4637DF9D998, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:1EB767C4-C073-4F43-8A0D-FC184E05ADDB, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:F70FCFB0-5D0D-459A-87FF-5180E4A2052F, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:1A19F77E-E04F-4641-A1EA-748803956CBB, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:BA847246-83A3-4E44-A8BC-565BC2A4DD6F, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:8CBBAF57-1109-429B-8F49-06EE56FD0C99, OS:15.0, name:iPod touch (7th generation) }
** BUILD FAILED **
Xcode's output:
↳
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/photo_manager-1.3.2/ios/Classes/core/PMManager.m:845:59: warning:
'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
BOOL success = [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/photo_manager/photo_manager-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/UIKit.framework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:38: warning: variable 'sum_left' may
be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1426:3: note: variable 'sum_left' is
declared here
uint16x8_t sum_left;
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:48: warning: variable 'sum_top' may
be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1425:3: note: variable 'sum_top' is
declared here
uint16x8_t sum_top;
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:38: warning: variable 'sum_left' may
be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1509:3: note: variable 'sum_left' is
declared here
uint16x8_t sum_left;
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:48: warning: variable 'sum_top' may
be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/dsp/dec_neon.c:1508:3: note: variable 'sum_top' is
declared here
uint16x8_t sum_top;
^
4 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:694:12: warning: variable
'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/libwebp/src/enc/backward_references_enc.c:626:20: note: initialize
the variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:17:44:
warning: 'UIImagePickerControllerReferenceURL' is deprecated: first deprecated in iOS 11.0 - Will be removed in a future
release, use PHPicker. [-Wdeprecated-declarations]
NSURL *referenceURL = [info objectForKey:UIImagePickerControllerReferenceURL];
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/UIKit.framework/Headers/UIImagePickerController.h:62:51: note: 'UIImagePickerControllerReferenceURL' has been explicitly marked
deprecated here
UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerReferenceURL API_DEPRECATED("Will be removed in a
future release, use PHPicker.", ios(4.1, 11.0)) API_UNAVAILABLE(tvos); // an NSURL that references an asset in the AssetsLibrary
framework
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.m:21:47:
warning: 'fetchAssetsWithALAssetURLs:options:' is deprecated: first deprecated in iOS 11 - Will be removed in a future release
[-Wdeprecated-declarations]
PHFetchResult<PHAsset *> *result = [PHAsset fetchAssetsWithALAssetURLs:@[ referenceURL ]
^
In module 'Photos' imported from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/ios/Classes/FLTImagePickerPhotoAssetUtil.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/Photos.framework/Headers/PHAsset.h:77:1: note: 'fetchAssetsWithALAssetURLs:options:' has been explicitly marked deprecated here
+ (PHFetchResult<PHAsset *> *)fetchAssetsWithALAssetURLs:(NSArray<NSURL *> *)assetURLs options:(nullable PHFetchOptions
*)options API_DEPRECATED("Will be removed in a future release", ios(8, 11), tvos(8, 11)) API_UNAVAILABLE(macos);
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Reachability/Reachability.m:465:63: warning: cast to smaller integer
type 'unsigned int' from 'Reachability *' [-Wpointer-to-int-cast]
NSStringFromClass([self class]), (unsigned int) self, [self currentReachabilityFlags]];
^~~~~~~~~~~~~~~~~~~
1 warning generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewCont
roller.m:87:14: warning: 'automaticallyAdjustsScrollViewInsets' is deprecated: first deprecated in iOS 11.0 - Use UIScrollView's
contentInsetAdjustmentBehavior instead [-Wdeprecated-declarations]
self.automaticallyAdjustsScrollViewInsets = NO;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/UIKit.framework/Headers/UIViewController.h:257:34: note: 'automaticallyAdjustsScrollViewInsets' has been explicitly marked
deprecated here
@property(nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets API_DEPRECATED("Use UIScrollView's
contentInsetAdjustmentBehavior instead", ios(7.0,11.0),tvos(7.0,11.0)); // Defaults to YES
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewCont
roller.m:1297:36: warning: 'topLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use view.safeAreaLayoutGuide.topAnchor
instead of topLayoutGuide.bottomAnchor [-Wdeprecated-declarations]
statusBarHeight = self.topLayoutGuide.length;
^
In module 'UIKit' imported from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/TOCropViewController/TOCropViewController-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/UIKit.framework/Headers/UIViewController.h:500:58: note: 'topLayoutGuide' has been explicitly marked deprecated here
@property(nonatomic,readonly,strong) id<UILayoutSupport> topLayoutGuide API_DEPRECATED("Use view.safeAreaLayoutGuide.topAnchor
instead of topLayoutGuide.bottomAnchor", ios(7.0,11.0), tvos(7.0,11.0));
^
2 warnings generated.
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:338:37: warning:
'archivedDataWithRootObject:' is deprecated: first deprecated in iOS 12.0 - Use
+archivedDataWithRootObject:requiringSecureCoding:error: instead [-Wdeprecated-declarations]
return [NSKeyedArchiver archivedDataWithRootObject:object];
^
In module 'Foundation' imported from
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/Foundation.framework/Headers/NSKeyedArchiver.h:47:1: note: 'archivedDataWithRootObject:' has been explicitly marked deprecated
here
+ (NSData *)archivedDataWithRootObject:(id)rootObject API_DEPRECATED("Use
+archivedDataWithRootObject:requiringSecureCoding:error: instead", macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0),
tvos(9.0,12.0));
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.m:346:35: warning:
'unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead
[-Wdeprecated-declarations]
return [NSKeyedUnarchiver unarchiveObjectWithData:data];
^
In module 'Foundation' imported from
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/PINCache/Source/PINDiskCache.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/Foundation.framework/Headers/NSKeyedArchiver.h:152:1: note: 'unarchiveObjectWithData:' has been explicitly marked deprecated
here
+ (nullable id)unarchiveObjectWithData:(NSData *)data API_DEPRECATED("Use +unarchivedObjectOfClass:fromData:error: instead",
macosx(10.2,10.14), ios(2.0,12.0), watchos(2.0,5.0), tvos(9.0,12.0));
^
2 warnings generated.
Command CompileSwiftSources failed with a nonzero exit code
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9:
note: in file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: warning:
'width' used as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: note: introduce
a parameter name to make 'width' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:39: note: or insert
whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/better_player-umbrella.h"
^
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support Files/better_player/better_player-umbrella.h:13:9:
note: in file included from /Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Target Support
Files/better_player/better_player-umbrella.h:13:
#import "BetterPlayer.h"
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: warning:
'height' used as the name of the previous parameter rather than as part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: note: introduce
a parameter name to make 'height' part of the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
//Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:53: note: or insert
whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/CacheManager.swift:214:13: warning:
initialization of immutable value 'str' was never used; consider replacing with assignment to '_' or removing it
let str = String(format: "%.1f%%", percentage)
~~~~^~~
_
In file included from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:5:
In file included from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.h:11:
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: warning: 'width'
used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: note: introduce
a parameter name to make 'width' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:39: note: or insert
whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: warning:
'height' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: note: introduce
a parameter name to make 'height' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:53: note: or insert
whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:179:64: warning:
use of C-style parameters in Objective-C method declarations is deprecated [-Wdeprecated-declarations]
- (void) setupRemoteCommandNotification:(BetterPlayer*)player, NSString* title, NSString* author , NSString* imageUrl{
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:238:52: warning:
use of C-style parameters in Objective-C method declarations is deprecated [-Wdeprecated-declarations]
- (void) setupUpdateListener:(BetterPlayer*)player,NSString* title, NSString* author,NSString* imageUrl {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:62:12: warning:
incompatible pointer types returning 'BetterPlayerView *' from a function with result type 'NSObject<FlutterPlatformView> *
_Nonnull' [-Wincompatible-pointer-types]
return player;
^~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:138:33: warning:
comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:149:33: warning:
comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:156:33: warning:
comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:166:37: warning:
comparison of distinct pointer types ('BetterPlayer *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_notificationPlayer != [NSNull null]){
~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:167:56: warning:
incompatible pointer types initializing 'MPChangePlaybackPositionCommandEvent *' with an expression of type
'MPChangePlaybackRateCommandEvent *' [-Wincompatible-pointer-types]
MPChangePlaybackPositionCommandEvent * playbackEvent = (MPChangePlaybackRateCommandEvent * ) event;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:170:46: warning:
implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
[_notificationPlayer seekTo: millis];
~ ^~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:191:18: warning:
comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (imageUrl != [NSNull null]){
~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:195:17: warning:
comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (key != [NSNull null]){
~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:213:92: warning:
'initWithImage:' is deprecated: first deprecated in iOS 10.0 - Use -initWithBoundsSize:requestHandler:
[-Wdeprecated-declarations]
MPMediaItemArtwork* artworkImage = [[MPMediaItemArtwork alloc] initWithImage: tempArtworkImage];
^
In module 'MediaPlayer' imported from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/MediaPlayer.framework/Headers/MPMediaItem.h:248:1: note: 'initWithImage:' has been explicitly marked deprecated here
- (instancetype)initWithImage:(UIImage *)image MP_DEPRECATED("Use -initWithBoundsSize:requestHandler:", ios(5.0, 10.0));
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:326:25: warning:
comparison of distinct pointer types ('NSDictionary *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (headers == [NSNull null] || headers == NULL){
~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:429:25: warning:
comparison of distinct pointer types ('NSDictionary *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (headers == [ NSNull null ]){
~~~~~~~ ^ ~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:433:24: warning:
comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (urlArg != [NSNull null]){
~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerPlugin.m:450:24: warning:
comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (urlArg != [NSNull null]){
~~~~~~ ^ ~~~~~~~~~~~~~
18 warnings generated.
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.
m:32:21: warning: comparison of distinct pointer types ('NSURL *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (_licenseURL != [NSNull null]){
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.
m:45:40: warning: 'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in iOS 9.0 - Use
[NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h [-Wdeprecated-declarations]
decodedData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil];
^
In module 'Foundation' imported from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayerEzDrmAssetsLoaderDelegate.
h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/Foundation.framework/Headers/NSURLConnection.h:405:1: note: 'sendSynchronousRequest:returningResponse:error:' has been
explicitly marked deprecated here
+ (nullable NSData *)sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLResponse * _Nullable *
_Nullable)response error:(NSError **)error API_DEPRECATED("Use [NSURLSession dataTaskWithRequest:completionHandler:] (see
NSURLSession.h", macos(10.3,10.11), ios(2.0,9.0), tvos(9.0,9.0)) API_UNAVAILABLE(watchos);
^
2 warnings generated.
In file included from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:5:
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: warning: 'width'
used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:34: note: introduce
a parameter name to make 'width' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:39: note: or insert
whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: warning:
'height' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:47: note: introduce
a parameter name to make 'height' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:53:53: note: or insert
whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:34: warning:
'width' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:34: note: introduce
a parameter name to make 'width' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:39: note: or insert
whitespace before ':' to use 'width' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:47: warning:
'height' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:47: note: introduce
a parameter name to make 'height' part of the selector
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:572:53: note: or insert
whitespace before ':' to use 'height' as parameter name and have an empty entry in the selector
- (void)setTrackParameters:(int) width: (int) height: (int)bitrate {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:200:17: warning:
comparison of distinct pointer types ('NSDictionary *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (headers == [NSNull null] || headers == NULL){
~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:206:22: warning:
comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (cacheKey == [NSNull null]){
~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:213:46: warning:
comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (certificateUrl && certificateUrl != [NSNull null] && [certificateUrl length] > 0) {
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:219:47: warning:
sending 'BetterPlayerEzDrmAssetsLoaderDelegate * _Nonnull __strong' to parameter of incompatible type
'id<AVAssetResourceLoaderDelegate> _Nullable'
[asset.resourceLoader setDelegate:_loaderDelegate queue:streamQueue];
^~~~~~~~~~~~~~~
In module 'AVFoundation' imported from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks
/AVFoundation.framework/Headers/AVAssetResourceLoader.h:51:66: note: passing argument to parameter 'delegate' here
- (void)setDelegate:(nullable id <AVAssetResourceLoaderDelegate>)delegate queue:(nullable dispatch_queue_t)delegateQueue;
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:224:9: warning:
@available does not guard availability here; use if (@available) instead [-Wunsupported-availability-guard]
if (@available(iOS 10.0, *) && overriddenDuration > 0) {
^
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:321:52: warning:
comparison between pointer and integer ('AVPlayerTimeControlStatus' (aka 'enum AVPlayerTimeControlStatus') and 'NSNull *
_Nonnull') [-Wpointer-integer-compare]
if (_lastAvPlayerTimeControlStatus != [NSNull null] && _lastAvPlayerTimeControlStatus ==
_player.timeControlStatus){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:378:23: warning: format
string is not a string literal (potentially insecure) [-Wformat-security]
NSLog(item.error.debugDescription);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:378:23: note: treat the
string as an argument to avoid this
NSLog(item.error.debugDescription);
^
@"%@",
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:529:13: warning: block
implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
_player.rate = _playerRate;
^
self->
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:529:28: warning: block
implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
_player.rate = _playerRate;
^
self->
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:655:14: warning: null
passed to a callee that requires a non-null argument [-Wnonnull]
self._playerLayer = nil;
^ ~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:747:15: warning: format
string is not a string literal (potentially insecure) [-Wformat-security]
NSLog(exception.debugDescription);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:747:15: note: treat the
string as an argument to avoid this
NSLog(exception.debugDescription);
^
@"%@",
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:22:17: warning: method
definition for 'FLTCMTimeToMillis:' not found [-Wincomplete-implementation]
@implementation BetterPlayer
^
In file included from
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.m:5:
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/better_player-0.0.76/ios/Classes/BetterPlayer.h:58:1: note: method
'FLTCMTimeToMillis:' declared here
- (int64_t) FLTCMTimeToMillis:(CMTime) time;
^
16 warnings generated.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PINCache", referenced from:
objc-class-ref in CacheManager.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
/Users/richbeans/MyFiles/FitnessApps/Apps/sofie_ui/ios/Pods/Pods.xcodeproj: warning: MobileCoreServices has been renamed. Use
CoreServices instead. (in target 'GCDWebServer' from project 'Pods')
Encountered error while building for device.
Do we have a theory for why 0.073 works but later versions do not? This may help me focus in on the actual issue.
Just made a fresh install with only BP in the pubspec and flutter run
builds successfully...
In version 0.0.74 (https://github.com/jhomlala/betterplayer/releases/tag/0.0.74) we have introduced caching solution for iOS. For HLS data sources we're using https://github.com/StyleShare/HLSCachingReverseProxyServer which uses PINCache.
Probably some other dependency from your app collides with Better Player. Can you try adding one by one libraries to see which collide with BP?
Fresh installation may work fine because there's no other library which collide.
Finally go to the bottom of this one, ...I think.
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
I had added these lines to my podfile - they were needed when I first set this project up last week due to some pods not having been updated to target greater than iOS 8.0. Removing them - and then doing all the cache clearing / cleaning possible - then restarting vscode - has worked.
I can only assume that whichever packages were causing the original issue which required this fix above have now updated their pod dependencies to work without it. But somehow this line was causing an issue?
Thanks for your time in troubleshooting this one - hopefully this solution will help others as this podfile fix is on stack and may be out there causing issues.
Great to hear that it has been fixed on your project.
Finally go to the bottom of this one, ...I think.
target.build_configurations.each do |config| config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' end
I had added these lines to my podfile - they were needed when I first set this project up last week due to some pods not having been updated to target greater than iOS 8.0. Removing them - and then doing all the cache clearing / cleaning possible - then restarting vscode - has worked.
I can only assume that whichever packages were causing the original issue which required this fix above have now updated their pod dependencies to work without it. But somehow this line was causing an issue?
Thanks for your time in troubleshooting this one - hopefully this solution will help others as this podfile fix is on stack and may be out there causing issues.
Finally go to the bottom of this one, ...I think.
target.build_configurations.each do |config| config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' end
I had added these lines to my podfile - they were needed when I first set this project up last week due to some pods not having been updated to target greater than iOS 8.0. Removing them - and then doing all the cache clearing / cleaning possible - then restarting vscode - has worked.
I can only assume that whichever packages were causing the original issue which required this fix above have now updated their pod dependencies to work without it. But somehow this line was causing an issue?
Thanks for your time in troubleshooting this one - hopefully this solution will help others as this podfile fix is on stack and may be out there causing issues.
@ObserverMoment @jhomlala build still failed for me :(
I have this at the end of my Podfie ( I have not update this file since 1 year )
platform :ios, '12.0' ... ... ... post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' end end end
what I should do ? should I remove this ? can you please provide the exact procedure / command to upgrade this package from 0.0.73 to 0.0.76
Try removing
target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' end
For flutter 2.5 this manual fix for iOS pod targets was what caused the issue, for my setup anyway.
On Fri, 1 Oct 2021 at 20:04, azazadev @.***> wrote:
Finally go to the bottom of this one, ...I think.
target.build_configurations.each do |config| config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' end
I had added these lines to my podfile - they were needed when I first set this project up last week due to some pods not having been updated to target greater than iOS 8.0. Removing them - and then doing all the cache clearing / cleaning possible - then restarting vscode - has worked.
I can only assume that whichever packages were causing the original issue which required this fix above have now updated their pod dependencies to work without it. But somehow this line was causing an issue?
Thanks for your time in troubleshooting this one - hopefully this solution will help others as this podfile fix is on stack and may be out there causing issues.
Finally go to the bottom of this one, ...I think.
target.build_configurations.each do |config| config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' end
I had added these lines to my podfile - they were needed when I first set this project up last week due to some pods not having been updated to target greater than iOS 8.0. Removing them - and then doing all the cache clearing / cleaning possible - then restarting vscode - has worked.
I can only assume that whichever packages were causing the original issue which required this fix above have now updated their pod dependencies to work without it. But somehow this line was causing an issue?
Thanks for your time in troubleshooting this one - hopefully this solution will help others as this podfile fix is on stack and may be out there causing issues.
@ObserverMoment https://github.com/ObserverMoment @jhomlala https://github.com/jhomlala build still failed for me :(
I have this at the end of my Podfie ( I have not update this file since 1 year )
platform :ios, '12.0' ... ... ... post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' end end end
what I should do ? should I remove this ? can you please provide the exact procedure / command to upgrade this package from 0.0.73 to 0.0.76
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jhomlala/betterplayer/issues/714#issuecomment-932482052, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5FDKXPMMZPRM5SBXKCHQTUEYA45ANCNFSM5EN4B6NQ .
Removing this hardcoded iOS version for each target should fix issue.
Usually you just need to to update iOS version to 11 and that's all. If you have modified iOS configuration previously then it will cause problem like above. Anyway there's simple solution for that. Just setup fresh new project with Flutter 2.5 and copy iOS files from new project to old project. This will clean all unnecessary codes like from above.
Thanks @ObserverMoment @jhomlala, working after updating my Podfile with @ObserverMoment suggestion
@ObserverMoment see #787 :)
LLVM_SYMBOLIZER_PATH
to point to it): 0 swift-frontend 0x000000010b6e76f7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39 1 swift-frontend 0x000000010b6e6688 llvm::sys::RunSignalHandlers() + 248 2 swift-frontend 0x000000010b6e7d06 SignalHandler(int) + 278 3 libsystem_platform.dylib 0x00007fff204afd7d _sigtramp + 29 4 libsystem_platform.dylib 0x00007ffee94c5310 _sigtramp + 18446744072786892208 5 swift-frontend 0x00000001071f7e47 (anonymous namespace)::PredictableDeadAllocationElimination::run() + 6855 6 swift-frontend 0x00000001072247b9 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 4409 7 swift-frontend 0x000000010722092b swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 155 8 swift-frontend 0x000000010723b20c swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 60 9 swift-frontend 0x0000000107229005 llvm::Expected