今天想要用Application Loader上传ipa文件,突然发现在Xcode工具中找不到Application Loader了,网上查了下才知道Xcode11更新之后就不带了,不过我们还是可以用xcrun altool 来上传ipa文件,
具体指令格式如下:
xcrun altool --upload-app -f path -u username -p password
path:ipa文件的路径
username: 你的开发账号用户名
password: 账号开启了双重认证,需要去 https://appleid.apple.com 生成一个专用密码就行了
提醒:这里会有人搞错,输入开发者证书的密码,那个不行,亲自试过
xcrun altool --upload-app -f a/b/xxx.ipa -u xxxx@qq.com -p 生成的专用密码
提交以后构建显示正在处理中,等几分钟会自动消失,构建不成功
Apple发送邮件提示:
ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSBluetoothAlwaysUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more
出现原因
iOS13 将废弃 NSBluetoothPeripheralUsageDescription 替换为 NSBluetoothAlwaysUsageDescription
并且只能在info配置里面添加,不能替换,替换了之前的版本就不行了
解决方法
在info.plist中添加新字段
重新上传即可,这是升级之后发布的场景需要的两个大坑。希望同道者可以避开。