flutter_file_picker icon indicating copy to clipboard operation
flutter_file_picker copied to clipboard

XCode 14 Build error: Stored properties cannot be marked potentially unavailable with '@available'

Open cksoft0807 opened this issue 2 years ago • 13 comments

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 avatar Sep 18 '22 06:09 cksoft0807

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

dev-thinks avatar Sep 18 '22 15:09 dev-thinks

+1

samtoya avatar Sep 18 '22 23:09 samtoya

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

CHA7R1K avatar Sep 19 '22 04:09 CHA7R1K

Dup of #1121.

miguelpruivo avatar Sep 19 '22 09:09 miguelpruivo

This also did not work for me.

samtoya avatar Sep 19 '22 10:09 samtoya

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

dev-thinks avatar Sep 19 '22 16:09 dev-thinks

@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.

sticksen avatar Sep 20 '22 08:09 sticksen

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

miguelpruivo avatar Sep 20 '22 08:09 miguelpruivo

@miguelpruivo Agreed, seems to be already fixed there (in version 4.3.4): https://github.com/zhangao0086/DKImagePickerController/issues/705

sticksen avatar Sep 20 '22 08:09 sticksen

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

miguelpruivo avatar Sep 20 '22 08:09 miguelpruivo

+1 Also not working for me

mugikhan avatar Sep 20 '22 20:09 mugikhan

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

SamTienz avatar Sep 21 '22 08:09 SamTienz

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.

miguelpruivo avatar Sep 21 '22 08:09 miguelpruivo

Same issue

MrObe13 avatar Sep 23 '22 09:09 MrObe13

Check this out https://github.com/zhangao0086/DKImagePickerController/issues/705#issuecomment-1257483269

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 https://github.com/miguelpruivo/flutter_file_picker/issues/999#issuecomment-1077699168 Had to use this workaround in the past

amantoux avatar Sep 26 '22 05:09 amantoux

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.

miguelpruivo avatar Sep 26 '22 08:09 miguelpruivo

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😅.

SamTienz avatar Sep 27 '22 02:09 SamTienz

Workaround mentioned in here, https://github.com/zhangao0086/DKImagePickerController/issues/705#issuecomment-1257483269 and https://github.com/zhangao0086/DKImagePickerController/issues/705#issuecomment-1257506474

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

dev-thinks avatar Sep 27 '22 03:09 dev-thinks

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

github-actions[bot] avatar Oct 05 '22 02:10 github-actions[bot]

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

github-actions[bot] avatar Oct 19 '22 02:10 github-actions[bot]

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

savasadar avatar Jan 04 '23 09:01 savasadar