Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7806713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:37:19+00:00 2026-06-02T02:37:19+00:00

I am completely new to the iOS/iPhone/XCode world, so if you guess is between

  • 0

I am completely new to the iOS/iPhone/XCode world, so if you guess is between something rather complex and something so simple that everyone should know, I’d go with the simple answer. 🙂

Okay, so I have inherited an iPhone project that we had outsourced to another company. My only objective right now is to be able to build the dang thing. I set up XCode 4.2 and installed the proper SDKs. I loaded up the project and everything seems good to this point. However, when I build, I get errors from what I believe to be the linking stage of the build. I’m not entirely sure because the statuses change quickly when building. The error I get is the following:

Error from XCode build

From what I have been able to find online, it seems that one of the libraries I am using was not compiled for the i386 platform. To start, this doesn’t make sense to me because the libraries that I am using (where these errors are coming from) are currently included as sub-projects and produce .a files which I thought were arch-independent (am I wrong here??). Also, I can’t find anywhere in the project where I’ve instructed XCode to build to an i386 architecture. This is what I’ve done so far:

  • Made sure that the file in which these errors arose was included into the “Compile Sources” section of the Build Phase tab (the .m file)
  • Set my architectures to armv6 and armv7 and set the Build Active Architecture Only to no. (See images below)

Main Project Config
main project build configuration

Sub-Project Config
sub project config

Event when I build using the release configuration, I still get this error and I’m not sure why. Everything that I am looking at in my build config seems to indicate that I should be building everything in an arm architecture.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:37:21+00:00Added an answer on June 2, 2026 at 2:37 am

    You are getting errors because you messed with the architecture settings. You should not fix those towards ARM code but allow i386 as well.

    Right now, one of more of your (sub)-projects build ARM code only, resulting into a linker error once you try to build a simulator version. That is happening because your Architecture settings are not as they should be.

    Note your setting for Any iOS SDK, that one is incorrect as it builds only ARM code. Remove those settings entirely by using the backspace key on your keyboard after selecting that specific setting (single-click).

    And this is how it should be:
    enter image description here

    $(ARCHS_STANDARD_32_BIT) resolves to ARMV7 when building device specific code and i386 when building simulator specific code. Including ARMV6 code as per my screenshot is only needed if you plan to serve the results to older iOS devices (iPhone 3G and below).

    Once those settings are active in all (sub)-projects, everything should work smoothly.

    For creating a universal library out of a project, useful if you plan to distribute a static library to other developers, use LIPO.

    Example:

    lipo input_library_1.a input_library_2.a -create -ouput output_library.a
    

    Lets say input_library_1 was i386 specific (simulator) and input_library_2 was ARM specific (device), this will join them into a universal version usable for both simulator and device.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am completely new to iOS development so I may be doing this wrong
I am completely new to iOS development and I want to load another view
is there some new framework additions for doing something like this in iOS 4
I need to develop an iOS app that implements this simple (I hope) functionality:
I am completely new to iOS development (I'm a .NET dev). I am experimenting
I was studying Storyboard on the new iOS 5.0. It seems really simple to
I am completely new to ios development and I am only interested in developing
First off, I am completely new to iOS development, so I hope there is
I'm not sure that I completely understand how Core Data works on iOS. I
Completely new to asp.net mvc... completely new to web apps so bear with me...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.