xcode9 新特性

2017-9-20凌晨苹果发布iOS 11和Xcode9, 迫不及待更新了(等了两个小时), 趁有时间研究一波, 一开始还挺蛋疼的

一、分支切换

xcode9 新特性_第1张图片
分支位置

二、 无线调试,但是经常连接失败

  • 硬性要求:iOS 11和xcode9
  • 操作:连接手机iOS 11-->打开xcode-->Window-->Devices and Simulators-->找到设备-->勾选Connect via network
xcode9 新特性_第2张图片
Devices and Simulators
xcode9 新特性_第3张图片
勾选Connect via network
xcode9 新特性_第4张图片
bug就是经常连接失败
xcode9 新特性_第5张图片
新特性

三、为了iphone x,xib界面增加新控件

xcode9 新特性_第6张图片
70B1E9F2-902A-4308-8E37-18545504EF90.png

四、tableview的代理方法设置组的头部高度尾部高度,失效

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section

解决方法:先设置属性_tableView.sectionFooterHeight,_tableView.sectionHeaderHeight,才会来到代理方法

_tableView.sectionFooterHeight = kSectionFooterHeight;
    _tableView.sectionHeaderHeight = kSectionHeaderHeight;

五、系统相册访问权限问题,相机必须要链接真机

xcode9 新特性_第7张图片
连接模拟器报错camera
ios11增加Key权限
NFC新增权限

六、多个模拟器共存

xcode9 新特性_第8张图片
CAD607E4-DEE5-492C-8BA3-5145E80A2BBE.png
xcode9 新特性_第9张图片
48DE7BB3-EC58-426E-9FA3-0FDE059A55C8.png

七、定位相关 问题




以下是xcode9 打包上线的新特性 :

一 . 新增App Store Icon , 1024 x 1024, 一倍像素, 格式是png.
  • 按照以往的步骤去打包, 可以成功提交, 但是有一个警告 !
WARNING ITMS-90704: "Missing App Store Icon. iOS Apps must include a 1024x1024px App Store Icon in PNG format. Without providing the icon in the Asset Catalog or via iTunes Connect, apps cannot be submitted for App Review or Beta App Review. Refer to https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/ for more information."

xcode9 新特性_第10张图片
警告
xcode9 新特性_第11张图片
上传包成功后收到的邮件警告
  • 解决方案 :
  • 让UI切一个1024x1024pt的图, 一倍像素, 格式png, 放入到项目的对应位置App Store iOS 那里, 如下截图 :
xcode9 新特性_第12张图片
1024x1024.png
  • 这样再打包就没有警告了

你可能感兴趣的:(xcode9 新特性)