草庐IT

COMPONENT_REQUIRES

全部标签

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 - 运行 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 - 使用 GCC 时为 "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo."

在尝试编译我的C程序时,运行以下命令:gccpthread.c-opthread返回:AgreeingtotheXcode/iOSlicenserequiresadminprivileges,pleasere-runasrootviasudo.我的代码无法编译。为什么会发生这种情况,我该如何解决这个问题? 最佳答案 打开Xcode,接受新的用户协议(protocol)。发生这种情况是因为下载了新版本的Xcode,但未接受新协议(protocol)。 关于ios-使用GCC时为"Agree

travis-ci - TravisCI - ERR : Package flute_music_player requires Flutter SDK version ^0. 1.2 但当前 SDK 为 0.0.0-未知

我是新的travis,并开始使用flutter进行研究。我正在使用flute_music_playerplugin用于我的音乐播放器应用。现在应用程序在我的机器上本地运行/构建良好,但我无法在Travis上构建它这是我得到的$./flutter/bin/fluttertestRunning"flutterpackagesget"intumultus...Packageflute_music_playerrequiresFlutterSDKversion^0.1.2butthecurrentSDKis0.0.0-unknown.----Logtranscript----....----E

docker - 删除所有停止的容器 : "docker rm" requires at least 1 argument

我正在读一本关于docker的书。几年了。我会引用:Ifyouwanttogetridofallyourstoppedcontainers,youcanusetheoutputofdockerps-aq-fstatus=exited,whichgetstheIDsofallstoppedcontainers.Forexample:$dockerrm-v$(dockerps-aq-fstatus=exited)当我运行它时,我得到:michael@michael-desktop:~$sudodockerrm-v$(dockerps-aq-fstatus=exited)Gotpermiss

docker - 删除所有停止的容器 : "docker rm" requires at least 1 argument

我正在读一本关于docker的书。几年了。我会引用:Ifyouwanttogetridofallyourstoppedcontainers,youcanusetheoutputofdockerps-aq-fstatus=exited,whichgetstheIDsofallstoppedcontainers.Forexample:$dockerrm-v$(dockerps-aq-fstatus=exited)当我运行它时,我得到:michael@michael-desktop:~$sudodockerrm-v$(dockerps-aq-fstatus=exited)Gotpermiss

A component required a bean of type ‘XXX‘ that could not be found 解决办法

问题如图:字面意思很容易就能看出,该问题是由于SpringBoot在启动时,bean扫描失败,从而导致加载失败。可以从如下几个方面排查:检查问题类上是否标注了SpringBoot可以自动扫描的注解,比如缺失了@Service、@Component、@Mapper等,如果是这个原因,直接添加上响应的注解就可以解决了。如果没有缺失注解,那么查看问题类是否在SpringBoot可以扫描到的范围内。一般情况下,若没有特殊配置,springboot启动时会自动扫描启动类所在包及其子包下的类,不在这个范围之内则会扫描失败。如果是这个原因导致的,可以按下面的方法解决:方法1:将问题类移动到可以扫描到的包下面

交响乐 3 : Configure cache component pools with Redis

我想使用新的CacheComponent在Redis中存储数据。我想配置具有不同数据生命周期的池。现在,我配置了:framework:cache:app:cache.adapter.redisdefault_redis_provider:"redis://localhost:6379"pools:app.cache.codification:adapter:cache.appdefault_lifetime:86400app.cache.another_pool:adapter:cache.appdefault_lifetime:600但是我不知道如何在我的代码中使用app.cache

ios - SecPKCS12Import when p12 requires an empty passphrase

我在p12中有一个私钥,它设置了空密码。现在,当我尝试在OSX或iOS上使用SecPKCS12Import导入此私钥时,出现错误(在Windows上是等效的)。-(NSError*)setClientIdentityCertificateFromPKCS12Data:(NSData*)PKCS12DatawithPassword:(NSString*)password{OSStatussecurityError=errSecSuccess;constvoid*keys[]={kSecImportExportPassphrase};constvoid*values[]={(__bridg