Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: - xcode

I am using the the following code to upload posts to a wordpress site but have an issue.
TallyViewController *postVC = (TallyViewController *)[(UINavigationController *)[self presentingViewController] topViewController];
[postVC publishPostWithTitle:timeStampLabel.text content:descText.text image:self.image];
[self dismissViewControllerAnimated:YES completion:nil];
This is the error I am recieving...
[UITabBarController publishPostWithTitle:content:image:]: unrecognized selector sent to instance 0x157505dc0
2015-02-11 06:50:13.637 WingMan[966:160223] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController publishPostWithTitle:content:image:]: unrecognized selector sent to instance 0x157505dc0'
*** First throw call stack:
(0x1853d659c 0x195adc0e4 0x1853dd664 0x1853da418 0x1852deb6c 0x100159c28 0x189bb9418 0x189ba252c 0x189bb8db4 0x189bb8a40 0x189bb1f94 0x189b8568c 0x189e2460c 0x189b83bf4 0x18538e9ec 0x18538dc90 0x18538bd40 0x1852b90a4 0x18e45b5a4 0x189beaaa4 0x10014377c 0x19614aa08)
libc++abi.dylib: terminating with uncaught exception of type NSException

Related

Unhandled exception thrown: read access violation. _Scary was 0x30

i got an issue with specific error Unhandled exception thrown: read access violation.
_Scary was 0x30.
i m trying to load a terrain with a model loaded from assimp and i keep getting this exception
const auto _Scary = _Get_scary();
_Tree_find_result<_Nodeptr> _Result{{_Scary->_Myhead->_Parent, _Tree_child::_Right}, _Scary->_Myhead};
_Nodeptr _Trynode = _Result._Location._Parent;

WebSupergoo ABCpdf10 PDF Exception Failed to add HTML

We are getting following exception. It is working fine on local. Can anyone provide any suggestion?
9528 19:15:28 ERROR EDComponents > EDPDFGenerator Exception
Exception: WebSupergoo.ABCpdf10.Internal.PDFException
Message: Failed to add HTML: Page load failed. The specified file is unavailable. This could be related to network or permission issues, or OnLoadScript evaluation error.
Source: ABCpdf
at WebSupergoo.ABCpdf8.Doc.AddUrlHtml(String urlOrHtml, Boolean isHtml, Boolean paged, Int32 width, Boolean disableCache)
at WebSupergoo.ABCpdf8.Doc.AddImageUrl(String url, Boolean paged, Int32 width, Boolean disableCache)
at WebSupergoo.ABCpdf8.Doc.AddImageUrl(String url)
at K2Intelligence.Web.UI.Controllers.BioController.GenerateDefautPDF()
Nested Exception
Exception: WebSupergoo.ABCpdf10.Internal.PDFException
Message: Page load failed. The specified file is unavailable. This could be related to network or permission issues, or OnLoadScript evaluation error.
Source: ABCpdf
at WebSupergoo.ABCpdf10.Internal.Gecko.GeckoWorker.AddImageUrl(String url, Double pageWidthMm, Double pageHeightMm, AddImageUrlOptions options, IProgressStreamEx stream)

"CKSubscriptionTypeRecordZone subscriptions are incompatible with subscription options 7" when creating a subscription

I'm trying to use the following code to create a CloudKit subscription:
let container = CKContainer.defaultContainer()
let database = container.publicCloudDatabase
let recordZone = CKRecordZone.defaultRecordZone()
let subscription = CKSubscription(zoneID: recordZone.zoneID, options: .FiresOnRecordCreation | .FiresOnRecordUpdate | .FiresOnRecordDeletion)
database.saveSubscription(subscription) {(subscription: CKSubscription!, error: NSError!) in
if error
{
NSLog("Error: %#", error)
}
else if subscription
{
NSLog("Saved subscription: %#", subscription)
}
}
And it fails with this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'CKSubscriptionTypeRecordZone subscriptions are incompatible with subscription options 7'
What does this mean, and how can I fix it? I want to be notified when a record is created, updated, or deleted.
Duh! From the docs:
subscriptionOptions
The configuration options for the subscription. You must specify 0 for this parameter. Zone subscriptions currently do not support any options.
Specifying nil works, although I'm probably going to take a different approach.

Mac ABRecord setValue forProperty error

When I use AddressBook like this :
ABAddressBook *ab = [ABAddressBook addressBook];
ABPerson *person = [[ABPerson alloc]init];
[person setValue:lastName forProperty:kABLastNameProperty];
[ab addRecord:person];
[ab save];
I got error :
`Terminating app due to uncaught exception 'NSInvalidArgumentException',reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x1001448a0'`
What does setValue:forProperty do
It looks like the problem is in
-[__NSCFString count]
The setValue:forProperty sets value for a property. It looks like the problem might be your lastName object that you are trying to set.

Using FaceBook SDK why do I get 'NSInvalidArgumentException', reason: '-[__NSDictionaryM length]: unrecognized selector sent to instance

This code gives this error...why ?
'NSInvalidArgumentException', reason: '-[__NSDictionaryM length]: unrecognized selector sent to instance
NSMutableDictionary *info = [NSMutableDictionary dictionaryWithObjectsAndKeys:longitude,#"longitude",latitude,#"latitude",nil];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: info, #"venue", nil];
NSString *graphPath = [NSString stringWithFormat:#"/%#", (ID_OF_EVENT)];
FBRequest *updateEvent = [FBRequest requestWithGraphPath:graphPath parameters:params HTTPMethod:POST];
[updateEvent startWithCompletionHandler: ^(FBRequestConnection *connection,
NSDictionary* result,
NSError *error) {
I am trying to set the venue longitude and latitude, but no matter what I try I keep getting the run time error. What am I missing ? I thought "venue" is a dictionary under the main event and has the valid keys "longitude" and "latitude". Have one my parameters got to be an Array and not a dictionary ?
Actually I suspect these elements are non writable and I probably have to add the address at #"location" to see the details appear.
Regards

Resources