昨天想學(xué)學(xué)react native 然后按著官網(wǎng)安裝環(huán)境,必須要更新Xcode哲身,更新之后老板讓我更個(gè)版本痰腮,在更版本的時(shí)候遇到了好多問(wèn)題,??總結(jié)到這里
1. Error:(nullable NSError *)error報(bào)錯(cuò)
Xcode8改版之后不需要再寫nullable這個(gè)了律罢,所以把nullable刪了就行了
2. 上傳app store構(gòu)建版本不出現(xiàn)膀值,蘋果發(fā)送郵件
<code>
iTunes Connect: Your app "" has one or more issues
顯示詳情iTunes Store
Dear developer,
We have discovered one or more issues with your recent delivery for "". To process your delivery, the following issues must be corrected:
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
Though you are not required to fix the following issues, we wanted to make you aware of them:
Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.
Once the required corrections have been made, you can then redeliver the corrected binary.</code>
發(fā)現(xiàn)是xcode8的隱私政策,必須要在plist里聲明使用的獲取手機(jī)的權(quán)限误辑,我發(fā)現(xiàn)手機(jī)權(quán)限確實(shí)沒(méi)有沧踏,然后加上了發(fā)現(xiàn)最基本的三個(gè)獲取權(quán)限必須全都必須得聲明info.plist聲明增加:
當(dāng)然
把這兩個(gè)都寫上,應(yīng)該就沒(méi)事巾钉,當(dāng)然看看發(fā)過(guò)來(lái)的郵件翻譯過(guò)來(lái)翘狱,發(fā)現(xiàn)這個(gè)沒(méi)寫上NSMicrophoneUsageDescription加上應(yīng)該就好了。
希望共同進(jìn)步砰苍,最近在研究react native 潦匈,有好的項(xiàng)目可以推薦推薦1