本文介绍了Cocoapods-无效的符号链接(标题)阻止提交到App Store的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试提交osx应用程序时出现以下错误:

I'm getting following error when trying to submit osx application:

无效的符号链接-您的软件包包含符号链接 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/Alamofire.framework/Headers' 解析到一个位置 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/Alamofire.framework/Versions/Current/Headers' 不存在或不在包装内的包装.

Invalid Symlink - Your package contains a symbolic link 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/Alamofire.framework/Headers' which resolves to a location 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/Alamofire.framework/Versions/Current/Headers' that does not exist or is outside of the package.

无效的符号链接- 您的包裹中包含一个符号链接 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/PromiseKit.framework/Headers' 解析到一个位置 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/PromiseKit.framework/Versions/Current/Headers' 不存在或不在包装内.

Invalid Symlink - Your package contains a symbolic link 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/PromiseKit.framework/Headers' which resolves to a location 'com.droidlabs.PlaniroTracker.pkg/Payload/PlaniroTracker.app/Contents/Frameworks/PromiseKit.framework/Versions/Current/Headers' that does not exist or is outside of the package.

我检查了应用程序的内容,并且cocoapods安装的所有框架都包含无效的"Headers"符号链接. Cocoapods版本0.36.4.

I checked contents of the applications, and all frameworks installed by cocoapods contains invalid "Headers" symlink. Cocoapods version 0.36.4.

我在Pods-frameworks.sh中添加了mkdir -p "${destination}/$1/Versions/A/Headers"作为临时解决方法,但是奇怪的是没有创建目录(不确定应该在哪里发生),也许我做错了什么?

I added mkdir -p "${destination}/$1/Versions/A/Headers" to Pods-frameworks.sh as temporary workaround, but it's strange that dirs are not created (not sure where it should happen) and maybe I'm doing something wrong?

推荐答案

删除标头符号链接并重新提交.

Delete the Header symlink and resubmit.

为我工作.

确保文件夹"headers"位于框架文件夹的根目录中

Make sure that the folder "headers" is in the root of your framework folder

还要确保二进制文件位于根文件夹中.

Make also sure that the binary is in the root folder.

示例:

这篇关于Cocoapods-无效的符号链接(标题)阻止提交到App Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:29