Xamarin.ios build rejected due to HEALTHKIT refere

2020-02-14 09:37发布

问题:

My xamarin.ios build has been rejected from the app center due to reference of HEALTHKIT framework. I can't set linker to SDK framework only because of some 3rd party liberary. Also, I have uploaded a nee build with mtouch parameter "--linkskip=HealthKit", still my app got rejected 2nd time. Can anyone please guide me what more cahnges need to be done to remove the reference of HEALTHKIT framework from the application. Amy suggestion will be helpful

回答1:

I had this recently, also tried what I could find online with no luck.

I used grep on the mac to find the said references :

 $ strings directory/Payload/UpCarePro.iOS.app/UpCarePro.iOS | grep Health

And then I removed packages one by one and rebuilt the project to find the one referencing it, once I no longer found any health reference in my project, I was able to pass Apple verification.

I had no new package causing this, and my app could pass the verification process many times before that, so I don't really understand how it started, but that's how I got rid of it.

I hope this helps.