錯(cuò)誤收集

The file “xxxxx” couldn’t be opened because you don’t have permission to view it.

造成的原因:
  info文件中的字段Executable file 與 build settings欄中的Packaging中的Product Name 不一致就會(huì)導(dǎo)致上述截圖的問(wèn)題

info.plist的文件中的Executable.file中的文件修改為:$(PRODUCT_NAME)

報(bào)錯(cuò)"init(coder:) has not been implemented"

通過(guò)nibstoryboard 創(chuàng)建的View,系統(tǒng)會(huì)先調(diào)用 init?(coder aDecoder: NSCoder),在調(diào)用awakeFromNib()。所以我們?cè)谑褂胣ib的時(shí)候,只用awakeFromNib()來(lái)初始化,就不會(huì)報(bào)這個(gè)錯(cuò)誤

Nil is incompatible with return type

swift中不能直接將nil做為 返回值或者參數(shù),返回值或者參數(shù)的類型必須是對(duì)應(yīng)的,當(dāng)想讓 nil 做為參數(shù)的時(shí)候 需要用到 optional types 可選類型

如 會(huì)報(bào)錯(cuò)

func dosome(name:String) {
        print(name)
}
self. dosome(nil)

正確寫法

func dosome(name:String?) {
        if let aname = name {
            print(aname)
        }else {
            print("沒(méi)有值")
        }
}
self.dosome(nil)

xxx has conflicting provisioning settings.

錯(cuò)誤描述:
雖然勾選了自動(dòng)管理證書(shū)和描述文件,但實(shí)際上描述文件被指定為特定文件,導(dǎo)致沖突。
Code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 11.2' 這個(gè)應(yīng)該是因?yàn)榈谝粋€(gè)錯(cuò)誤產(chǎn)生的,可以不管,把第一個(gè)錯(cuò)誤fix即可。

解決辦法

xcodeproj文件

右鍵顯示包內(nèi)容
pbxproj文件

PROVISIONING_PROFILE 屬性整行刪除,保存就正常了。

use of unresolved identifier“某類”

類存在真機(jī)運(yùn)行卻報(bào)錯(cuò),提示找不到該類。
第二個(gè)其實(shí)是單元測(cè)試工程,獨(dú)立于項(xiàng)目本身,一般情況下,默認(rèn)都是會(huì)在第一個(gè)打鉤,意思是 這個(gè)文件屬于這個(gè)打鉤的工程。
ps:membership:成員的意思


target membership

解決方法
去掉xxxtest的勾就不會(huì)報(bào)錯(cuò)

Address of property expression requested

OC 對(duì)象不能直接獲取地址
& object->_param

ITMS-90683

如果將沒(méi)有新字段的包提交審核,將會(huì)收到包含 ITMS-90683 的郵件,并提示審核不通過(guò)。
按郵件內(nèi)容,查看提到哪些關(guān)鍵字段,補(bǔ)充到info.plist 中。

UINavigationBar 圖片異常

3x 圖片高度不滿 UINavigationBar ,導(dǎo)致圖片平鋪。可以調(diào)用 UIImage 拉伸接口來(lái)優(yōu)化。

