gpt4 book ai didi

xcode - Mac App Store 应用程序因访问文件系统而被拒绝 - 2.30

转载 作者:行者123 更新时间:2023-12-03 16:56:52 25 4
gpt4 key购买 nike

开发我的第一个 Mac app 后我决定将其提交到 Mac App Store,但遭到拒绝。基本上我的应用程序使用 NSOpenPanel 来读取 Xcode 项目文件,并使用 NSSavePanel 在完成工作后保存文件。审阅者指出该应用程序违反了 2.30 规则 - 不符合 Mac OS X 文件系统文档的应用程序将被拒绝,但我不清楚原因。

当您查看应用程序的工作区时,您可以看到它使用 CocoaPods 来处理依赖项,这应该不是问题。接下来它有 JBLocalizer.framework,它作为嵌入式库链接到 JBLocalizerApp。 JBLocalizerApp 是发送给审核的最终目标。

enter image description here

以下是审阅者指出的问题:

2.30

The application accesses the following location(s):

'/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBString.gcda' '/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBPostProcessStringsOperation.gcda' '/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBOperation.gcda' '/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBLoadStringsInFileOperation.gcda' '/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBLoadSourceFilesOperation.gcda' '/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBLoadRootFilesOperation.gcda' '/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBFileController.gcda' '/Users/josipbernat/Library/Developer/Xcode/DerivedData/Build/Intermediates/ArchiveIntermediates/JBLocalizerApp/IntermediateBuildFilesPath/JBLocalizer.build/Release/JBLocalizer.build/Objects-normal/x86_64/JBFile.gcda'

The majority of developers encountering this issue are opening files in Read/Write mode instead of Read-Only mode, in which case it should be changed to Read-Only.

Other common reasons for this issue include:

  • creating or writing files in the above location(s), which are not valid locations for files to be written as stated in documentation

  • writing to the above location(s) without using a valid app-id as a container for the written files

Please review the "File-System Usage Requirements for the App Store" of Submitting to the Mac App Store for the locations apps are allowed to write and for further guidance.

我真的不确定我的应用程序如何违反对所链接的库的访问。有什么建议吗?

最佳答案

您已在项目设置中启用了代码覆盖率。

参见QA1514它是如何打开的,这应该可以帮助您将其关闭。

关于xcode - Mac App Store 应用程序因访问文件系统而被拒绝 - 2.30,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31670790/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com