1、编译报错uable to prepare Fae测试 for development
解决方法
原因是Xcode工具版本为13.1,被调试设备为iOS 15.5,Xcode未兼容该版本iOS,需升级xcode到13.4.1及以上版本即可兼容 iOS 15.5系统。
2、编译报错no account register
解决方法
Xcode需要登录Apple ID,未登陆会导致编译失败,点击顶部栏的Xcode--preferences--account选项,点击左下角+号,添加使用Apple ID登录即可。
3、编译报错:The app identifier “enterprise.yealink.meeting.YealinkSample” cann't be registered to yourdevelopment team because it if not avaliable.Change your bundle identifier to a unique string to try again. Xcode couldn't find any iOS App Development provisioning profiles to matching 'enterprise.yealink.meeting.YealinkSample'
解决方法
原因是由于缺少证书导致,编译要求Apple ID要和bundle id是匹配的,默认的demo用的bundle id是同亿联开发人员的apple id绑定的,所以需要修改bundle id来新建一个和自己的Apple ID相匹配绑定(仅作为demo测试时,可使用以下示例修改步骤)。
修改步骤:
1)双击下图所示的YealinkSample,在显示出来的页面中,找到Signing & Capbilities
可看到有2个TARGETS,对应的就是编译报错的2个模块。首先点击第一个YealinkSample,将TEAM选择为自己的Apple ID,在Bundle Identifier末尾处加上.hwj或其他任意.英文。回车即可自动将新的Apple ID和bundle id绑定。
2)找到App Groups,取消勾选即可
3)同理,点击第二个TARGET,即YealinkSampleScreenShare,将将TEAM选择为自己的Apple ID,再将Bundle Identifier格式改为enterprise.yealink.meeting.YealinkSample.hwj.YealinkSampleScreenShare,即在默认的bundle id的基础上,直接在YealinkSample字段后插入.hwj或其他任意.英文字符。回车便会自动将新的Apple ID和bundle id绑定。
4)找到App Groups,取消勾选即可。
4、编译成功后,在iOS设备上弹窗提示不受信任的开发者
解决方法
由于安装的app非通过官方App Store商店安装,可在ios设备中的设置-通用-VPN与设备管理,信任YealinkSample即可。
5、调试亿联融合通信(UC) iOS端SDK DEMO时,鉴权报错APP已禁用
解决方法
首先需核对demo工程中AppDelegate.h文件的Appid、AppSecret、Domain是否填写正确(Appid和AppSecret请联系亿联售前技术工程师获取,Domain指UC服务器部署时配置的可解析域名或IP,请以实际服务器部署情况为准。),以及调试设备的网络是否可达UC服务器。若上述均核对无问题,运行demo仍提示禁用,则需将调试设备上的demo软件先卸载,重新运行demo工程安装调试即可解决。
6、编译报错:Cannot create a iOS App Development provisioning profile for "enterprise.yealink.demoapp.hwj.YealinkDemoApp". Personal development teams, including "xx x", do not support the Push Notifications capability.
解决方法
这个错误是因为您正在尝试在使用个人开发团队账户进行开发时,使用了推送通知能力(Push Notifications capability)。个人开发团队账户不支持推送通知能力。临时调试,不需要推送通知能力时,可在当前TARGETS下滑找到Push Notifications,删除即可。