Open PierluigiV opened 11 months ago
Hey. Read the README file, scroll to the Before you go to AppStore.
but using this code: ## Before you go to AppStore
The plugin supports TrueDepth API. In case you didn't use it, your app will be rejected by Apple. Hence you need to remove any TrueDepth functionality by modifying your Podfile
file
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
... # Here are some configurations automatically generated by flutter
config.build_settings['OTHER_SWIFT_FLAGS'] = '-DDISABLE_TRUEDEPTH_API'
end
end
end
i have the problem when compiling in android studio on ios this is my code: post_install do |installer| installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [ '$(inherited)',
## dart: PermissionGroup.camera
'PERMISSION_CAMERA=1',
## dart: PermissionGroup.photos
'PERMISSION_PHOTOS=1',
## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_LOCATION=1',
## dart: PermissionGroup.sensors
'PERMISSION_SENSORS=1',
## dart: PermissionGroup.bluetooth
'PERMISSION_BLUETOOTH=1',
'-DDISABLE_TRUEDEPTH_API',
]
end
end
end
You don't need to put it in GCC_PREPROCESSOR_DEFINITIONS
. Follow the documentation:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['OTHER_SWIFT_FLAGS'] = '-DDISABLE_TRUEDEPTH_API'
... # Your other stuff
end
end
end
It is already in the gcc preprocessor definitions
@PierluigiV, please read the first sentence of my response one more time.
I have an issue and i havo no idea how to fix it, i've tried different solutions but none works properly. The issue is that apple store development team reject the app due to the use of the true Depth APIs, does anyone have an idea on how solve this problem? Thanks a lot