// 1. 直接傳入保護(hù)的范圍,沒(méi)有設(shè)置圖拉伸的模式,默認(rèn)為UIImageResizingModeTile(瓦片式)就是將圖片以原來(lái)的大小就行平鋪顯示
[image resizableImageWithCapInsets:UIEdgeInsetsMake(<#CGFloat top#>, <#CGFloat left#>, <#CGFloat bottom#>, <#CGFloat right#>)];
// 2. 設(shè)置圖片拉伸的模式
// UIImageResizingModeTile平鋪 UIImageResizingModeStretch拉伸
[image resizableImageWithCapInsets:UIEdgeInsetsMake(imageheight * 0.5, imagewidth * 0.5, imageheight * 0.5 -1, imagewidth * 0.5 - 1) resizingMode:UIImageResizingModeTile];

比如:UIEdgeInsetsMake(42, 0, 0, 0) 指的是拉伸區(qū),詳細(xì)點(diǎn)解釋就是,從頂部一直到y(tǒng)=42部分是保護(hù)區(qū),從y=42一直到底部是拉伸區(qū)

ERROR ITMS-90189

蘋果默認(rèn)是不允許在同一個(gè)版本號(hào)下構(gòu)建同一個(gè)構(gòu)建版本的。
更改version號(hào) 或者 更改 build號(hào)

Guideline 2.5.1 - Performance - Software Requirements

Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. 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.
Specifically, your app uses the following non-public URL scheme:
app-prefs:root=bluetooth

// iOS系統(tǒng)版本 >= iOS10,支持跳轉(zhuǎn)到自己應(yīng)用設(shè)置,不支持跳轉(zhuǎn)到系統(tǒng)設(shè)置
// OC
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
 [[UIApplicationsharedApplication]openURL:url options:@{}completionHandler:^(BOOL success) {   }];
// swift 
let url = URL(string: UIApplication.openSettingsURLString)
UIApplication.shared.open(url, options: [:], completionHandler: nil)

Guideline 5.0 - Legal

Recently, the Chinese Ministry of Industry and Information Technology (MIIT) requested that CallKit functionality be deactivated in all apps available on the China App Store.
During our review, we found that your app currently includes CallKit functionality and has China listed as an available territory in App Store Connect.
中國(guó)工業(yè)和信息化部要求在中國(guó)應(yīng)用商店中提供的所有應(yīng)用中停用CallKit功能。

Guideline 5.1.1 - Legal - Privacy - Data Collection and Storage

We noticed that your app requests the user’s consent to access their location and Bluetooth but does not clarify the use of the location and Bluetooth in the applicable purpose string.
For additional information and instructions on requesting permission, please review the Requesting Permission section of the iOS Human Interface Guidelines and the Information Property List Key Reference. You may also want to review the Technical Q&A QA1937: Resolving the Privacy-Sensitive Data App Rejection page for details on how to provide a usage description for permission request alerts.
可以參考,把描述語(yǔ)言改比較形象生動(dòng)

QQ:
    獲取麥克風(fēng)權(quán)限:    請(qǐng)點(diǎn)擊”好”以允許訪問(wèn).若不允許,你將無(wú)法使用視頻通話、發(fā)送語(yǔ)音消息或錄制視頻等功能.
    獲取相機(jī)權(quán)限:    請(qǐng)點(diǎn)擊”好”以允許訪問(wèn).若不允許,你將無(wú)法使用拍照、錄制視頻、掃一掃等功能.
    獲取定位權(quán)限:    若不允許,你將無(wú)法使用位置發(fā)送、附近的人、群與活動(dòng)、空間掛件、吃喝玩樂(lè)等功能.
    獲取相冊(cè)權(quán)限:     若不允許,你將無(wú)法給好友發(fā)送或在空間上傳本地相冊(cè)圖片及視頻內(nèi)容.
    獲取通訊錄權(quán)限:  請(qǐng)點(diǎn)擊”好”以允許訪問(wèn).若不允許,你將無(wú)法使用通訊錄聯(lián)系人、添加手機(jī)聯(lián)系人等功能.
    獲取Siri權(quán)限:     您的部分”QQ”數(shù)據(jù)將發(fā)給Apple以處理您的請(qǐng)求.如果不允許,你將無(wú)法使用Siri喚起QQ
    獲取活動(dòng)與體能訓(xùn)練記錄權(quán)限:   請(qǐng)點(diǎn)擊”好”以允許訪問(wèn).若不允許,你將無(wú)法同步運(yùn)動(dòng)健康數(shù)據(jù)至QQ運(yùn)動(dòng).
微信:
    獲取麥克風(fēng)權(quán)限:    如果不允許,你將無(wú)法在微信中發(fā)送語(yǔ)音消息,或進(jìn)行音頻通話.
    獲取相機(jī)權(quán)限:     如果不允許,你將無(wú)法再微信中拍攝照片和視頻,也無(wú)法使用視頻通話、掃一掃等功能
    獲取相冊(cè)權(quán)限:     如果不允許,你將無(wú)法發(fā)送系統(tǒng)相冊(cè)里的照片給朋友.
    獲取定位權(quán)限:      如果不允許,你將無(wú)法在聊天中共享你的位置,也無(wú)法使用”搖一搖”和”附近的人”等基于位置的服務(wù).微信還會(huì)使用這些信息提供關(guān)聯(lián)搜索結(jié)果,并在你的注冊(cè)或登錄微信時(shí)保障你的賬戶安全
    獲取通訊錄權(quán)限:   如果不允許,微信將無(wú)法推薦通訊錄中的朋友給你.微信僅使用特征碼用于匹配識(shí)別,不會(huì)保存你的通訊錄內(nèi)容
    獲取Siri權(quán)限:       您的部分”微信”數(shù)據(jù)將發(fā)給Apple以處理您的請(qǐng)求.如果不允許,您將無(wú)法通過(guò)Siri發(fā)送微信消息
    獲取活動(dòng)與體能訓(xùn)練記錄權(quán)限:   如果不允許,你將無(wú)法參與微信運(yùn)動(dòng)排行榜.
    上傳通訊錄提示: 微信將上傳手機(jī)通訊錄至微信服務(wù)器以匹配及推薦朋友.(上傳通訊錄僅用于匹配,不會(huì)保存資料,亦不會(huì)用作它用)

淘寶:
    獲取定位權(quán)限:   “手機(jī)淘寶”想訪問(wèn)您的位置,為了提供附近的商品、店鋪及優(yōu)惠資訊
    獲取相機(jī)權(quán)限:   “手機(jī)淘寶”想訪問(wèn)您的相機(jī),為了幫您掃描二維碼或者商品和互動(dòng)等功能
    獲取麥克風(fēng)權(quán)限:   “手機(jī)淘寶”想訪問(wèn)您的麥克風(fēng),為了幫您用語(yǔ)音搜索賣家商品等功能
    獲取相冊(cè)權(quán)限:  “手機(jī)淘寶”想訪問(wèn)您的照片,為了幫您實(shí)現(xiàn)曬買家秀等上傳照片的功能

支付寶:
    獲取定位權(quán)限:   若不允許,你將無(wú)法在支付寶中使用商家服務(wù)、本都生活、發(fā)送地理位置等定位相關(guān)功能
    獲取通訊錄權(quán)限: 支付寶講上傳通訊錄至服務(wù)器以匹配及推薦朋友,給朋友轉(zhuǎn)賬更方便(未經(jīng)您同意,通訊錄信息不會(huì)用于其他用途).
    獲取相冊(cè)權(quán)限: 若不允許,你將無(wú)法在支付寶中發(fā)送及保存照片
    獲取相機(jī)權(quán)限: 若不允許,你將無(wú)法在支付寶中使用掃碼、刷臉、拍照及拍攝小視頻等功能.
    獲取麥克風(fēng)權(quán)限:若不允許,你將無(wú)法在支付寶使用語(yǔ)音消息、小視頻及語(yǔ)音搜索等功能.

高德地圖:
    獲取定位權(quán)限: 高德地圖會(huì)在搜索、路線查詢和導(dǎo)航等服務(wù)中使用您的位置信息.
    獲取麥克風(fēng)權(quán)限: 點(diǎn)擊允許,立即開(kāi)始使用語(yǔ)音功能
    獲取相冊(cè)權(quán)限: 點(diǎn)擊允許,選擇照片上傳到高德地圖
    獲取相機(jī)權(quán)限: 點(diǎn)擊允許,使用高德地圖拍攝照片

Guideline 4.8 - Design - Sign in with Apple

We noticed that your app uses a third-party login service but does not offer Sign in with Apple.
To resolve this issue, please revise your app to offer Sign in with Apple as an equivalent login option.
使用第三方登錄,如:微信登錄。需要加入蘋果的 Sign in with Apple
可以參考
蘋果登錄 Sign in with Apple
Sign in with Apple ID 蘋果登錄 ios13+

Guideline 2.5.4 - Performance - Software Requirements

Your app declares support for location in the UIBackgroundModes key in your Info.plist file but does not have any features that require persistent location. Apps that declare support for location in the UIBackgroundModes key in your Info.plist file must have features that require persistent location.

image.png

location updates(后臺(tái)定位更新):如果我們想要在后臺(tái)獲取位置, 必須勾選后臺(tái)模式,會(huì)出現(xiàn)藍(lán)條
解決方法: location updates 去掉勾。

Guideline 2.1 - Information Needed

Next Steps
To help us proceed with the review of your app, please provide detailed information to the following questions. The more information you can provide upfront, the sooner we can complete your review.
-What purpose does access audio background mode serve?

需要給蘋果粑粑解釋 What purpose does access audio background mode serve?
可以拍視頻、發(fā)郵箱解釋

ITMS-90809: Deprecated API Usage - Apple will stop accepting API Usage - Apple will stop accepting submissions of apps that use UlWebView APls.

公司老項(xiàng)目用了UIWebView,蘋果審核不通過(guò),只要把UIWebView 的相關(guān)代碼替換成WKWebView就行了。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • 1. 需求 最近有項(xiàng)目需要實(shí)現(xiàn)windows機(jī)器和Android開(kāi)發(fā)版進(jìn)行UART串口通信,經(jīng)過(guò)3天查找嘗試,特記...
    braincs閱讀 7,214評(píng)論 1 5
  • 《大話西游》我們看了很多年,也看了很多遍,這部電影始終都是我心底之最,隨著年齡越來(lái)越的增長(zhǎng)對(duì)待事物和人的見(jiàn)解和思考...
    mo劉大美閱讀 1,625評(píng)論 0 0
  • 若已經(jīng)知道未來(lái)兩個(gè)人會(huì)沒(méi)有結(jié)果,那還要在一起嗎?我們就像相交的兩條線,相遇后便要說(shuō)再見(jiàn)。可我們又都懦弱,活在美好的...
    云上貓閱讀 203評(píng)論 0 0