arkit_flutter_plugin icon indicating copy to clipboard operation
arkit_flutter_plugin copied to clipboard

I am trying to publish an app with arkit_plugin 1.0.6, but apple store rejecet

Open PierluigiV opened this issue 2 years ago • 5 comments

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

PierluigiV avatar Aug 21 '23 09:08 PierluigiV

Hey. Read the README file, scroll to the Before you go to AppStore.

olexale avatar Aug 21 '23 09:08 olexale

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

PierluigiV avatar Aug 22 '23 10:08 PierluigiV

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

olexale avatar Aug 22 '23 15:08 olexale

It is already in the gcc preprocessor definitions

PierluigiV avatar Aug 23 '23 08:08 PierluigiV

@PierluigiV, please read the first sentence of my response one more time.

olexale avatar Aug 23 '23 08:08 olexale