Saturday, 27 July 2013

"Software on this iphone/ipod touch has expired" - iOS 7 Error - Not working - Developer

*This will appear when you're using the older beta and haven't upgraded and also when you haven't register your device on your apple developer account. Your device will act crazily.

*So, to resolve this first register device on your developer account. Then start your device and will ask you to confirm your device and will ask you to login from your Apple ID. So once you do it, it's ready again.

Apple's official steps to perform/install is as under :

 iOS beta Software Installation Guide

Overview

Pre-release versions of iOS software are available to develop apps that take advantage 
of the latest features of iOS and to test existing apps for compatibility. Pre-release 
software is intended only for installation on development devices registered with Apple's 
iOS Developer Program. Be sure to back up your devices prior to installing iOS beta 
software. 
Attempting to install this version of iOS in an unauthorized manner could put your 
device in an unusable state, which could necessitate an out of warranty repair.
Devices updated to iOS beta may not be restored to earlier versions of iOS. Registered 
development devices will be able to upgrade to future beta releases and the final iOS 
software.

System Requirements

iOS 7 beta supports iPhone 4, iPhone 4S, iPhone 5, iPod touch (5th gen), iPad 2, 
iPad with Retina display, and iPad mini. iOS 7 beta software should be installed using 
the latest released version of iTunes (http://www.apple.com/itunes).
Registering your Device
Before installing iOS beta software your device needs to be registered in the 
Certificates, Identifiers & Profiles area of Member Center. 

To register your device:
1. Locate the Unique Device Identifier (UDID) for your device using iTunes or Xcode

Using iTunes

a. Connect your device to your Mac and launch iTunes 
b. In iTunes, select your device in the source list on the left 
c. On the Summary tab, click on the Serial Number label to reveal the Identifier 
field and the 40 character UDID string
d. Control-Click on the Identifier (UDID) label and then choose Copy Identifier 
 (UDID)


Using Xcode

a. Connect your device to your Mac and launch Xcode 
b. Open the Organizer from the Window menu and select your device
c. Highlight the 40 character UDID string in the Identifier field 
and copy it

2. Login to the Certificates, Identifiers & Profiles area of Member Center and click the 
‘Devices’ link under iOS Apps
3. Click the ‘+’ symbol to begin the registration process
4. Give your device a name and paste the UDID obtained from iTunes/Xcode
5. Click continue and confirm your entry to complete the registration process

Installing iOS beta Software on your Device

1. Download the iOS beta software restore image for your device from the iOS Dev 
Center
2. Launch iTunes on your Mac
3. Hold the Option key and click the Restore iPhone/iPad/iPod button
4.Select the iOS beta software restore image from step 1 and click Open to begin 
installation
5.After installing the beta, your device will reboot and will require a network connection 
to complete activation
Reporting Feedback
To report any bugs, use the Apple Bug Reporter on the Apple Developer website 
(https://developer.apple.com/bug-reporting/). Additionally, you may find information in 
the iOS 7 beta area of the Apple Developer Forums (http://devforums.apple.com/
community/ios/).

- This contents are taken from apple's website for helping developers and readers of this blog.



Tuesday, 23 July 2013

How to play sounds in iOS - Xcode ?

There are basically two methods to play sounds, accomplished using two different frameworks :

1. AuidoToolbox framework
2. AVFoundation framework

The difference between AudioToolbox and AVFoundation framework is that AudioToolbox is used for short lengthen sounds whereas the AVFoundation is used for longer sounds.

In AVFoundation, when one sound is being played and the next is turned on then the previous one would be stopped.

Examples for both these will be published in upcoming posts :)

Thursday, 4 July 2013

Problems in Xcode 4.6 - Security/Security.h file not found - Lexical Error - UIKit framework

After working hard to resolve this error appearing while creating a build for the project, I resolved it. This is because of the problems with the Xcode version 4.6

Update your xcode to latest version 4.6.3 and this issue will be easily resolved and there won't be any of such errors :)