5
500px技术周报006
source link: http://quangelab.com/500px-work-note-006/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
500px技术周报006 – ruquan.z – github技术博客,成长在于积累。
500px技术周报006
1、iphoneX的适配
2、自动打包如何添加新设备
iphoneX的适配
[cardtypeH mas_makeConstraints:^(MASConstraintMaker *make) {
if (@available(iOS 11.0, *)) {
make.bottom.equalTo (self.view.mas_safeAreaLayoutGuideBottom).offset(-60);
} else {
make.bottom.mas_equalTo(-60);
}
make.centerX.mas_equalTo(0).offset (25);
make.width.mas_equalTo(50);
make.height.mas_equalTo(50);
}];
自动打包如何添加新设备
在xcode8.0以上,Provisioning文件的位置是:
~/Library/MobileDevice/Provisioning\ Profiles
查看某个mobileprovision文件
/usr/bin/security cms -D -i 098a87e3-11fe-463d-75aa-12345678adba.mobileprovision
找到对应的证书文件 删除
如果想快速定位可以先编译一下
cd /Users/zhangruquan/code/500px/shijue_ios/iOSV4 && xcodebuild -workspace 500px.xcworkspace -scheme 500px -sdk iphoneos -configuration Release -derivedDataPath build
上面执行完会输出相应证书的uuid
Written on November 17, 2017
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK