iOS用图规范: icon / LuanchImageg / 屏幕快照
更新时间: 2018/12/03
一. Icon规范
-
注意:
不要切圆角; 不要有透明通道; 1024x1024的图片导出用jpg格式 , 此图为什么要jpg , 哎😔, 避免有些设计师搞出来的 1024x1024.png内存太大 , 导致upload不通过, 不用担心.jpg图像不清晰 灭的事;
1. icon_120*120@2x.png
2. icon_180*180@3x.png
3. icon_29*29.png
4. icon_58*58@2x.png
5. icon_87*87@3x.png
6. icon_80*80@2x.png
7. icon_120*120@3x.png
8. icon_40*40@2x.png
9. icon_60*60@3x.png
10. icon_1024*1024.jpg // Appstroe
二. LuanchImageg规范
1. 1125*2436@3x.png
2. 1242*2208@3x.png
3. 750*1334@2x.png
4. 640*1136@2x.png
5. 640*960@2x.png
6. Default-568.png (尺寸:320*568; 用命名:Default-568.png) // 此处看下面注意解说
-
注意:
少了 Default-568.png, 最新的打包upload, 会报错:
ERRORITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone appsand app updates submitted must support the 4-inch display on iPhone 5 and mustinclude a launch image referenced in the Info.plist under UILaunchImages with aUILaunchImageSize value set to {320, 568}. Launch images must be PNG files andlocated at the top-level of your bundle, or provided within each .lproj folderif you localize your launch images. Learn more about iPhone 5 support and applaunch images by reviewing the 'iOS Human Interface Guidelines' ......
如果你的没报错 , 证明小伙子你颜值很高
解决方法:
1. 将图片Default-568.png放到你项目的根目录
2. 在Info.plist文件添加如下面key:
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageName</key>
<string>Default-568</string>
<key>UILaunchImageSize</key>
<string>{320, 568}</string>
</dict>
</array>
三. 屏幕快照规范
四. 补充
1. 构建版本找不到上传的包
- upload包到构建版本, 成功了之后, 构建版本找不到上传的包
解决方法:
在Info.plist文件添加如下面key(即使项目中没用到,也要添加)
<key>NSAppleMusicUsageDescription</key>
<string>是否允许此App访问媒体库?</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>是否允许此App访问蓝牙?</string>
<key>NSCalendarsUsageDescription</key>
<string>是否允许此App使用日历?</string>
<key>NSCameraUsageDescription</key>
<string>是否允许此App使用您的相机?</string>
<key>NSContactsUsageDescription</key>
<string>是否允许此App访问您的通讯录?</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>App需要您的同意,才能始终访问位置</string>
<key>NSLocationUsageDescription</key>
<string>App需要您的同意,才能访问位置</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>App需要您的同意,才能在使用期间访问位置</string>
<key>NSMicrophoneUsageDescription</key>
<string>是否允许使用您的麦克风?</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>是否允许访问照片</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>是否允许访问照片</string>
<key>NSRemindersUsageDescription</key>
<string>是否允许此App访问提醒事项?</string>
<key>NSSiriUsageDescription</key>
<string>是否允许此App使用Siri?</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>是否允许此App使用语音识别?</string>
<key>Photo Library Usage Description</key>
<string>是否允许此App访问您的相册?</string>
<key>Privacy - Calendars Usage Description </key>
<string>是否允许此App使用日历?</string>
<key>UILaunchImages</key>
2. 报错library not found for -lstdc++.6.0.9
-
原因:
新的xcode10以上废弃了动态库libstdc++6.0.9, 合并成libc++了. 而你的额项目依赖了动态库libstdc++6.0.9, 所以报找不到该库的错误.
解决方法有几个:
1. 下载10以下的xcode, 在10以下的xcode跑该项目.
2. 导入libc++, 代替libstdc++6.0.9. 这个方法有的项目OK, 有的项目不OK, 用上面1方法最保守.
3. 也是之前网上找到的办法:
去Xcode 9里面复制libstdc++6.0.9
真机路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
和模拟器路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
里面的libstdc++6.0.9分别复制一份,
然后分别粘贴到对应的Xcode 10 的
真机路径和
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/lib/
模拟器路径下
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/