Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PierluigiV opened this issue Aug 21, 2023 · 5 comments

Comments

@PierluigiV
Copy link

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

@olexale
Copy link
Owner

olexale commented Aug 21, 2023

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

@PierluigiV
Copy link
Author

PierluigiV commented Aug 22, 2023

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

@olexale
Copy link
Owner

olexale commented Aug 22, 2023

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

@PierluigiV
Copy link
Author

It is already in the gcc preprocessor definitions

@olexale
Copy link
Owner

olexale commented Aug 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants