Skip to content

Warnings with ios14 / xcode 12 #229

Open
@michael-dots

Description

@michael-dots

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions