Breaking News
Home / iOS / iOS Isuses (page 2)

iOS Isuses

Could not instantiate class named NSLayoutConstraint

Issue Application crashes with the following when running in iOS 5.x in the simulator. 013-06-29 11:06:03.732 LiveTRAXs[7163:c07] GoogleAnalytics 2.0b4 -[GAIDispatcher internalCreateTimer] (GAIDispatcher.m:195) DEBUG: Created timer to fire every 30.0s2013-06-29 11:06:08.735 LiveTRAXs[7163:c07] *** Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘Could not instantiate class named NSLayoutConstraint’*** First throw call stac …

Read More »

Coco2d 2x upgrade error – Cannot find protocol declaration

Issue On upgrading to cocos2d 2.x for 1.x, the project fails to compile and the following two errors are displayed: 1) Cannot find protocol declaration for CCTargetTouchDelegate 2) Cannot find protocol declaration for CCStandardTouchDelegate Solution In cocos2d 2.x the delegates class names have been renamed as follows: CCTargetedTouchDelegate -> CCTouchOneByOneDelegate …

Read More »

Embedding Youtube Video in iPhone does not work

Issue Embedding Youtube Video in iOS app does not diplay the Youtube Video, instead there is any error display in the logs. Error *** WebKit discarding exception: <NSRangeException> *** -[__NSCFString substringToIndex:]: Range or index out of bounds Here is how the YouTube video url is created: NSString *url = [[NSString …

Read More »

Google Analytics Link Error in XCode

Adding Google Analytic library to the iOS project, the XCode project does not build anymore. It fails with the following error:Undefined symbols for architecture armv7:   “_OBJC_CLASS_$_NSFetchRequest”, referenced from:       objc-class-ref in libGoogleAnalytics.a(GAIDataStore.o)   “_OBJC_CLASS_$_NSManagedObject”, referenced from:       _OBJC_CLASS_$_GAIHit in libGoogleAnalytics.a(GAIHit.o)       _OBJC_CLASS_$_GAIProperty in libGoogleAnalytics.a(GAIProperty.o)   “_OBJC_CLASS_$_NSManagedObjectModel”, referenced from:       …

Read More »

Exception :switch case in protective scope (Objective C)

Exception :switch case in protective scope Code with Issue   case kTopicInteractiveScene:             TopicInteractiveBackgroundLayer *l = [[TopicInteractiveBackgroundLayeralloc] init];             ModelManager *mm = [ModelManagersharedModelManger];    = mm.appInfo.topics[[AppConfigManager  getInstance].currentTopic];             sceneToRun = [l node];             break; <!

Read More »
Advertisment ad adsense adlogger