Skip to content

Warnings with ios14 / xcode 12 #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michael-dots opened this issue Sep 23, 2020 · 0 comments
Open

Warnings with ios14 / xcode 12 #229

michael-dots opened this issue Sep 23, 2020 · 0 comments

Comments

@michael-dots
Copy link

Since XCode 12 it's necessary to set minimum IOS version to 9. So getting many warnings from this plugin.

Xcode build...
/Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:62:3: warning: 'ALAssetRepresentation' is deprecated: first deprecated in iOS 9 - Use
PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
ALAssetRepresentation *_assetRepresentation;
^
In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:20:12: note:
'ALAssetRepresentation' has been explicitly marked deprecated here
@interface ALAssetRepresentation : NSObject {
^
/Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:93:4: warning: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9 - Use PHPhotoLibrary from
the Photos framework instead [-Wdeprecated-declarations]

  • (ALAssetsLibrary *)defaultAssetsLibrary {
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:78:12: note:
    'ALAssetsLibrary' has been explicitly marked deprecated here
    @interface ALAssetsLibrary : NSObject {
    ^
    /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:95:10: warning: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9 - Use PHPhotoLibrary
    from the Photos framework instead [-Wdeprecated-declarations]
    static ALAssetsLibrary *library = nil;
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:78:12: note:
    'ALAssetsLibrary' has been explicitly marked deprecated here
    @interface ALAssetsLibrary : NSObject {
    ^
    /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:459:78: warning: 'ALAsset' is deprecated: first deprecated in iOS 9 - Use PHAsset from the Photos
    framework instead [-Wdeprecated-declarations]
    [[FBSDKShareAPI defaultAssetsLibrary] assetForURL:videoURL resultBlock:^(ALAsset *asset) {
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:40:12: note:
    'ALAsset' has been explicitly marked deprecated here
    @interface ALAsset : NSObject {
    ^
    /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:460:43: warning: 'defaultRepresentation' is deprecated: first deprecated in iOS 9 - Use
    PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
    self->_assetRepresentation = [asset defaultRepresentation];
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:49:1: note:
    'defaultRepresentation' has been explicitly marked deprecated here
  • (ALAssetRepresentation *)defaultRepresentation AL_DEPRECATED(4, "Use PHImageRequestOptions with the PHImageManager from the Photos framework instead");
    ^
    /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:461:64: warning: 'size' is deprecated: first deprecated in iOS 9 - Use
    requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead [-Wdeprecated-declarations]
    NSUInteger size = (NSUInteger)self->_assetRepresentation.size;
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:32:1: note:
    'size' has been explicitly marked deprecated here
  • (long long)size AL_DEPRECATED(4, "Use requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead");
    ^
    /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:461:64: warning: 'size' is deprecated: first deprecated in iOS 9 - Use
    requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead [-Wdeprecated-declarations]
    NSUInteger size = (NSUInteger)self->_assetRepresentation.size;
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:32:1: note:
    'size' has been explicitly marked deprecated here
  • (long long)size AL_DEPRECATED(4, "Use requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead");
    ^
    /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:459:43: warning: 'assetForURL:resultBlock:failureBlock:' is deprecated: first deprecated in iOS 9 -
    Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use
    fetchAssetsWithALAssetURLs:options:) from the Photos framework instead [-Wdeprecated-declarations]
    [[FBSDKShareAPI defaultAssetsLibrary] assetForURL:videoURL resultBlock:^(ALAsset *asset) {
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:93:1: note:
    'assetForURL:resultBlock:failureBlock:' has been explicitly marked deprecated here
  • (void)assetForURL:(NSURL *)assetURL resultBlock:(ALAssetsLibraryAssetForURLResultBlock)resultBlock failureBlock:(ALAssetsLibraryAccessFailureBlock)failureBlock AL_DEPRECATED(4, "Use fetchAsset...
    ^
    /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:833:55: warning: 'getBytes:fromOffset:length:error:' is deprecated: first deprecated in iOS 9 - Use
    requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead [-Wdeprecated-declarations]
    NSUInteger bufferedLength = [_assetRepresentation getBytes:data.mutableBytes fromOffset:startOffset length:chunkSize error:&error];
    ^
    In module 'AssetsLibrary' imported from /Users/michael/Source/JKG/platforms/ios/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareAPI.m:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:38:1: note:
    'getBytes:fromOffset:length:error:' has been explicitly marked deprecated here
  • (NSUInteger)getBytes:(uint8_t *)buffer fromOffset:(long long)offset length:(NSUInteger)length error:(NSError **)error AL_DEPRECATED(4, "Use requestImageDataForAsset:options:resultHandler: on P...
    ^
    9 warnings generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant