appwoodpecker / woodpecker-ios

woodpecker iOS
Other
211 stars 18 forks source link

Non-public API usage - UNLegacyNotificationTrigger #10

Closed gaurav02712 closed 5 years ago

gaurav02712 commented 5 years ago

Our app got rejected from apple with below messages -

**Non-public API usage**:

The app contains or inherits from non-public classes in Frameworks/WoodPeckeriOS.framework/WoodPeckeriOS: UNLegacyNotificationTrigger

If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed

github-xiaogang commented 5 years ago

@GauravT9l oh, no! the framework should never be used in the production mode, that will cause safety problem.

gaurav02712 commented 5 years ago

So before making a production build, I have to manually remove this framework and have to reinstall for debugging purpose? Any better alternative options as I really would like to use this.

github-xiaogang commented 5 years ago

Hi, if you use pod, pod 'WoodPeckeriOS', :configurations => ['Debug'] If you added framework manually, I'll provide a better method in the near future, I'll tell you when it's okay.

gaurav02712 commented 5 years ago

We are using Pod only, so suggested one should work for of most the people I guess, Thanks