Problems with library compiled from source code for SDK versions Greater than ios5 - objective-c

I am doing iphone project, in that am using ODataProtocol, but i can't able to find the Odatagen library for iOS 6, in OData Upto iOS 4.3 libraries.. how can i use that Odata in my app for iOS 6.

I'm not 100% positive what the O.P. is looking for, but I'm guessing it's Microsoft's Open Data Protocol. I found an "ODataForObjC" project on github.
This SDK hasn't been updated in almost a year, but I just built the "crimeData" sample app that comes from that project in Xcode 5 with no hassles except tons of "deprecated" warnings and the actual service it's trying to connect to is throwing a "403" error.

Related

App works fine in iOS 7 with no modifications?

We've been working on getting our app to work properly with all the changes in iOS 7. Particularly the colors and layouts of things. But these changes are still in development.
The version of our app in the app store has none of these modifications. When testing locally, it works on iOS 6 fine and looks horrible on iOS 7. Yet, upon downloading it from the app store and installing it on an iOS 7 iPad, it seems to work just fine -- just as it used to in iOS 6 (!). We are wondering if there is some "compatibility flag" that the app store folks can switch, which means "not ready for iOS 7 -- use compatibility mode"? I'm not sure how else to explain this. Wondering if anyone else knows?
Our app:
http://appstore.com/cedarssuite
Summary: running via the simulator on iOS 7 or on a development iPad that has iOS 7, the app looks horrible. But downloading the approved app store version and running on iOS 7, it works just fine. Why?
A note: This is no longer correct. Since February 2014, Apple only accepts SDK7 builds
That's normal. all the old apps work fine on new iOS versions since those app. Base SDK set to that old version. in your case (iOS 6.0). They will run using old sdks. But, when you built with the new sdk (Base SDK 7.0) they look horrible as you said and some times they crash. because of layout changes and controls behaviours in the new iOS.
You are only asked to build with the new sdk to take advantage of the new features.
keeping your app. built with the old versions doesn't seem to have disadvantages other than new features. since apple still accept publishing apps with old sdk back to 4.3.
If you set the base SDK < 7, it will use the old iOS 6 style. Of course, that basically requires you compile with an old version of Xcode, and you can't use iOS 7 features, even when running on iOS 7.

Xcode library reverted to 5.1 from 6

I have been developing an app using Xcode, which included the Facebook SDK. The Facebook SDK requires the AdSupport.framework and the Social.framework, both of which were previously installed, but seem to have disappeared. My question is how do it update the library to 6.0, instead of five? I understand that you have to go into the build phases and add the frameworks in the Line Binary With Libraries section, but when I go to add the framework, the folder is 5.1, not six. I have looked through the Apple doc's and haven't found anything.
Here is an image of what I'm getting:
It should look like this:
There should be no way the SDKs provided with Xcode can regress. However you could see them vanish if you launch an older version of Xcode.
Based on experience, if you had Xcode installed before it was a single app bundle and have subsequently installed the app bundle version then there's a reasonable probability the old version is still present and therefore good odds that a Spotlight launch will open the wrong one.

Cannot test the social framework on a device lower than IOS6

I am working with the social framework. On iPads with IOS6 it works fine.
But when I test it on a device with IOS 5 I get the following error.
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/3A3020E0-09D7-49DD-96E2-2E0F20C098D2/RacingGenk.app/RacingGenk
Reason: image not found
Can anybody help ?
Kind regards.
Stef
The social framework isn't available before iOS 6, which explains the problems you're having.
What you need to do is weak link the social framework, which will let you use it on iOS 6 but won't cause pre iOS 6 devices to try to load it. To weak link a library you should select your application's target in XCode, go to the Build Phases tab, and under Link Binary with Libraries make sure that the 'Social.framework' entry is set to Optional rather than Required.
The social framework was introduced in iOS 6, but if you want you have sharing ability for facebook, twitter and many other social networks / sites on devices running versions of iOS before 6.0 then feel free to explore sharekit:
http://getsharekit.com/
Its really easy to use and works for both iOS 6 apps and apps running on previous versions of iOS.
That is because the Facebook integration is only available on iOS6. You can however still use facebook using the original Facebook API for < IOS6 devices.

Library not loaded

I added Social.framework in my application in the same way i use to add the other frame works. I have downloaded xcode 4.5 and iOS 6 . but my application crashes with follwing error only on device. It works fine on simulator.
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/FC88291D-2052-45D6-A7BB-65CE340F07BF/Uploading Image.app/Uploading Image
Reason: image not found
I was getting this exact error. My app currently has a deployment target of 5.1. I wanted to add Facebook sharing. I found this old post, Conditionally including a library for different iOS SDK versions?. All I did was set "Social.framework" to 'optional' and it did the trick, then my app would run on ios 5.1 and ios 6.0. Of course you need to do checks at runtime for what OS the device is running otherwise you could run into a crash if you try to access social.framework in ios 5.1 or earlier. Hope that helps!
In Xcode go to targets, Go to build phase and search for Social frame work you will find that under "Link Binary with Libraries" section. There select social frame work and see there is an option on right hand side required/optional in that just change required to optional. Now you are able to run on all ios devices without any crashes.

Cannot deploy an AIR application to an iPod Touch

I'm using Flash Builder 4.5 with Flex SDK 4.5.1, and when trying to deploy an app to a 2nd gen iPod Touch with latest available iOS I get an error saying the app is not valid, and according to some Adobe sites, only 1st generation iPods aren't supported. The application works fine in an iPhone.
Should I change some setting, update to AIR SDK 3.1, or am I wrong thinking my app should work on this device despite Adobe's pages?
From what I managed to gather a week ago, Adobe dropped iPod Touch 2ng Gen support with AIR 2.6 (or even 2.5, I don't know for sure).
However, one may be able to compile a Flex Mobile project targetting an old AIR SDK version (or a more recent one if you can target Flash 10.1), and then use PFI (the old packager for iPhone before it was combined with ADT) so your application works with older iOS devices.
Sadly, my current project is forced to use ANE, so I guess I must forget about supporting old devices.