首页 > 升级了Watch OS2后提交一直出错

升级了Watch OS2后提交一直出错

工程升级到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


是这样的,你的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的方式进行数据交换。

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

【热门文章】
【热门文章】