xcode 路由应用程序覆盖文件丢失但不需要?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18183706/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:41:34  来源:igfitidea点击:

Routing App Coverage File missing but not needed?

iosobjective-cxcode

提问by Josh Boothe

I am submitting my app to the app store which uses location services (GPS dot) and MKPinAnnotationsand doesn't use anything else for a map, and it looks from what I have researched that the Routing Coverage File is used for overlays?

我正在将我的应用程序提交到使用位置服务(GPS 点)的应用程序商店,MKPinAnnotations并且不使用其他任何内容作为地图,从我研究的内容来看,路由覆盖文件用于覆盖?

I dont think I need a Routing Coverage File, but when I go to publish, xcode errors out saying it is missing in the Itunes Connect.

我认为我不需要路由覆盖文件,但是当我去发布时,xcode 错误提示它在 Itunes Connect 中丢失。

The category for the app is Utilities. It was also navigation but I unticked this hoping it would solve the issue and it didn't.

该应用程序的类别是实用程序。这也是导航,但我取消了这一点,希望它能解决问题,但事实并非如此。

How can I get around this?

我怎样才能解决这个问题?

回答by TPoschel

I had the exact same issue earlier today when trying to publish an application that uses the MapKit but does not offer routing capabilities. I resolved it by deselecting all supported routing modesunder '{Target} --> Capabilities --> Maps'. If you are just looking at the Info.plist file then you can remove the the MKDirectionsApplicationSupportedModeskey and the CFBundleTypeNamekey that equals MKDirectionsRequest.

今天早些时候,我在尝试发布使用 MapKit 但不提供路由功能的应用程序时遇到了完全相同的问题。我通过取消选择“{Target} --> Capabilities --> Maps”下的所有支持的路由模式来解决它。如果您只是查看 Info.plist 文件,那么您可以删除MKDirectionsApplicationSupportedModes键和CFBundleTypeName等于的键MKDirectionsRequest

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <!--Remove both of these key/value pairs -->
        <key>CFBundleTypeName</key>
        <string>MKDirectionsRequest</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.apple.maps.directionsrequest</string>
        </array>
    </dict>
</array>

and

<key>MKDirectionsApplicationSupportedModes</key>
<array>
    <string>MKDirectionsModeBike</string>
    <string>MKDirectionsModeBus</string>
    <string>MKDirectionsModeCar</string>
    <string>MKDirectionsModeFerry</string>
    <string>MKDirectionsModeOther</string>
    <string>MKDirectionsModePedestrian</string>
    <string>MKDirectionsModePlane</string>
    <string>MKDirectionsModeStreetCar</string>
    <string>MKDirectionsModeSubway</string>
    <string>MKDirectionsModeTaxi</string>
    <string>MKDirectionsModeTrain</string>
</array>

enter image description here

在此处输入图片说明

回答by hoogw

turn off map capability solved my problem,

关闭地图功能解决了我的问题,

xcode - next to general tap, you should see capability tab,

xcode - 在常规点击旁边,您应该看到功能选项卡,

scroll down to maps section, turn it off,

向下滚动到地图部分,将其关闭,



general tab, change you build and version different from last time,

常规选项卡,更改与上次不同的构建和版本,

re-upload to app store.

重新上传到应用商店。

This time it would not ask for routing profile coverage file,

这次它不会要求路由配置文件覆盖文件,

Done.

完毕。

回答by Joshmon27

This took me a long time to figure out, but the problem was with my scheme. It was the routing app coverage file location. I just change it to "None". Go to your scheme -> Edit Scheme -> Run -> Options -> Routing App Coverage File, change it to None. see here

这花了我很长时间才弄明白,但问题出在我的计划上。这是路由应用程序覆盖文件位置。我只是将其更改为“无”。转到您的方案 -> 编辑方案 -> 运行 -> 选项 -> 路由应用程序覆盖文件,将其更改为无。 看这里