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 14 Build error: Stored properties cannot be marked potentially unavailable with '@available' #1127

Closed
cksoft0807 opened this issue Sep 18, 2022 · 21 comments
Labels
iOS Issue applies to iOS platform needs investigation stale

Comments

@cksoft0807
Copy link

Because of the dependency DKImagePickerController i can not compile for IOS with XCode 14 (M1 System).

Swift Compiler Error (Xcode): Stored properties cannot be marked potentially unavailable with '@available'
/Users/carstenkunsken/Documents/Flutter/test123/ios/Pods/DKImagePickerController/Sources/DKImagePickerController/DKImagePickerController.swift:67:5

@cksoft0807 cksoft0807 added the new issue An issue that hasn't yet been seen from the maintainer label Sep 18, 2022
@dev-thinks
Copy link

any way we can overcome this issue?. bump for me as well. in XCode 14 M1.

@samtoya
Copy link

samtoya commented Sep 18, 2022

+1

@CHA7R1K
Copy link

CHA7R1K commented Sep 19, 2022

My current workaround is change global platform in Podfile to :
platform :ios, '14'

@miguelpruivo
Copy link
Owner

Dup of #1121.

@samtoya
Copy link

samtoya commented Sep 19, 2022

This also did not work for me.

@dev-thinks
Copy link

yes .workaround is not working. (bumping to ios 14 in pod or setting up the development team explicitly)

@sticksen
Copy link

@miguelpruivo I don´t think this is a dup.
The mentioned Issue is about signing, this one is about (possibly) a new Swift language version that was shipped with Xcode 14.

@miguelpruivo miguelpruivo reopened this Sep 20, 2022
@miguelpruivo
Copy link
Owner

@sticksen anyway, this issue should be opened in the DKImagePickerController repo and followed there since it relates directly to it.

@sticksen
Copy link

sticksen commented Sep 20, 2022

@miguelpruivo Agreed, seems to be already fixed there (in version 4.3.4): zhangao0086/DKImagePickerController#705

@miguelpruivo
Copy link
Owner

@sticksen looks like the user updated the post saying that isn't also working, despite the 4.3.4 update.

@mugikhan
Copy link

+1 Also not working for me

@SamTienz
Copy link

How can I update the DKImagePickerController to 4.3.4 by flutter pub get?

@miguelpruivo
Copy link
Owner

How can I update the DKImagePickerController to 4.3.4 by flutter pub get?

You'll have to override the dependency in your podfile, but that doesn't solve it.

@MrObe13
Copy link

MrObe13 commented Sep 23, 2022

Same issue

@amantoux
Copy link

amantoux commented Sep 26, 2022

Check this out zhangao0086/DKImagePickerController#705 (comment)

How can I update the DKImagePickerController to 4.3.4 by flutter pub get?

You'll have to override the dependency in your podfile, but that doesn't solve it.

This might not work because of #999 (comment)
Had to use this workaround in the past

@miguelpruivo miguelpruivo mentioned this issue Sep 26, 2022
3 tasks
@miguelpruivo miguelpruivo added needs investigation iOS Issue applies to iOS platform and removed new issue An issue that hasn't yet been seen from the maintainer labels Sep 26, 2022
@miguelpruivo
Copy link
Owner

miguelpruivo commented Sep 26, 2022

Let me know if someone find a solution for this or issue a PR with it. I don't really have much time as of now to investigate it, but I'll have an eye on it since this is a prioritary issue.

@SamTienz
Copy link

SamTienz commented Sep 27, 2022

Hi, I'm archive successfully.

I'm not sure can help you guys. but still share my steps.

1. Make sure your DKImagePickerController is 4.3.4

I'm follow this comment in issue change my podfile to update my DKImagePickerController to 4.3.4

2. Add config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'

And follow this comment in issue make DKImagePickerController don't need a development team

3. Re - pod install completely

First, delete podfile.lock.
And I run these command sequentially
pod deintegrate
pod repo update (Maybe someone did this)
pod install

4. Make sure your target Enable Bitcode is NO in the build setting in Xcode14

5. Clean build folder in Xcode

6. Archive

7. I'm archive successfully and upload my app to TestFlight without any wrong message.

hope can help you
and sorry about poor English😅.

@dev-thinks
Copy link

Workaround mentioned in here, zhangao0086/DKImagePickerController#705 (comment) and zhangao0086/DKImagePickerController#705 (comment)

are working.
we have to make sure we are deleting the existing podfile.lock before updating the pod.

@github-actions
Copy link

github-actions bot commented Oct 5, 2022

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Oct 5, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@savasadar
Copy link

savasadar commented Jan 4, 2023

Go to "ios" directory and run pod update in terminal. This is working for me instead of pod install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Issue applies to iOS platform needs investigation stale
Projects
None yet
Development

No branches or pull requests