e987
e987

Reputation: 407

Xcode iOS framework icon meanings

When using Xcode 7.3 to add an iOS Framework to an iOS project (General -> Linked Frameworks and Libraries), Xcode uses two different icons to represent iOS frameworks. One looks like a white cube and the other looks like a toolbox. What do each of these icons mean?

xcode

Upvotes: 12

Views: 7174

Answers (2)

Rajendran Eshwaran
Rajendran Eshwaran

Reputation: 49

Frameworks are bundles that contain a linkable library (usually a dylib) and the associated resources and headers for development.

There are “public” and “private” frameworks. The former are usually well documented and prepared for use by general developers, while the latter are (supposed to be) restricted for internal use only.

The original libraries are no longer useful for non-on-device-developers, so they are eliminated from the system. The framework folders still contain other resources, such as localization strings.

Frameworks have an extension of .framework. Headers, if any, are stored in a subdirectory called Headers. This should be yellow tool box. . This is support for iOS devices and simulators.

The white cube box represents resource bundle for targets.

The magic for getting the resources to play nicely is to put all the resources in to a bundle which we'll include from the other projects .

So we need to add a targets to the library project of the type Bundle

When the resources bundle targets is added it will default to being set up with a Mac OS X build target. But if you want to IOS one so you just need to change the relevant settings.

Refer the link for bundle create http://jaym2503.blogspot.in/2014/03/how-to-create-resource-bundle-in-ios.html

Upvotes: 0

JAL
JAL

Reputation: 42449

The toolbox icon represents a framework that uses Foundation. The white cube (lego piece) represents any bundle that links against the Cocoa/Cocoa Touch frameworks.

Upvotes: 7

Related Questions