Flutter: Missing Purpose String in Info.plist when upload ipa

Gianni Deplano
1 min readDec 21, 2020

Sometimes, when you try to upload an iOS build for the Apple Store, some issues arrive at your email address. Some are blocking issues and some are not.

In the specific case, this particular issue is a little “tricky” and happens when the flutter permission_handler will be used to manage permissions like camera, location, access to the filesystem, and so on.

You need to explicitly fix your Podfile to be able to submit your App, otherwise seems your App will be developed to access full information of the End-User!

90% of the time you’ll need changes to the privacy form of particular additional information that causes the rejection of your App.

So, the solution is very easy and fast, patch your PodFile following this snippet in the pod_install script:

For each variable put 0 if the permission is not used by your App and 1 if you are using the permission.

For instance:

'PERMISSION_LOCATION=0', # Location disabled
'PERMISSION_LOCATION=1', # Location enabled

at the end run

pod install

and rebuild your archive before distributing your App with Transporter or XCode.

Enjoy!

--

--

Gianni Deplano

Senior Manager at EY Technology Consulting in Digital andEmerging technologies