Cocoapods - Invalid symlinks (Headers) prevents submission to App Store

不羁的心 提交于 2019-12-24 05:04:22

问题


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

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

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.

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.

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

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?


回答1:


Delete the Header symlink and resubmit.

Worked for me.

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.

example:



来源:https://stackoverflow.com/questions/29929865/cocoapods-invalid-symlinks-headers-prevents-submission-to-app-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!