iOS真机调试、打包测试、发布程序常见问题(不断更新ing)

真机调试、打包测试、发布程序常见问题(不断更新ing)

作者:XDC        原文链接:http://www.jianshu.com/p/a9f818ac1066    
-----01-----

打包时出现的问题:

Missing iOS Distribution signing identity for...

01报错截图.png

解决方案:http://www.jianshu.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 并且要配上详细说明文字但要简洁,告诉用户你为什么要访问他的位置!

举例(美团外卖):


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值