presentCodeRedemptionSheet call crashes on maccatalyst (ran on macOS 12.3.1):
[SKPaymentQueue presentCodeRedemptionSheet]: unrecognized selector sent to instance
It's easy to reproduce if you create a new project and invode this method on maccatalyst. Has anyone found a solution to this?
On a side note: this API looks broken on iOS in debug mode. Only the app store build present the redeem voucher controller.
Related
I have a weird crash reported by Crashlytics:
[SFSafariViewController setIsInitLanguageConfigSet:]: unrecognized
selector sent to instance 0x100d75fb0
The crash happens in a class that doesn't contain anything related to SFSafariViewController, It's just a simple page containing 3 options related to which language a user wants the app to be localized to.
Has anyone experienced such crash?
Apparently, it was Facebook SDK that was causing this issue.
Updating to the latest version fixed it.
All my hosted facebook applinks used to parse in my app using the bolts framework fine. I go to sleep, wake up and now none of my hosted applinks parse and my app crashes when trying to parse them using the bolts framework.
I have even tested a legacy build of my app on an older device which is archived and has previously passed my test spec's and even that now crashes? Is anyone else experiencing issues parsing hosted facebook applinks on iOS via the bolts framework?
Error message:
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized
selector sent to instance 0x37419830'
We had that same issue yesterday, but it disappeared by itself. Seems like Facebook might have pushed a fix already.
All the new links are working fine, and the ones that were broken are working after a reinstallation of the Facebook App (might have been cached by the app).
I just have device UDID & client reported that the app is crashing
on his device & he is not able to start application.
The client device iOS version is 7.1.2
Also i am not having any crash report.(Asked for Crash Report)
Now referring
(iAd works on simulator but crash on device(ipad)):
I am assuming the reason behind this might be the library,
So will making iAD.framwork optional & handling codes related to this do the trick?
**Update:
Unfortunately the cause of the crash was -[__NSCFString containsString:]: unrecognized selector sent which was iOS version fault & not device fault. I got it resolved. sorry to iAd for blaming or trying to blame. Long live iAd. Thanks**
First of all - you need crash details. Without it, nobody help you.
Integrate any crash reporter SDK: Crashlytics or anything like this.
I am able to load up the ios sdk and have the app load on the phone. However, once I click into 1 of the 3 options of the example app, the app crashes with the error :
[CLLocationManager startRangingBeaconsInRegion:]: unrecognized selector sent to instance
Given there isn't much of an error and I'm new to mobile applications, I'm not sure where to continue looking for an answer on how to solve this.
Platforms:
XCode 5.0.1
iPhone 5 software version 6.1.3
As this method was added in iOS7, if you attempt to perform this method on a device that is not running iOS7, this crash will occur.
You can ensure that the device can actually perform this method without crashing using the 'respondsToSelector' method, which will check that you can actually call said method.
I am trying out pushwoosh and tried unregistering an iOS device on the remote api and this error came up:
-[__NSDictionaryI cdvjk_JSONString]: unrecognized selector sent to instance
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '- [__NSDictionaryI cdvjk_JSONString]: unrecognized selector sent to instance
*** First throw call stack:
libc++abi.dylib: terminate called throwing an exception
Sending request: {"request":{"hwid":"my_hwid", "application":"my_app_id"}}
To urL https://cp.pushwoosh.com/json/1.3/pushStat
(lldb)
I then realized that the unregister method is implemented only for androids and not iOS devices so that request was not being used by the pushwoosh plugins in the plugins folder.
I removed the code from my index.js and pushnotifications.js files but still the error came up every time I tried to launch the app after accepting a push notification.
I then removed this code from the remote api:
new JObject(
new JProperty("custom", "json data"))),
new JProperty("link", "http://pushwoosh.com/")
with the hope that the seemingly custom data wil not be sent to pushwoosh.
Still the error appears. I know that the problem is that an unhanded request is being made every time but the problem is that the code does not exist.
Could I have possibly edited some method signatures and these signatures are being used each and every time I try to accept a push notification?
Or is it that Xcode performs auto-complete?
I would need someone who is familiar with pushwoosh (and Xcode) to help me out here. What would be the workaround without having to upgrade to Cordova 2.1.0 or later since (This error comes from the plugin itself, Phonegap guys have changed the way "JSONString" objective-c function gets called by adding prefix "cdvjk_" breaking the compatibility of the plugins with any < 2.1 Phonegap versions.)?
Please read this thread. Unfortunately, this is kinda fault of PhoneGap guys, who made it impossible to support both Cordova 2.1 and earlier versions:
https://github.com/shaders/phonegap-cordova-push-notifications/issues/12
You can contact Pushwoosh team asking if they still can help you with the older versions.