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

标签 xcode macos cocoa review

开发我的第一个 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/

相关文章:

cocoa - 在drawRect之外获取NSView的CGContextRef?

xcode - 在 xcode5 中在 .h 和 .m 文件之间切换的快捷方式

ios - 使用 AVFoundation 终止应用程序错误的自定义相机 - SWIFT 4

macos - 在 Interface Builder MacO 中从 localized.strings 获取字符串

ios - 将 Xcode 7.0.1 更新到 7.1

objective-c - 更改属性值时使用 Core Data 时出现 EXC_BAD_ACCESS 错误

ios - 如何在 SwiftUI 中设置与 superview 成比例的高度和宽度?

objective-c - 在 iOS 上以编程方式更改键盘类型不执行任何操作

python - 在(OS X 10.8.4 和 Python 2.7.5)上安装 matplotlib 失败(尝试了所有方法)

objective-c - 在 iPhone 上录制音频并使用 NSOutputStream 通过网络发送