草庐IT

Module_Info

全部标签

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

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

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

npm 报错 Error: Cannot find module ‘semver‘的解决方法

执行npminstall报错node:internal/modules/cjs/loader:1078throwerr;^Error:Cannotfindmodule'semver'Requirestack:-/usr/share/npm/lib/utils/unsupported.js-/usr/share/npm/bin/npm-cli.jsatModule._resolveFilename(node:internal/modules/cjs/loader:1075:15)atModule._load(node:internal/modules/cjs/loader:920:27)atMo

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 - Xcode 9 : Module compiled with Swift 3. 1 Swift 4.0无法导入

更新到Xcode9后,我尝试构建我的项目之一。我使用FacebookLoginpod。我在FacebookLogin/LoginButton.swift中有一个编译器错误@testableimportFacebookCore❌ModulecompiledwithSwift3.1cannotbeimportedinSwift4.0在我的目标build设置中,Swift语言版本设置为Swift3.2。我想我需要等待Facebook更新他们的广告连播吗?或任何其他建议?谢谢! 最佳答案 更新:解决方案还在Swift5和Xcode11中进行