草庐IT

NSInternalInconsistencyException

全部标签

ios - NSInternalInconsistencyException : 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)'

我试图让我的应用程序在Xcode7beta中运行,但我遇到了这个异常:NSInternalInconsistencyException:'Invalidparameternotsatisfying:!stayUp||CLClientIsBackgroundable(internal->fClient)'这是调用堆栈:0CoreFoundation0x00000001063a89b5__exceptionPreprocess+1651libobjc.A.dylib0x0000000105e20debobjc_exception_throw+482CoreFoundation0x00000

ios - cordova 'NSInternalInconsistencyException',原因 : 'ERROR: config. xml 不存在

我正在尝试为ios运行一个新的helloworldcordova应用程序。它在初始屏幕上不断崩溃。但是我总是报错'NSInternalInconsistencyException',原因:'错误:config.xml不存在。请运行cordova-ios/bin/cordova_plist_to_config_xmlpath/to/project.当我导航到hellocordva.xcodeproj并运行时运行cordova-ios/bin/cordova_plist_to_config_xml。它不是命令这是testapp/platforms/ios/HelloCordova旁边的co

ios - 将新对象添加到检索到的 NSMutableArray - 返回 NSInternalInconsistencyException

当我尝试将对象添加到检索到的NSMutableArray时,我不断收到此错误。Terminatingappduetouncaughtexception'NSInternalInconsistencyException',reason:'-[__NSCFArrayinsertObject:atIndex:]:mutatingmethodsenttoimmutableobject'检索:NSUserDefaults*userDefaults=[NSUserDefaultsstandardUserDefaults];NSMutableArray*arrayOfTitles=[userDefa

iphone - 核心数据获取请求失败,原因为 : 'NSInternalInconsistencyException' ,: 'statement is still active'

使用带核心日期的导航Controller模板的基本应用布局:委托(delegate):persistenceCoordinator、managedObjectModel、managedObjectContextRootView:managedObjectContext(来自委托(delegate))、addManagedObjectContext(使用模板中的模式)、fetchResultsController添加/编辑View(用于添加对象A及其B的层次结构)我有两个对象,A和B,它们共享一对一关系/反向关系使用应用模板中的模式:创建一个addManagedObjectContext

ios - 自定义 UICollectionViewCell 自动布局 NSInternalInconsistencyException 错误

我正在对UICollectionViewCell进行子类化,并使用自动布局在代码中完成所有布局。这是我的初始化方法:-(id)initWithFrame:(CGRect)frame{frame=CGRectMake(0,0,403,533);if(self=[superinitWithFrame:frame]){self.translatesAutoresizingMaskIntoConstraints=NO;PBCardPricesViewController*pricesView=[[PBCardPricesViewControlleralloc]init];[selfaddSub

iphone - TableView 应用因 'NSInternalInconsistencyException' 而终止

我正在尝试掌握UITableViews及其相关的一切。目前我有以下代码:-(NSInteger)tableView:(UITableView*)tableViewnumberOfRowsInSection:(NSInteger)section{return10;}-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)indexPath{staticNSString*CellIdentifier=@"Cell";UITableViewCell*cell=[tableV

ios - NSInternalInconsistencyException,原因 : Could not load NIB in bundle

关于这个问题,我已经看了一堆答案,但似乎没有一个与我的问题有关。我有两个View,View1有一个按钮。View2有一个按钮。View1按钮绑定(bind)到模型segue到View2。我单击View1中的按钮,它会打开View2。在View2中,按钮连接到触发的IBAction[selfdismissViewControllerAnimated:YEScompletion:nil];关闭View并再次显示View1-现在,如果我再次按下View1上的按钮,我得到***Terminatingappduetouncaughtexception'NSInternalInconsistenc

ios - NSInternalInconsistencyException 与自动布局

我正在尝试在我的TableViewController中为标题使用自定义标题View。我为我的自定义uitableviewheaderfooterview创建了一个类。我的自定义标题View中有什么?它向默认标题View添加了一个按钮。我可以将这个自定义标题View与几个uitableviewcontrollers一起使用。但似乎我根本无法将它用于某些Controller。导航Controller中的第一个TableViewController;使用我的自定义View是可以的。但是如果我推到下一个View,我会很快遇到问题..我不会在这里发布我的自定义类,因为它的长度以及它也可以用更简

ios - 应用程序因暂停动画和 NSInternalInconsistencyException 而崩溃

我通过向上拉和向下滑动来为UIView在屏幕上和屏幕外设置动画。我使用这段代码来做到这一点:privatevar_animator:AnyObject?@available(iOS10.0,*)varanimator:UIViewPropertyAnimator?{get{return_animatoras?UIViewPropertyAnimator}set{_animator=newValue}}varhaveTheySwiped=falsevarhaveTheyNotSwiped=true@available(iOS10.0,*)funchandlePan(recognizer:

ios - 由于未捕获的异常 'NSInternalInconsistencyException' 而终止应用程序,原因 : 'FCM error: cannot have last checkin timestamp in future'

现在每个应用程序都有firebase推送通知,我们的应用程序也是如此。一切正常,比如发送通知等等。但是我开始收到这个错误:Terminatingappduetouncaughtexception'NSInternalInconsistencyException',reason:'FCMerror:cannothavelastcheckintimestampinfuture'记录上述错误:2019-03-2615:27:49.375300+0530appName[665:131254]*Assertionfailurein-FIRInstanceIDCheckinPreferencesh