美文网首页
iOS_APP打包上线遇到的问题

iOS_APP打包上线遇到的问题

作者: YHWXQ简简单单的生活 | 来源:发表于2016-10-19 16:17 被阅读301次

问题一:iOS提交iTunes Contacts中不出现构建版本

解决方法1: 近日往AppStore上提交一个版本,提交了好几次,每次都提交成功了,但是在iTunes Contacts上一直没有看到可选的构建版本,也没看到有邮件的反馈,后面发现是iOS 10以后(用Xcode8.0上传项目),苹果增强了对用户隐私的保护,访问照相机、相册、麦克风、定位、通讯录等,都需要在info.plist 文件中添加权限,而且少一个都不行。根据需要添加,项目中使用了什么,就添加对应的权限。

<!-- 相册 --> 
<key>NSPhotoLibraryUsageDescription</key> 
<string>App需要您的同意,才能访问相册</string>
<!-- 相机 --> 
<key>NSCameraUsageDescription</key> 
<string>App需要您的同意,才能访问相机</string>
 <!-- 麦克风 --> 
<key>NSMicrophoneUsageDescription</key> 
<string>App需要您的同意,才能访问麦克风</string> 
<!-- 位置 --> 
<key>NSLocationUsageDescription</key> 
<string>App需要您的同意,才能访问位置</string>
<!-- 在使用期间访问位置 -->
<key>NSLocationWhenInUseUsageDescription</key> 
<string>App需要您的同意,才能在使用期间访问位置</string> 
<!-- 始终访问位置 --> 
<key>NSLocationAlwaysUsageDescription</key> 
<string>App需要您的同意,才能始终访问位置</string>
<!-- 日历 --> 
<key>NSCalendarsUsageDescription</key>
<string>App需要您的同意,才能访问日历</string> 
<!-- 提醒事项 -->
<key>NSRemindersUsageDescription</key> 
<string>App需要您的同意,才能访问提醒事项</string> 
<!-- 运动与健身 --> 
<key>NSMotionUsageDescription</key> 
<string>App需要您的同意,才能访问运动与健身</string> 
<!-- 健康更新 --> 
<key>NSHealthUpdateUsageDescription</key> 
<string>App需要您的同意,才能访问健康更新</string>
<!-- 健康分享 --> 
<key>NSHealthShareUsageDescription</key> 
<string>App需要您的同意,才能访问健康分享</string>
<!-- 蓝牙 --> 
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App需要您的同意,才能访问蓝牙</string>
<!-- 媒体资料库 -->
<key>NSAppleMusicUsageDescription</key> 
<string>App需要您的同意,才能访问媒体资料库</string>

解决方法2: Target -> Build Settings -> Build Options -> Embedded Content Contains Swift Code 设置成No

Paste_Image.png

问题二:错误提示

注意:这是使用真机调试,报的错误,A valid provisioning profile for this executable was not found

Paste_Image.png
解决方法:
Paste_Image.png

问题三:错误提示

Paste_Image.png
解决方法:
Paste_Image.png

问题四:问题描述,

ld: framework not found Pods___
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Paste_Image.png

**解决方法:注意将show in find中的文件也删除,一定要删除干净,如果项目列表中没有出现pods文件(蓝色的)需要手动导入,否则运行会报 No such module 'AFNetworking'的错误 **


问题五:错误提示-This action could not be completed. Try again.(-22421)

Paste_Image.png

**解决方法: **

我将Xcode退出,然后重新打开并clean

问题六:错误提示-ERROR ITMS-90635

Paste_Image.png

**解决方法:Target -> Build Settings -> Build Options -> Enable Bitcode 设置成No **


Paste_Image.png

相关文章

网友评论

      本文标题:iOS_APP打包上线遇到的问题

      本文链接:https://www.haomeiwen.com/subject/onexuttx.html