Repeated Failure before success, in app purchases - objective-c

Ive set up in app purchases. Everything works correctly except randomly after a couple purchases i get EXC_BAD_ACCESS on the addPayment: line. This i believe is some sort of memory issues that im having a heck of a time trying to figure out. On inspecting things i noticed another peculiar behavior. In SKPaymentTransactionStateFailed i put an NSLog, This log triggers ~50 times before the alert view for the in app purchase pops up, then it stops and i can continue normally with my purchase. Is this normal? Could this be the reason im getting EXC_BAD_ACCESS? Im using xcode 4 preview 6 and programming for iOS5.

Related

what does middle guard protection failed %d mean?

When I build my app to my actual iPhone the debug area shows this:
[Allocator] Middle guard protection failed %d
[Allocator] Allocator invalid, falling back to malloc
It shows the 2nd line a total of 30 times. I have no idea what it means or how to fix it. It does not show this when I build to the simulator.
I am having issues with getting state preservation to work using storyboards and restoration ID's and I have a feeling this has something to do with a memory issue so it's dumping my memory and therefore I get no app restoration. Basically, when I go back to my app it shows me the last screen I was on for a second and then goes back to the root page.
Anyway, I'd like to fix this malloc stuff so I can at least rule it out the culprit, plus I don't want to have an issue with memory in general...
I've been googling this for a couple of weeks now too and can't find anything!
Looks like it's an issue with the Crashlytics framework. I have the same issue, and commenting this API call:
[Crashlytics startWithAPIKey:API_KEY];
removes that warning.
It does indeed seem to be an issue at Crashlytics. I know from other threads that they raised the "Allocator invalid..." issue in relation to another Middle error (not Middle guard protection failed %d), which later got marked as fixed.
I fixed this by deleting all the crashlytics stuff and using the new fabric/crashlytics framework. Problem solved.
(Interestingly, I had it only on an iPad, my iPhone 5C made no complaints at all.)

iOS 'set up iad network' button missing

I am trying to set my app to use iAds but there are some problems. I followed this tutorial and got stuck on step three cause the button isn't available for me.
I'm not entirely sure why. I already filled up the paperwork, tax and contracts info. But the button is not there. Has it been moved?
A few months ago the button WAS there, however after I clicked it and enabled it, it tells me that I can only enable it when the app is in review. Ok now back to the present, I submit my app that has iAds in it. And it is waiting to be reviewed. The button to enable iAds is missing. It's been a week already. The app already got approved and is available, yet the button is not there. I'm not sure how else to enable iAds.
I have tried going to the iAd network site but all it tells me is that iAd network is temporarily unavailable. It's been already a week.
I finally got a response from apple regarding this issue.
They are no longer using the enable iAd button. As long as you have the paperwork and the iAd framework it should work.
I already have the paperwork done so they tell me that my implementation is wrong.
So I stopped using interface builder for my adds and instead just did it all programmatically.
I don't know if it will make a difference. We shall see... After my app gets approved I'll let ya know....
I simply updated the apps that were supposed to have ads from iAd, and now they are working. It seems that Apple is having quite a few issues with their servers at the moment, though.
I have also recently started implementing iAd in my apps. I have published three apps with iAd and did not see the button in iTunes Connect. The test ads work, however, I have not been able to test whether the ads work on a non provisioned device yet.I have also noticed the iAd module giving me the "iAd Network is temporarily unavailable" error message. I have seen it for at least five days now.
Update: My apps are finally being served iAds. What I did was simply release an update. I didn't even change my code for the ads. I am also not seeing the error from iAd that they can't find my account info; I'm just seeing revenue.

Multiple UIWebView

Ok, so I am an extremely novice programmer. I know next to nothing (which is why I am asking you guys.) So, I built a tab bar application in xcode to run on my iPhone. (I used this turorial: http://fuelyourcoding.com/creating-a-tab-bar-application-using-storyboards-in-xcode-4-2/) Everything from that point of view works great, the tabs all go to the correct pages and I know how to add more pages if I want to. The problem that I am coming across is that I want a good amount of the tabs to be web views. The problem that I am facing is that I can get the first view controller to work (thanks to this tutorial: http://conecode.com/news/2011/05/ios-tutorial-creating-a-web-view-uiwebview/) but I have no idea how to get another one to do the same thing. I have googled and what I get is just a bunch of code that I have no idea where to put. Any help?

iAds giving ADInternalErrorCode=3, inventory unavailable 100% of the time

I have an iAd banner and fullscreen ad, that both were working just last night. The banner was loading much more often than the fullscreen ad, but they were coming up at least some of the time. This morning i have been at it for 3 hours and not seen a single iAd displayed on my iPad 2. I keep getting the error
Domain=ADErrorDomain Code=3 "The operation couldn’t be completed. Ad inventory unavailable" UserInfo=0x49a4f0 {ADInternalErrorCode=3, NSLocalizedFailureReason=Ad inventory unavailable}
I know apple throws errors in for testing purposes but I have probably reloaded the whole app from a clean build 10 times, and run about 100 others.
Can any one tell me their experience with this, and if this is normal?
Also im running iOS 5.0.1 on my iPad 2
Thanks!
Check iTunes Connect and see if there is an updated iAd agreement you need to accept (you should see it when you click the "iAd network" link). This happened to me too, and when I accepted the new agreement, the iAds started working again.

app terminating suddenly without giving any exception in console in iphone

i have a problem while building and running an iphone application.Im using xml parsing to get data and storing it in core data.From there im retrieving data to display in a table.As i did this,seems to be working becoz im able to display it in the table as well as in a console but the app was terminating suddenly without leaving any exception in console.I thought it may be becoz of not releasing any object and thouroghly checked it out.but everything is gud.Could u please let me know why this has been happening?
You should use the NSZombie. It will show you the exact problem in console.