![](/img/trans.png)
[英]Firebase/Core require NSLocationWhenInUseUsageDescription in the info.plist file
[英]NSLocationWhenInUseUsageDescription inside library Info.plist
我建立了一個Swift庫,該庫在使用該應用時使用CoreLocation來獲取用戶位置。 如果我想將我的庫集成到應用程序中,則只需導入該庫,實例化我的類並啟動獲取用戶位置的方法...
...而且我還需要在應用程序Info.plist內添加NSLocationWhenInUseUsageDescription
!
我想知道是否可以在Info.plist庫中添加NSLocationWhenInUseUsageDescription
,以便程序員選擇實現自定義描述還是保留默認庫描述。
PS我已經在庫Info.plist中添加了NSLocationWhenInUseUsageDescription
,但是如果我決定不將其也添加到應用程序Info.plist中,Xcode將不滿意:
This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data
在此先多謝!
不,這是不可能的。
您將需要指示圖書館用戶,他們需要將位置使用密鑰添加到其應用的info.plist中。
他們將需要添加適合其應用位置使用的描述
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.