flutter_file_picker
flutter_file_picker copied to clipboard
XCode 14 Build error: Stored properties cannot be marked potentially unavailable with '@available'
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
any way we can overcome this issue?. bump for me as well. in XCode 14 M1.
+1
My current workaround is change global platform in Podfile to :
platform :ios, '14'
Dup of #1121.
This also did not work for me.
yes .workaround is not working. (bumping to ios 14 in pod or setting up the development team explicitly)
@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 anyway, this issue should be opened in the DKImagePickerController repo and followed there since it relates directly to it.
@miguelpruivo Agreed, seems to be already fixed there (in version 4.3.4): https://github.com/zhangao0086/DKImagePickerController/issues/705
@sticksen looks like the user updated the post saying that isn't also working, despite the 4.3.4 update.
+1 Also not working for me
How can I update the DKImagePickerController to 4.3.4 by flutter pub get
?
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.
Same issue
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
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.
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😅.
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.
This issue is stale because it has been open for 14 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Go to "ios" directory and run pod update
in terminal. This is working for me instead of pod install