Skip to main content

Posts

Showing posts with the label iOS

Submitting Your App to AppStore

Submitting your app to the App Store is a multistep process involving several tools. First, create a distribution provisioning profile using iOS Provisioning Portal. Then create an archive, validate it, and submit it to the App Store using Xcode. When your app is approved, set the date the app will be available to customers using iTunes Connect. Finally, don’t forget to respond to user issues after you ship your first version. Before You Begin Before starting, you should have a distribution certificate and the status of your iTunes Connect app record should be “Waiting for Upload” or later, as described in  “Creating Your App Record in iTunes Connect.” Now, create a distribution provisioning profile using the iOS Provisioning Portal. Create a Distribution Provisioning Profile When the app is ready for publication, you create a distribution provisioning profile by selecting App Store as the method of distribution. The steps are similar to creating an ad hoc provisioning pr...

Creating Your App Record in iTunes Connect

When an app is sold in the App Store, the store displays a lot of information about the app, including its name, a description, an icon, screenshots, and contact information for your company. To provide that information, you log in to iTunes Connect, create a record for the app, and complete some forms. In this chapter you learn how to go through this process. Note:  Normally, you create your iTunes Connect app record late in the development process because there’s a time limit from when you create the record to when you must submit your app. However, some Apple technologies, including Game Center and In-App Purchase, require that an iTunes Connect record to be created earlier. For example, with In-App Purchase, you need to create the app record so that you can add the details of the items you want to sell. This content needs to be created before the development process is complete so that you can use it to test the code you added to implement In-App Purchase. Before You Beg...

Creating Distribution certificate

Before an app can be distributed, your team must have a valid distribution certificate linked to a distribution provisioning profile. Only team admins can create or install a distribution certificate. Each team can have only one active distribution certificate. The team admin can either use Xcode to create a distribution certificate or manually request and download one from iOS Provisioning Portal. A team’s distribution certificate allows a developer to build an app for distribution. If your team wants to use another Mac to create a distribution build, you need to transfer a copy of the distribution certificate as described in,  “Safeguarding and Transferring Your Signing and Provisioning Assets”  in  Tools Workflow Guide for iOS . Using Xcode to Create a Distribution Certificate You should use Xcode to create your distribution certificate. Xcode creates, downloads, and installs a development certificate, distribution certificate, and the iOS Team Provisioning Pro...

Phonegap plugin for Ads on iPhone

I suppose you know how to create a Phonegap project and also how to add a plugin into the project. First download the required code from here . Add the "Ads" folder to your plugins list. To do this, right-click on the Plugins folder in Xcode and select to “Add Files to…” the folder. Navigate to the Ads folder, and select the folder. Check “Copy items into. . .” and “Create groups for. . .” A ChildBrowser folder is added to the Plugins folder. Copy the content of "js" folder to desired location. Then update the plist to use the plugin In Supporting Files > PhoneGap.plist, add under Plugins (click the down arrow to the left of Plugins, then click on the + symbol to open a new row): Key: SAiOSAdPlugin Type: String (default) Value: SAiOSAdPlugin See the "index.html" for initialization of the code. Now, to display the Ad, call "showTheAd(true)" and whenever you want to hide the Ad call "showTheAd(false)" ...

Building xCode project and generating IPA file using Ant

Following is the procedure to generate IPA file. Under “project settings” change “derived data location” to “project-relative”, and make it "DerivedData/dist/". If you want any other location, change the same in the code. This will be the location where ".app" file and all other project info is stored. Set the values to the fields in CAPITAL LETTERS, and save the file as build.xml ----------------------------------------------- <project default="buildAndPackage" basedir="." name="APP-FOLDER"> <property name="local.projectPath" location="WHERE THE PROJECT IS LOCATED" /> <property name="local.ipaPath" location="WHERE TO SAVE THE IPA FILE" /> <property name="app.id" value="APP-ID" /> <property name="scheme" value="APP-SCHEME(MOSTLY APP-ID)" /> <property name="version" value="VERSION-NO" />...

Integrating AdMob Ads in a PhoneGap Project (iOS)

Open the phonegap project to which AdMob is to be added. Import  GoogleAdMobAdsSDK which can be found here . Add  MessageUI.framework  to the project. To do this " click on project name , go to summary tab, scroll down to the framework section and click +. Then select MessageUI.framework ". In AppDelegate.h import "GADBannerView.h" and add "GADBannerView *bannerView_;" , so that it looks like@interface AppDelegate : PhoneGapDelegate { NSString* invokeString; GADBannerView *bannerView_; }  In AppDelegate.m –  #define MY_BANNER_UNIT_ID @”Your AdMob Publisher ID” Add the following code at the beginning of webViewDidFinishLoad:    bannerView_ = [[GADBannerView alloc]init]; [bannerView_ setDelegate:self]; [bannerView_ setFrame:CGRectMake(0, 45, 320, 95)];//Position of Ad banner bannerView_.adUnitID = MY_BANNER_UNIT_ID; bannerView_.rootViewController = self.viewController; [self.viewController.view addSubview:bannerView_]; [bannerView_...

ChildBrowser iOS xCode

Today I tried to simplify the ChildBrowser execution in xCode, which I follwed earlier. To my surprise, I don't need to do anything rather than simply ignoring some steps. Here is the procedure: Download the ChildBrowser plugins here . Start xCode and create a phonegap-based application. In Supporting Files > PhoneGap.plist, add under Plugins (click the down arrow to the left of Plugins, then click on the + symbol to open a new row): Key: ChildBrowserCommand Type: String (default) Value: ChildBrowserCommand  You need to associate your external URLs on this page, too. In Supporting Files > PhoneGap.plist, add them under ExternalHosts, like: Key: Item 0 Type: String (default) Value:  * or whatever URL you are using in the code(* is enough) Right-click on the Plugins folder in Xcode and select to “Add Files to…” the folder. Navigate to the phonegap-plugins > iPhone > Childbrowser folder, and select the ChildBrowser folder. Check “Copy items i...