Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check supported architectures of framework in Objective-C

Tags:

As requested by Apple in the next February (February 2014), every app submitted to AppStore needs to support Arm64 architecture. In my project, I used many static libraries (*.a) and I can check if these libs support arm64 arch. However, I don't know if some frameworks such as Facebook.framework supports this new arch. How can I check it?

like image 251
lenhhoxung Avatar asked Dec 26 '13 04:12

lenhhoxung


People also ask

How to check framework in Xcode?

You can right-click it and select Show Package Contents . Then under Frameworks you see all the frameworks linked to your app.

What is a framework Objective C?

A framework is a modular and reusable set of code that is used as the building blocks of higher-level pieces of software. It is a bundle (Directory structure) that contains shared libraries as well as sub directories of headers and other resources. However Frameworks can include the following, Shared Library.

Where to Find validate workspace in Xcode?

In Xcode, navigate to TARGETS > Project Name > Build Settings > Build Options menu, and set Validate Workspace as Yes.

What is iOS framework?

A framework is a bundle (a structured directory) that contains a dynamic shared library along with associated resources, such as nib files, image files, and header files. When you develop an application, your project links to one or more frameworks.

What is the foundation framework in Objective C?

If you refer Apple documentation, you can see the details of Foundation framework as given below. The Foundation framework defines a base layer of Objective-C classes. In addition to providing a set of useful primitive object classes, it introduces several paradigms that define functionality not covered by the Objective-C language.

What is the basic architecture and component stack of NET Framework?

Basic Architecture and Component Stack of .NET Framework. The first three components from bottom are considered as the basic architecture of .Net framework which came in the year 2005 and after this more components were added by Microsoft in the .Net Framework as following : 1. CLR (Common Language Runtime) : It is a run-time environment which ...

What is the purpose of the foundation framework?

The Foundation framework is designed with these goals in mind − Provide a small set of basic utility classes. Make software development easier by introducing consistent conventions for things such as de-allocation. Support Unicode strings, object persistence, and object distribution. Provide a level of OS independence to enhance portability.

What is the NS class prefix in Foundation framework?

The framework was developed by NeXTStep, which was acquired by Apple and these foundation classes became part of Mac OS X and iOS. As it was developed by NeXTStep, it has class prefix of "NS". We have used Foundation Framework in all our sample programs.


1 Answers

Each framework is really just a directory - not even like a package directory, but a plain directory you can browse directly into with Finder. Go into the .framework folder, at the top level you'll find a file with the same name as the framework (for older frameworks that file may be located under a folder called Versions/A within the .framework folder).

That file is really a static library (.a) file, just without the extension. Check it as you would any static library (using file or lipo -info) and you'll see what binaries the file contains.

You'll also know through XCode though. If you switch your project to support arm64 and the libraries you are linking to do not have arm64 support, XCode will not finish linking when compiling for a device.

like image 156
Kendall Helmstetter Gelner Avatar answered Oct 06 '22 08:10

Kendall Helmstetter Gelner