草庐IT

dist-info

全部标签

ios - 如何本地化 iOS 6 新的 Info.plist 隐私目的字符串?

Apple为每个应用引入了新的隐私设置,允许用户决定是否允许某个应用访问用户的通讯录、日历、照片和提醒事项。当应用程序首次尝试访问这些资源之一时,用户将看到一个UIAlertView,类似于应用程序需要位置访问时的已知机制。也可以设置目的字符串,让用户知道为什么应用需要访问。但是,现在这是通过Info.plist中的键完成的,例如联系人的“隐私-联系人使用说明”(NSContactsUsageDescription)。现在我问自己如何本地化这些值?对于位置目的文本,我曾经使用NSLocalizedString(...)设置CLLocationManager实例的目的属性。我如何使用In

ios - "The app' s Info.plist 必须包含 NSPhotoLibraryAddUsageDescription 的崩溃是什么?

我遇到了以下错误(iOS11):Thisapphascrashedbecauseitattemptedtoaccessprivacy-sensitivedatawithoutausagedescription.Theapp'sInfo.plistmustcontainanNSPhotoLibraryAddUsageDescriptionkeywithastringvalueexplainingtotheuserhowtheappusesthisdata.请注意,尽管应用程序info.plist确实包含NSPhotoLibraryUsageDescription,但它仍然会崩溃,这是为什

ios - "The app' s Info.plist 必须包含 NSPhotoLibraryAddUsageDescription 的崩溃是什么?

我遇到了以下错误(iOS11):Thisapphascrashedbecauseitattemptedtoaccessprivacy-sensitivedatawithoutausagedescription.Theapp'sInfo.plistmustcontainanNSPhotoLibraryAddUsageDescriptionkeywithastringvalueexplainingtotheuserhowtheappusesthisdata.请注意,尽管应用程序info.plist确实包含NSPhotoLibraryUsageDescription,但它仍然会崩溃,这是为什

ios - LLDB 等同于 GDB 的 "info malloc-history <address>"命令?

我正在尝试解决iOS中的“消息已发送到已解除分配的实例”错误。 最佳答案 请参阅LLDB-GDB命令映射(http://lldb.llvm.org/lldb-gdb.html)-您必须导入一个脚本,并且该命令现在名为malloc_info。显然,mallocstacklogging还是需要在scheme选项中开启。(lldb)scriptimportlldb.macosx.heap(lldb)malloc_info--stack-history0x10010d680不幸的是,它没有显示dealloc的-GDB的malloc-hist

ios - LLDB 等同于 GDB 的 "info malloc-history <address>"命令?

我正在尝试解决iOS中的“消息已发送到已解除分配的实例”错误。 最佳答案 请参阅LLDB-GDB命令映射(http://lldb.llvm.org/lldb-gdb.html)-您必须导入一个脚本,并且该命令现在名为malloc_info。显然,mallocstacklogging还是需要在scheme选项中开启。(lldb)scriptimportlldb.macosx.heap(lldb)malloc_info--stack-history0x10010d680不幸的是,它没有显示dealloc的-GDB的malloc-hist

ios - (NSFetchedResultsController) : couldn't read cache file to update store info timestamps

我将我的项目升级到Xcode8。现在,我收到了Xcode8和iOS10组合的错误日志。在下面的代码中将cacheName设置为nil似乎可以解决这个问题。NSFetchedResultsController*frc=[[NSFetchedResultsControlleralloc]initWithFetchRequest:fetchRequestmanagedObjectContext:self.managedObjectContextsectionNameKeyPath:NULLcacheName:@"myCache"];我应该怎么做才能摆脱这个错误日志并在我的FRC中使用缓存?

ios - (NSFetchedResultsController) : couldn't read cache file to update store info timestamps

我将我的项目升级到Xcode8。现在,我收到了Xcode8和iOS10组合的错误日志。在下面的代码中将cacheName设置为nil似乎可以解决这个问题。NSFetchedResultsController*frc=[[NSFetchedResultsControlleralloc]initWithFetchRequest:fetchRequestmanagedObjectContext:self.managedObjectContextsectionNameKeyPath:NULLcacheName:@"myCache"];我应该怎么做才能摆脱这个错误日志并在我的FRC中使用缓存?

ios - 远程推送通知是否需要在 Info.plist 中添加 UIBackgroundModes?

我已经集成了远程推送通知,但我收到了这个警告:didReceiveRemoteNotification:fetchCompletionHandler:],butyoustillneedtoadd"remote-notification"tothelistofyoursupportedUIBackgroundModesinyourInfo.plist.我的Xcode版本是8.3.1。我真的很想将它添加到Info.plist。我也遵循了一些教程,但他们也没有提到这一点。我到底应该怎么做? 最佳答案 是的,您应该启用后台模式/远程通知才能

ios - 远程推送通知是否需要在 Info.plist 中添加 UIBackgroundModes?

我已经集成了远程推送通知,但我收到了这个警告:didReceiveRemoteNotification:fetchCompletionHandler:],butyoustillneedtoadd"remote-notification"tothelistofyoursupportedUIBackgroundModesinyourInfo.plist.我的Xcode版本是8.3.1。我真的很想将它添加到Info.plist。我也遵循了一些教程,但他们也没有提到这一点。我到底应该怎么做? 最佳答案 是的,您应该启用后台模式/远程通知才能

ios - 错误 Appstore 连接 : Missing Purpose String in Info. plist 文件

我已将我的应用程序提交到AppStoreConnect进行审核。虽然该应用程序仍在审核中,但我收到了一封电子邮件,通知我必须修复错误。邮件内容如下:DearDeveloper,WeidentifiedoneormoreissueswitharecentdeliveryforyourappXXXXX.Yourdeliverywassuccessful,butyoumaywishtocorrectthefollowingissuesinyournextdelivery:"MissingPurposeStringinInfo.plistFile.Yourapp'scodereferences