2 down vote favorite share [fb] share [tw] | I'm running up against problems trying to incorporate some iOS5-specific libraries into an app targeted at both iOS5 and iOS4.3. I've gone through the following steps:
This works beautifully on both the 5.0 and 4.3 simulators. However, I've got problems getting it to run on, or archive for, actual devices. When I've got either a 3GS running 5.0, or a 4 running 5.0 attached, both show up twice in the Scheme dropdown. Selecting the top one, and attempting build or run the project fails with an error. Using the second device entry, the build fails with a error. I'm sure there's something I'm missing here, but I'm stumped. Can anyone advise? iphone objective-c ios xcode ios5
| ||
|
3 Answers
active oldest votes
up vote 0 down vote accepted | If you are using a week linking then you have to check first availability of API using NSClassFromString, respondsToSelector, instancesRespondToSelector etc. So, change your if condition. First try to get your class object using above specified runtime function. here is a link explaining in detail how to do such. link
| ||
|
up vote 0 down vote | Further digging into the error thrown back by the compiler suggested that it was ignoring the weak link flag. Although I've no idea how or why, it was fixed by a reinstallation of XCode.
| ||
feedback |
up vote 0 down vote | The code for presenting twitter controller Before this you have to add the frameworks as optional and make the import in h file if iOS is min iOS 5
|