Does LSApplicationWorkspace not work on iOS 11?

前端 未结 5 1326
抹茶落季
抹茶落季 2021-02-01 07:59

I have an app in private which need to scan all applications and schemes and get it by using private API LSApplicationWorkspace defaultWorkspace with others functio

5条回答
  •  自闭症患者
    2021-02-01 08:35

    i got same Apple Reject.

    Apple Says

    Your app uses or references the following non-public APIs:

    LSApplicationWorkspace

    The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

    Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.

    Solutions

    To find out which library or code is causing this problem use the below code snipped.

    1-) Open the terminal in macbook (cmd+ space) and than write terminal

    2-) change the project directory with the below code

    cd  /Users/emreg/Documents/{your project url}
    

    3-) To search appropriate word

    grep -r LSApplicationWorkspace .
    grep -r allApplications .
    

    in my case, Blesh SDK has included LSApplicationWorkspace and allApplications keyword which is not permitted by Apple. When i upteded SDK, my problem is solved.

    i hope, this answer will help someone.

提交回复
热议问题