I/O -> Keyboard -> Toggle Software Keyboard
App需要提供图标的规格为40/588/60/80/87/120/160/180/1024
,另外,如果最好是将png图片转换为jpg,因为默认会把png不存在的地方背景设置为黑色。准备好图标素材以后,直接在xcode
里面的Images.xcassets
将图标拖入即可。
private key
,修改Access Control
,需要修改配置Allow all applications to access this item
,否则下面在上传的时候会提示missing private key
或者让你无限输入电脑用户名密码的问题Product->Archive
,完成后会自动弹出一个对话框(当然,这个对话框也可以通过Window->Organizer
打开,要选择对应的APP)Distribute App
,然后选择App Store Connect
,再Upload
,一直下一步应该就可以了。(如果打包能成功,但是上传却说认证失败,可能是网络问题)App Store Connect
后台的TestFlight
看到刚才的build了,这时候可以去添加测试用户,点击左侧菜单App Store Connect User
进行添加,添加方式见页面提示即可,很简单,添加完成后会发送邮件给用户,里面有个兑换码,在ios的testflightapp上点击redeem输入兑换码即可下载,如果下载时提示the app couldn't be installed because testflight isn't available
,那就等大概五分钟试试升级pod
1 | pod --version# 查看pod版本 |
**Signing for “xxx” requires a development team. Select a development team in the project editor.**解决方法: 点击项目名->targets->General->Signing,选择自己的Team,选择后重新构建,如果仍然出现该错误,那么可以重启一下xcode或者更新一下xcode多次尝试。
**打包archive的时候签名报错XXX is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to “Apple Development” in the build settings editor, or switch to manual signing in the Signing & Capabilities editor.**:需要去PROJECT -> BUILD SETTINGS -> COMBINED
中的Signing->Code Signing Identity
的值从iOS Developer
修改为Apple Development
,还有TARGETS -> Build Settings -> Combined
中的Signing->Code Signing Identity->Release
的值从iOS Developer
修改为Apple Development
上传archive最后提示Missing private key
Run on device突然报错Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window.: 重启手机试试吧
“XXXX” has 2 Apple Distribution certificates but their private keys are not installed. Contact the creator of one of these certificates to get a copy of the private key: 可能是key过期了,去apple developer重新生成一个证书吧,下载下来安装上,但是得重启一下xcode
push app 到appstore一直在processing: 这个时候确实可以再push一个新版本,可能会更快
ios模拟弱网环境: 设置->开发者选项-> Network LINK CONDITIONER
set the code signing identity value to apple development in the build settings editor: 在TARGETS -> Build Settings -> All
中搜索signing
即可,修改对应的值为apple development
即可
sandbox账户无法登录,提示要进入设置收验证码: 无论怎样我都收不到验证码, 最后重新建了一个sandbox账户就可以了,sandbox在点击登录按钮登录的时候按理说是不用验证码的,直接就可以登录了。当然,必须得退出本机自身的apple id才行
添加了测试设备后,Xcode依然无法安装: 可能是因为Xcode没有及时更新云端的Provisioning Profile
可以删除目录~/Library/MobileDevice/Provisioning
,然后打包时候勾选Automatically manage signing
,Xcode就会重新拉取了
NSURLConnection SSL error: 通常只需要在Info.plist
中添加
1 | <key>NSAppTransportSecurity</key> |