Skip to content

Commit

Permalink
fix: iOS camera permission not working (#3191)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Oct 22, 2022
1 parent cc1cc4a commit 6c5be7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/app/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'

config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_CAMERA=1',
'PERMISSION_PHOTOS=1',
]
end
end
end

0 comments on commit 6c5be7e

Please sign in to comment.