草庐IT

extras_require

全部标签

android - 模拟器 : ERROR: x86 emulation currently requires hardware acceleration

我尝试在AndroidStudio中运行我的HelloWorld应用程序。我收到以下错误:Emulator:ERROR:x86emulationcurrentlyrequireshardwareacceleration!PleaseensureIntelHAXMisproperlyinstalledandusable.CPUaccelerationstatus:HAXkernelmoduleisnotinstalled!您能告诉我如何处理该错误吗? 最佳答案 根据thisresponse,完整的步骤是:1)打开SDK管理器(在And

android - 模拟器 : ERROR: x86 emulation currently requires hardware acceleration

我尝试在AndroidStudio中运行我的HelloWorld应用程序。我收到以下错误:Emulator:ERROR:x86emulationcurrentlyrequireshardwareacceleration!PleaseensureIntelHAXMisproperlyinstalledandusable.CPUaccelerationstatus:HAXkernelmoduleisnotinstalled!您能告诉我如何处理该错误吗? 最佳答案 根据thisresponse,完整的步骤是:1)打开SDK管理器(在And

ios - 为什么 UIKit 方法不使用 NS_REQUIRES_SUPER?

许多UIKit类可以被子类化,但文档要求某些方法,如果被覆盖,必须确保仍然调用super。例如:-[UIViewControllerviewWillAppear:]-[UITableViewCelldidTransitionToState:]为什么Apple选择不附加NS_REQUIRES_SUPER这些方法的声明,因为它们确实“需要super”?我的第一个想法是与早期版本的clang向后兼容,但在阅读以下clang文档摘录后,我认为即使这也不是问题:NotethatonbothOSXandiOSthattheFoundationframeworkprovidesaconvenienc

ios - Swift3 上的 "Empty collection literal requires an explicit type"错误

我的类(class)有一个变量:varlist=[]我将它用于我的类的一个函数:funcchargeData(data:NSArray){list=data}它在我的Swift2.3项目中运行良好,但是当我将其更新为XCode8和Swift3时,出现以下错误:Emptycollectionliteralrequiresanexplicittype所以我在我的列表变量中添加了一个类型转换:varlist=[]as!NSArray但它给了我以下警告:Forcedcastof'NSArray'tosametypehasnoeffect我知道警报不会破坏应用程序,但我想以适当的方式解决此错误。

ios - 为什么我现在每次启动应用程序时都会收到 "Auto Layout still required after executing -layoutSubviews"错误?

由于我添加了以下代码,每次我的应用程序打开此UITableViewController时都会崩溃:self.noArticlesView=[[UIViewalloc]init];self.noArticlesView.translatesAutoresizingMaskIntoConstraints=NO;self.noArticlesView.backgroundColor=[UIColorcolorWithRed:0.961green:0.961blue:0.961alpha:1];[self.viewaddSubview:self.noArticlesView];[self.vi

iOS8 动态框架 -> CodeSign 错误 : code signing is required for product type 'Framework' in SDK 'iOS 8.3'

我正在使用自己构建并链接到我的iOS应用程序中的iOS8动态框架。它在模拟器和设备上运行良好,但在尝试为其存档发布版本时,我不断收到此错误:CodeSignerror:Nomatchingprovisioningprofilesfound:Noneofthevalidprovisioningprofilesallowedthespecifiedentitlements:com.apple.developer.ubiquity-kvstore-identifier,keychain-access-groups,com.apple.developer.icloud-container-id

ios - Xcode 7,Obj-C, "Null passed to a callee that requires a non-null argument"

在Xcode7中,我收到此警告:Nullpassedtoacalleethatrequiresanon-nullargument..从这个NSMutableArray的nil初始化...sectionTitles=[[NSMutableArrayalloc]initWithObjects:nil];我发现我应该改用removeAllObjects。[sectionTitlesremoveAllObjects];但是,这不允许我计算sectionTitles.count==0。我确实尝试了sectionTitles==nil,但是除非我使用iniWithObjects,否则我以后无法添加

ios - Assets 目录编译器警告 : a 76x76@2x app icon is required for iPad apps targeting IOS 7. 0 及更高版本

我已经收到这个警告很久了,而且我似乎无法摆脱它。警告是:/Images.xcassets:A76x76@2xappiconisrequiredforiPadappstargetingiOS7.0andlater我试过用一个全新的Assets目录完全替换Assets目录,并复制在其他项目中工作的Assets目录。我什至尝试过不使用Assets目录,但我似乎无法摆脱这个警告。我看不出它出现的任何原因,尤其是当我确实有一个152x152的应用程序图标时。请注意,我正在尝试为iPadIOS7制作图标。有什么我想念的吗? 最佳答案 当目标环境

ios - 运行 pod install 时我得到 The `master` repo requires CocoaPods 0.32.1, try update but still in 0.31

我正在尝试在xcode项目中安装cocoapods,但是在执行时:$podinstall我收到以下错误:SettingupCocoaPodsmasterrepo[!]The`master`reporequiresCocoaPods0.32.1-UpdateCocoaPods,orcheckouttheappropriatetagintherepo./Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:281:in`rescueinrun':undefinedmethod`verbose?'fornil:NilC

ios - Xcode 6 测试版 7 : storyboard adds extra space on right and left sides

当我将subview添加到根ViewController的View,并将自动布局设置leadingSpace、trailingSpace、topSpace和bottomSpace设置为零时,左右两侧会出现一些额外的空间(因此如果我打印subview的框架,其原点将为1632码的尺寸比应有的尺寸小)。所以实际上我们得到前导和尾随空格不是零...正如您在图片中看到的前导空格-零,但origin.x=16早些时候我没有努力使用自动布局,所以我的问题是:这是新Xcode的错误还是功能?附言所有框架和约束已更新。 最佳答案 iOS8增加了“c