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 6750429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:48:21+00:00 2026-05-26T12:48:21+00:00

So recently I have been trying to set up a Vim-based iOS workflow. I

  • 0

So recently I have been trying to set up a Vim-based iOS workflow.

I found clang_complete, and have set the clang user options in my .vimrc like so

let g:clang_user_options='-fblocks -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300'

as described here: http://www.zenskg.net/wordpress/?p=199#comment-229

and added a few framework/header/lib paths. I’m not going to post the whole line because it is huge.

So I tested the compilation of one of the files in my project using clang from the command line (using the same options), and it compiles fine, but only if I use the -arch armv6/7 flag. If I don’t it tries to compile for i386 and complains of missing header files.

So far so good. Now I just use the exact same options I gave to clang, to clang_complete‘s user options in my .vimrc right?

Nope. When I do that and try to autocomplete a word in Vim, it says

 unknown argument: '-arch' 

in the QuickFix list of Vim. I kinda need this flag- how should I proceed?

Any ideas useful. I would love to get iOS code completion working under Vim.

  • 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-05-26T12:48:22+00:00Added an answer on May 26, 2026 at 12:48 pm

    clang_complete runs clang -cc1, which causes the compiler front-end to run and not the driver. The compiler front-end doesn’t understand the -arch option. clang -cc1 --help will show you the possible options. You should probably specify -triple or one of -target-*.

    If you’re not sure what to use, you can run clang manually as you did, but in verbose mode (-v). This way it will print the clang -cc1 command line, where you can find the appropriate arguments.

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

Sidebar

Related Questions

I'm a vim user and have recently been trying out emacs for fun. I
I have been trying to set-up my recently reimaged workstation for working with one
I've recently been trying to port a C++ application. I believe I have all
Recently I have been learning about WMI and WQL. I found out the list
So I recently have been trying to incorporate more sub forms to make the
Recently I have been trying to make changes so I can do builds through
I have been trying for a while to be able to access my recently
recently I have been trying my hand at coding a game in C#. I'm
I have been trying out Splint with a C program I recently wrote and
I have recently been programming Web based applications using Silverlight & Ria Services. I

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.