Issue with Blowfish encryption using kccOptionECBMode and kccOptionPKCS7padding on ios 6 - iphone

I am facing problem with BlowFish encryption iOS 6.
The funny part is the code is working perfectly fine on iOS 7.
Here is what happens, when i execute CCCrypt function i get return value as kccSuccess , and dataOutMoved value exactly as expected. But on iOS 6 surprisingly the encrypted string contains some in between bytes as 0x00.
I have been looking on the web a lot , couldn't find any difference between implementation of CCCrypt on ios6 and 7.

According to the answer i got from the developer forum
It is a bug in the older system(i.e. 6.1.) which has been fixed in ios 7 .
So cant help it.
One has to write his own algorithm to support ios 6.1.

Related

iOS 7 Simulator vs Real iPhone unexplained differences

I am working on a fix for iOS 7 and having a problem. When I run my app on real device (iPhone 4S iOS 7), the screen looks different than when I run the same app on iPhone 3.5 inches iOS 7 Simulator. I am trying to understand why and what is the reason for that, if anyone can help it would be great!
First screenshot from Simulator, second picture from Device:
SOLVED: The app on the real iPhone has a base SDK 6.0 and the app that is on the Simulator has base SDK 7.0. So I guess the real device knew how to compensate for the low SDK base, unlike the simulator which behaved totally in a SDK 7.0 environment and thats why it was showing differently. thanks!
For anyone else reading this, Roy's 'Solved' comment above is correct.
I have gone into Xcode after the update and it had automatically updated my Base SDK to the latest 'iOS 7.0'.
After changing this back to 'iOS 6.1' - both the Simulator and Device are now working the same, as expected on iOS 7.
Not trying to steal Roy's thunder (whose saved me a good numbers of hours - thank you), just summarizing to others how to quickly fix the issue.
Ralph
Contrary to the proposed solution, Apple Documentation recommends to set Base SDK to the latest iOS https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid/TP40012582-CH28-SW37, so there must be a better solution
I also faced same issue..
I solved by adding below code at viewDidLoad method..of view controller.
if ([self respondsToSelector:#selector(edgesForExtendedLayout)])
self.edgesForExtendedLayout = UIRectEdgeNone;
Hope it helps..Thanks.

Closest iOS 5 compatible equivalent of SLComposeViewController?

In am using SLComposeViewController for posting on Facebook with iOS 6. In an effort to have a consistent user experience and save development time, are there any existing code snippets or libraries with similar behavior and feel to SLComposeViewController that work in iOS 5?
Use DETweetComposeViewController which looks similar to SLComposerViewController and compatible for ios 6.
check this http://www.developers-life.com/facebook-compose-view.html
this may help you.

iOS 6 - Rate App links busted?

i've put the iOS 6 GM on my iPhone 4 (not 4S),
and the 'rate it' buttons in my own app and others no longer do their thing.
instead it opens the app store w/ "cannot connect to itunes store".
regular app-links from safari work fine.
i'm using links of this form:
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=<APP_ID>
for example, from safari on iOS 5.1, the link on this page works fine:
http://elenzil.com/scratch/appstore
but the same test w/ iOS 6 yields the problem i describe.
.. i have to say the App Store in general seems a bit buggy in the iOS 6 GM.
i'm seeing issues scrolling through the list of search results, mainly.
We also ran into this, but it appears that Apple put in a fix this morning. No updates of iOS required.
I'm using http and it works well in iOS6.
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=xxxxxxxxxx&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software
Just sharing what I use.

OTA Distribution for iOS — no effect with iOS 4

Hi.
I have a little problem with OTA Distribution of the iOS. In fact, it totally works with iOS 5 and more, but when I tried on an iOS 4 device, nothing happen. And when I say nothing, it's not a way to say "it doesn't work". No popup, no error message (or even warning message)... But I'm sure I read that OTA Distribution with plist/ipa files works fine in iOS 4.
I use this link :
Testing-98
Once again, it works on iOS 5 so... : (
Thanks for your help.
Do you know BetaBuilder for iOS? It works like a charm with iOS 4 and up. Made my life a lot easier!

fstat() broken in iOS 4

When rebuilding a perfectly working iPhone project on iOS 4 SDK, I found out that fstat() returns a bogus value in the stat.st_size field. Observed on iPhone 3 simulator with iOS 4. Looks like there's a discrepancy between the binary layout of the stat structure in the program and in the API. I've found a workaround (lseek() to the end), but this looks like a bug to me. How do I submit a bug report to Apple, please?
https://bugreport.apple.com/