How To Create A Static Library Or Framework For IOS?

A static library is a package of classes, functions, definitions and resources, which can be packed together and easily shared among projects. This facilitates reuse of code easier as you will have your own set of classes and utility functions.

Here are the steps to create your static library or framework

Step 1 : Create A New ‘Cocoa Touch Static Library’ Project

  • Choose template as Cocoa Touch Static Library.
  • Start with create new project >> iOS >> Framework & Library >> Cocoa Touch Static Library

choose_template_for_project

Note: The name you entered in product field will be the name of your framework.
Example:  ‘MyCompany’ will generate ‘MyCompany.framework’

Step 2: Create The Primary Framework Header (Recommended)

Usually, framework header is imported this way – <MyCompany/MyCompany.h>

  • Create an ‘.h’ file – ‘MyCompany.h
  • If X-Code creates it for you, just delete the ‘.m’ file and import the inner classes used in ‘.h’ file
  • If you import only ‘MyCompany.h’ (#import <MyCompany/MyCompany.h>) then the rest of the files need not be imported
#import <Foundation/Foundation.h>
  • Now, add your new sources
  • Make the header ‘Public’

Public headers are copied to the .framework and can be imported using the framework

  • Select the header in the project explorer, then expand the Utilities pane (Cmd+Option+0) to modify the scope of header.
  • In the ‘Target Membership’ group select the checkbox next to the ‘.h’ file.
  • Then, change the scope of the header from ‘Project’ to ‘Public’.

You might have to uncheck and check the box to get the dropdown list. This will ensure that the header is copied to the correct location in the copy headers phase.

Step 3: Update The Public Headers Location

  • To avoid copying private headers to the framework check that the public headers are copied to a separate directory, e.g. $(PROJECT_NAME)Headers.
  • Select the project in the file explorer >> select the targets >> ‘Build Settings’ tab.
  • Set ‘Public Headers Folder Path’ to ‘$(PROJECT_NAME)Headers’ for all configurations by searching the ‘Public Headers Folder Path’. This folder must be unique if you are working with multiple Frameworks.

headers_xcode

 

 

 

 

Step 4: Setup ‘Build Settings’

"Dead Code Stripping" => No (for all settings)
"Strip Debug Symbols During Copy" => No (for all settings)
"Strip Style" => Non-Global Symbols (for all settings)

Step 5: Make Sure That Framework Is Used As Dependent Target

  • Generate the basic skeleton of the framework in the static library target. Also include a simple post-build script.
  • Select your target in the file navigator and click the ‘Build Phases’ tab
  • Then, click ‘Add Build Phase’ >> ‘Add Run Script’ and paste the following script in the source portion of the run script build phase.
set–e
mkdir -p "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Versions/A/Headers"
# Link the "Current" version to "A"
/bin/ln -sfh A "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Versions/Current"
/bin/ln -sfh Versions/Current/Headers "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Headers"
/bin/ln -sfh "Versions/Current/${PRODUCT_NAME}" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/${PRODUCT_NAME}"
# The -a ensures that the headers maintain the source modification date so that we don't constantly
# cause propagating rebuilds of files that import these headers.
/bin/cp -a "${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}/" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Versions/A/Headers"
mycompany_xcode
  • Build your project

The build products directory is usually in-
(~/Library/Developer/Xcode/DerivedData/<ProjectName>-<gibberish>/Build/Products/…)

You will find the ‘libMyCompany.a’ static library, a headers folder, and a ‘MyComapny.framework’ folder which contains the basic skeleton of your framework.

build_product_directory

SEE ALSO: How to make Static Framework iOS device independent?

I hope you enjoyed this topic, if you have any questions or comments please share below!

Top 7 Expert Tips And Tricks For IOS 6

iOS 6 is the latest Apple OS that runs on every Apple devices. Its features like friendly user interfaces and the convenience of apps, makes it a smarter operating system.  Perhaps you are an iOS guru. Or maybe a newbie to the operating system, but here we present some tweaks in iOS that you probably never knew. We also hope you love them and enjoy the benefit of this post.

  • Your iPhone Can Read To You:

You can enable the speak option for facilitating the iOS device to read aloud a selected text. You can enable it from the Accessibility option.

Never miss an update from us. Join 10,000+ marketers and leaders.

  • Enable Emoji Keyboard:

Add iconographic symbols in e-mails, messages, tweets and other postings. This feature is shipped with every iOS 6 devise and doesn’t require buying a third-party iPhone application. To get this feature select General, International then Keyboards tab from the settings option.

  • Ask Siri To Find Location By Using The ‘In Transit’ Cue:

You can ask Siri to find you an address by adding some extra word like ‘transit’ in the end of the command. For example “give me the direction to Kennedy International Airport via transit”. iOS will open up the maps apps and display the route.

  • Edit Siri Commands:

Sometimes Siri doesn’t understand your words and might interpret into something else. But you can fix this issue after Siri responds that she doesn’t understand what you’re talking about. Tap the speech bubble where Siri keeps a record of what she interpreted, there find your command, edit it and resubmit the request.

  • Limit The Ad Tracking:

Most users find it annoying to get constant Advertising pop-ups. But iOS allows you limit these accesses as well. Under the General option tap About and then Advertising to Limit the Ad tracking.

  • Take Photos While Shooting Video:

iPhone 5 and iOS 6 allows the users to snap photos and shoot video simultaneously. It appears on the screen in addition to the shutter button.

  • Customize Auto Replies For Rejected Calls:

you can tailor specific messages, explaining the situation why you didn’t answer your calls. By default you will get 3 pre-reserved options. However you can customize these pre-preserved messages too.

I’ve worked with the team at Andolasoft on multiple websites. They are professional, responsive, & easy to work with. I’ve had great experiences & would recommend their services to anyone.

Ruthie Miller, Sr. Mktg. Specialist

Salesforce, Houston, Texas

LEARN MORE

At Andolasoft, our iPhone application developers keep their skills updated with the latest technology and iOS releases to match this competitive market. Here we develop engaging iPhone application to meet our customer’s business requirements.

New Features Updates Of IOS 6.1

Earlier this week, out of uncertainty, Apple released an iOS 6.1 update for iPhone, iPad and iPod touch. This update is the first major update to iOS 6, since its launch in the last year. There have been minor updates before this, such as iOS 6.0.1 and iOS 6.0.2, but they were flawed with issues. The features introduced in iOS 6.1 are not necessarily groundbreaking, but as a fix and improvements to its previous mistakes. Let’s take a look at these features.

Never miss an update from us. Join 10,000+ marketers and leaders.

  • ‘Siri’ Integration To Search Movies:

Siri has made it extremely simple to find movies, and then buy tickets from Fandango. It is also required to install the Fandango iPhone application to make this feature actually work.  Movies lovers would find this feature to be an extremely fitting update.

  • Apple Maps App:

Apple has definitely improved its Map App with this update. Some of the previous bugs are fixed but hasn’t been solved completely. Along with this it has also added a prominent ‘report a problem’ button.

  • Music Controls:

There is a newly fashioned Lock Screen Music controls in iOS 6.1. When the home button is pressed twice, the music controls pops up. It has been featured to access the music even if the screen is locked. The control interfaces and theme also go well with the Music app itself.

  • Fixed Wi-Fi Issues:

iOS 6.1 on iPhone 5 has resolved all issues from iOS 6.0.2 update. The network connection seems to be strong and stable.

Along with all these features it has also fixed the issue of unexpected OS boot where as the power management is still not satisfying with this update.

I’ve worked with the team at Andolasoft on multiple websites. They are professional, responsive, & easy to work with. I’ve had great experiences & would recommend their services to anyone.

Ruthie Miller, Sr. Mktg. Specialist

Salesforce, Houston, Texas

LEARN MORE

Andolasoft is a leading iPhone application development company offering a comprehensive range of iOS solutions to our global customers. With expertise in HTML 5, CSS, iOS, iPhone SDK, and Cocoa framework, we develop stunning applications to reach a wider audience. With the release of iOS 6.1 it has facilitated our developers to explore new possibilities for application development.

What Is The Key Points For Successful iOS Development?

After the introduction of iOS platform and the application development possibilities, it has paved new business opportunities for the IT industries as well as individual developers.

With the rapidly growing app industry it has become demanding to keep track of changing technology.

Here we have come up with some major key points which should be kept in mind by the developer at the time of iOS application development.

Never miss an update from us. Join 10,000+ marketers and leaders.

    1. Drive revenue for your business by integrating  ‘Geo-Targeted push Notification’, ‘Geo-Targeted Advertising’
    2. Integrate NFC (near field communication) system to your application.
    3. Use App analytics to monitor the app’s influence on the market. Target your audience and bring market specific features to you app.
    4. Avoid these flaws in your mobile app development
    5. Irrelevant push notification in the app
    6. Sending unnecessary “Rate my app” request to users
    7. Integrating Facebook and other social networking sites unnecessarily
    8. Avoid using full screen ads. Users hate this.
    9. Try to prefer building Native Apps for iPhones to web apps, because some web technologies are still not compatible with the iOS platform.
    10. Design intriguing UI to compel the user to use your app. Take inspiration from other successful Mobile application to generate similar experience for the users.
    11. iOS development supports numerous programming languages other than Objective-C, such as Ruby, JavaScript, Node.js etc. Choose the language you are comfortable with.
    12. Design your app so that it uses minimal battery power. Users are more concerned about the phone battery rather than the app itself.
    13. Develop cross-platform apps, so that it can be released for other mobile operating systems.
    14. Never build iPhone app that mimics the look and feel of other operating system.
    15. Never overdo the application animations and graphics.

I’ve worked with the team at Andolasoft on multiple websites. They are professional, responsive, & easy to work with. I’ve had great experiences & would recommend their services to anyone.

Ruthie Miller, Sr. Mktg. Specialist

Salesforce, Houston, Texas

LEARN MORE

iOS applications are the fastest evolving apps in the app industry.

That’s why at Andolasoft, our iPhone application developers keep their skills updated with the latest technology and latest iOS releases to match the competitive market.

Here we develop engaging iPhone application to meet our customer’s business requirements.

iPhone’s iWallet Patent Control The Spending Limit Of Kids

Apple has published latest patent, explaining Apple’s new iwallet concept. It allows the individuals to configure number of accounts, which can be set-up to control the spending limits. This patent is called “Parental Controls” that could help parents to limit their child’s ability to spend money via an iPhone.

Never miss an update from us. Join 10,000+ marketers and leaders.

The control can be configured for categories like, specific places where purchases can take place and the types of transactions which can be allowed. The patent also suggests that, parent will be notified about their child’s activity on the accounts, including the details of the online purchases. The app can also be set for the users, so that they cannot buy some unethical products. The E-Wallet app is enabled with a primary account that is connected to a credit card.

Users are able to use the app to manage transactions using their iPhone. The patent also hints that it will integrate mobile payment solution so that it can be used outside of its ecosystem in the future. It also reveals that the iPhone would integrate NFC (Near field communication) chip for convenience. This technology is still in its early stage of iPhone application development. So NFC enabled monetary transaction may not be secure completely.

I’ve worked with the team at Andolasoft on multiple websites. They are professional, responsive, & easy to work with. I’ve had great experiences & would recommend their services to anyone.

Ruthie Miller, Sr. Mktg. Specialist

Salesforce, Houston, Texas

LEARN MORE

iPhone applications are the fastest evolving apps in the app industry. That’s why at Andolasoft, our iPhone application developers keep their skills updated with the latest technology and iOS releases to match this competitive market. Here we develop engaging iPhone application to meet our customer’s business requirements.

Apple iPhone 5 And iPad-Mini: Rumors Or Truth

Lately there are rumors about the iPhone 5 is being under development to have a year end release. If the rumors are true then it will surely bring an excitement among iPhone application development industries.

With marginal improvement to iPhone 4, Apple launched the iPhone 4S in 2011 with voice recognition system Siri and a cloud storage service iCloud. Based on the iOS 5.1.1, iPhone 4S acts as hotspot by sharing its internet connection over Wi-Fi, Bluetooth or USB and also users can access the App Store.

A reports say that a Taiwan based manufacturer is assigned with the development of iPhone 5 and the manufacturing process is under way. As per the rumors, the new iPhone will have the back of both glass and aluminum. The most debated features that the iPhone 5 may have are: 7.9 mm thickness, Retinal display, near field communication technology, Passbook feature from iOS and a quad core process in hardware configuration.

Never miss an update from us. Join 10,000+ marketers and leaders.

Above all these there is also a possibility that iPhone 5 will come with a 19 pin dock connector instead of the current 30 pin connector, to include the headset jack aside. If this happens all the old dock connectors available with current versions will be useless.

Apart from iPhone 5, there are also rumors about an iPad Mini(a smaller version of iPad) will be launched in near future. As per anonymous resources its been claimed that the new iPad Mini will have a screen size of smaller than 8 inches compared to 9.7 inches of iPad. The third generation tablet iPad3 has major features like high resolution Retinal display, 5 MP iSight camera. And it will come with iLife and iWork apps.

If Apple is taking majors to develop iPad Mini or any similar product, hopefully most of these features or some better features will be incorporated into it. As per reports the iPad Mini will be launched during Christmas season of this year. But again there is no official announcement from Apple about these rumors. If iPad Mini is under development then it will surely give tough competition to Google’s recently released tablet Nexus 7.

I’ve worked with the team at Andolasoft on multiple websites. They are professional, responsive, & easy to work with. I’ve had great experiences & would recommend their services to anyone.

Ruthie Miller, Sr. Mktg. Specialist

Salesforce, Houston, Texas

LEARN MORE

Most of the mobile application development companies are waiting to see whether these rumors will be true in the near future and ready to develop apps with the help of latest technologies. Andolasoft adapts a differential approach to become a leading iPhone application development company to fulfill business requirements and serve individuals by developing rather multitasking but simpler iPhone apps.

Here at Andolasoft we follow cutting edge technologies to develop easy-to-use apps to increase business efficiency and productivity. We’ve experienced iPhone application developers who work closely with you in an agile and innovative environment. We have expertise to develop apps those are intuitive and easy-to-use.