ios - 升级了Watch OS2后提交一直出错
迷茫
迷茫 2017-04-17 17:25:58
[iOS讨论组]

工程升级到Watch OS2之后,提交审核时,一直失败。苹果给的回复如下,找不到原因。求助
邮件1:
Dear developer,

We have discovered one or more issues with your recent delivery for "". Your delivery was successful, but you may wish to correct the following issues in your next delivery:

WatchKit 1.0 - Your previous version used an extension for Apple Watch but your current version doesn’t. Users who haven’t updated their Apple Watch to watchOS 2 or later may lose access to their Apple Watch extension.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

Regards,

The App Store team

邮件2:
Dear developer,

We have discovered one or more issues with your recent delivery for "". To process your delivery, the following issues must be corrected:

Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path.

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回复(1)
巴扎黑

是这样的,你的SDK升级支持Watch OS 2.0以后,你原来的Watch Target自动升级成2.0的了。

你需要添加一个新的Watch Extension Target For Watch OS 1.0

Extension有两种,因为你的旧的给你升级成OS2.0的了,你需要再添加一个OS1.0的

我的项目加完以后是这样的:

原因:因为OS2.0系统的升级,Extension程序是在Watch里运行,而不是像OS1.0中在手机中运行,所以需要为1.0系统的用户发布一个1.0的版本,不发布应该也能提交,不知道能不能审核过,你的邮件里说会失去一部分没有升级的用户。

解决办法:添加Target以后,将新Target中的代码都删掉,然后将2.0Target中的.m文件加入到新Target中编译就行,不需要重新开发。不过有些部分是要做修改的,因为2.0的Extension不在手机中运行,所以是不能和主APP通过APP Group方式共享数据的,需要使用2.0的一系列新接口和主应用交互。1.0的Target中,不能用这些新接口,还是按照你1.0的方式进行数据交换。

希望能对你有帮助,祝你好运。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号