草庐IT

require-ified

全部标签

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 9 : Warning "All interface orientations must be supported unless the app requires full screen" for universal app

我正在开发一款在iPad上具有所有方向而在iPhone上仅纵向的通用应用程序。该应用程序适用于兼容iOS9的iPad上的分屏多任务处理,但我收到以下警告:Allinterfaceorientationsmustbesupportedunlesstheapprequiresfullscreen而且我的应用不需要全屏。它只限于iPhone上的人像......应该没问题吧?有没有办法只在iPhone上声明需要全屏?提前致谢顺便说一句,我使用的是Xcode7.3.1 最佳答案 在Info.plist中将UIRequiresFullScree

ios - Xcode 错误 : Code signing is required for product type 'Application' in SDK 'iOS 10.0'

我在OSXElCapitan上安装了Xcode8。我收到这个错误:Signingfor"target"requiresadevelopmentteam.Selectadevelopmentteamintheprojecteditor.Codesigningisrequiredforproducttype'Application'inSDK'iOS10.0' 最佳答案 将开发者帐户添加到Xcode:按Cmd⌘+,(逗号)转到帐户标签按照下面的屏幕截图启用开发团队:至少在某些情况下,可能还需要在移动设备上信任您的开发者资料。如果您在移动