Skip to content
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

Xcode 15 beta - Stored properties cannot be marked unavailable with '@available' #807

Open
GaneshRajuGalla opened this issue Nov 18, 2023 · 6 comments

Comments

@GaneshRajuGalla
Copy link

GaneshRajuGalla commented Nov 18, 2023

While i run the project in Xcode 15 i faced following issue in YPImagePickerConfiguration.swift

` @available(iOS, obsoleted: 3.0.0, renamed: "video.compression")
public var videoCompression: String = AVAssetExportPresetHighestQuality

@available(iOS, obsoleted: 3.0.0, renamed: "video.fileType")
public var videoExtension: AVFileType = .mov

@available(iOS, obsoleted: 3.0.0, renamed: "video.recordingTimeLimit")
public var videoRecordingTimeLimit: TimeInterval = 60.0

@available(iOS, obsoleted: 3.0.0, renamed: "video.libraryTimeLimit")
public var videoFromLibraryTimeLimit: TimeInterval = 60.0

@available(iOS, obsoleted: 3.0.0, renamed: "video.minimumTimeLimit")
public var videoMinimumTimeLimit: TimeInterval = 3.0

@available(iOS, obsoleted: 3.0.0, renamed: "video.trimmerMaxDuration")
public var trimmerMaxDuration: Double = 60.0

@available(iOS, obsoleted: 3.0.0, renamed: "video.trimmerMinDuration")
public var trimmerMinDuration: Double = 3.0

@available(iOS, obsoleted: 3.0.0, renamed: "library.onlySquare")
public var onlySquareImagesFromLibrary = false

@available(iOS, obsoleted: 3.0.0, renamed: "library.onlySquare")
public var onlySquareFromLibrary = false

@available(iOS, obsoleted: 3.0.0, renamed: "targetImageSize")
public var libraryTargetImageSize = YPImageSize.original

@available(iOS, obsoleted: 3.0.0, renamed: "library.mediaType")
public var showsVideoInLibrary = false

@available(iOS, obsoleted: 3.0.0, renamed: "library.mediaType")
public var libraryMediaType = YPlibraryMediaType.photo

@available(iOS, obsoleted: 3.0.0, renamed: "library.maxNumberOfItems")
public var maxNumberOfItems = 1

`

Screenshot 2023-11-19 at 12 25 27 AM
@Jeonbonggil
Copy link

I'm facing the same issue. My Development Enviroment is Xcode 14.3.1 and Command Line Tools Xcode 15.0.1.
when I deploy through fastlane, this error occur to show in Terminal.

@mehul86
Copy link

mehul86 commented Nov 25, 2023

I am having the same issue. Any solutions?

@NighWish
Copy link

NighWish commented Dec 5, 2023

Any solutions? the new version is delete its

@markwadedotnet
Copy link

Same issue for me. My app won't compile. I'd rather not have to look for another library.

@sathishq
Copy link

@GaneshRajuGalla I faced the same issue and i fixed using this code 100% worked for me.
@available(iOS, obsoleted: 3.0.0, renamed: "video.compression")
public var videoCompression: String {
get {
return AVAssetExportPresetHighestQuality
}
}

@available(iOS, obsoleted: 3.0.0, renamed: "video.fileType")
public var videoExtension: AVFileType {
    get {
        return .mov
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "video.recordingTimeLimit")
public var videoRecordingTimeLimit: TimeInterval {
    get {
        return 60.0
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "video.libraryTimeLimit")
public var videoFromLibraryTimeLimit: TimeInterval {
    get {
        return 60.0
    }
}

 @available(iOS, obsoleted: 3.0.0, renamed: "video.minimumTimeLimit")
public var videoMinimumTimeLimit: TimeInterval {
    get {
        return 3.0
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "video.trimmerMaxDuration")
public var trimmerMaxDuration: Double {
    get {
        return 60.0
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "video.trimmerMinDuration")
public var trimmerMinDuration: Double {
    get {
        return 3.0
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "library.onlySquare")
public var onlySquareImagesFromLibrary: Bool {
    get {
        return false
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "library.onlySquare")
public var onlySquareFromLibrary: Bool {
    get {
        return false
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "targetImageSize")
public var libraryTargetImageSize: Any {
    get {
        return YPImageSize.original
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "library.mediaType")
public var showsVideoInLibrary: Bool {
    get {
        return false
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "library.mediaType")
public var libraryMediaType: Any {
    get {
        return YPlibraryMediaType.photo
    }
}

@available(iOS, obsoleted: 3.0.0, renamed: "library.maxNumberOfItems")
public var maxNumberOfItems: Int {
    get {
        return 1
    }
} 

@ahmed-a-elfattah
Copy link

@sathishq Thanks, saved my day

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

7 participants