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 Please enable JavaScript to view the comments powered by Disqus.