-----01-----
打包時出現的問題:
Missing iOS Distribution signing identity for...
01報錯截圖.png
解決方案:http://www.lxweimin.com/p/e16626eaaae4
-----02-----
打包上傳到appstore時報錯:
This action could not be completed.Try again.(-22421)
02報錯截圖.png
解決方案:暫時請使用 -Application Loader上傳app程序
Application Loader使用說明:
- 01:先導出ipa包
- 和xcode發布應用一樣(Product --> Archive)
- 這里不點Upload to App Store,點Export,選擇Save for iOS App Store Deployment,點Next按下來的步驟就能導出應該的.ipa文件了
- 02:使用Application Loader上傳
- 打開:xcode工具欄-Xcode-Open Developer Tool-Application Loader
- 首次使用提示登錄蘋果賬號,選擇交付您的應用,再點擊選取(這里選取的是應用導出的.ipa文件,另外請在itunesconnect中提前設置好此版本信息)
- 按照流程走即可上傳成功
-----03-----
使用Application Loader上傳app程序時報錯:
ERROR ITMS-90164 \ ERROR ITMS-90046
03報錯截圖.png
解決方案:發布的描述文件失效,重新edit發布描述文件并下載打開,然后重新打包程序(所以,在程序打包之前,請確定發布描述文件是有效的)
-----04-----
真機調試報錯:
The identity used to sign the executable is no longer valid
解決方案:
1.有可能是真機調試的描述文件失效了,重新edit下載即可
2.如果真機調試描述文件未失效,可能是Provisioning Profile沒選擇好導致的,請在Build Settings中搜索signing,重新選擇Provisioning Profile
-----05-----
打包發布到appstore時報錯:
An App ID with Identifier 'com.domainName.AppName' is not available. Please enter a different string.
05報錯截圖.png
解決方案:
出現此問題的情況有很多,比如:APPID真的被占用了,那只能更換一個;
另外比較多的可能是證書或者描述文件沒搞好導致的,請去蘋果開發者中心進行仔細配置;
如果證書和描述文件確定沒問題,依舊存在此問題,請看下是否使用的是xcode7.3版本,如果是,請更換xcode7.2重新打包,或許會有意想不到的結果
-----06-----
上架被拒:
Your app uses background location services but does not clarify the purpose of its use in the location modal alert as required in the iOS Human Interface Guidelines.
We've attached screenshot(s) for your reference.
Next Steps
Please reconfigure the UIAlertControllerStyleAlert in your code and specify the intended purpose of using background location in its message field.
Resources
For additional information and instructions on configuring and presenting an alert, see the Accessing User Data section of the iOS Human Interface Guidelines and the UIKit Framework Reference.
原因:
使用到了后臺定位, 但又沒告知用戶使用后臺定位的目的.
解決方案:
修改alertview的提示文字,告知用戶使用定位的目的.
在info.list中, NSLocationAlwaysUsageDescription 并且要配上詳細說明文字但要簡潔,告訴用戶你為什么要訪問他的位置!
舉例(美團外賣):
美團外賣.png