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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:56:20+00:00 2026-05-26T08:56:20+00:00

I just updated a project to make use of ARC with the Xcode 4.2

  • 0

I just updated a project to make use of ARC with the Xcode 4.2 built-in conversion tool. Unfortunately there is a weird bug appearing that I don’t understand and didn’t find anything about. I have a document class with a property declaration:

@property (weak) IBOutlet WebView *webView;

In the implementation file I have a @synthesize statement:

@synthesize webView=_webView;

When I try to compile it, it fails and tells me:

error: @synthesize of ‘weak’ property is only allowed in ARC or GC
mode

Of course the project is tagged to compile with ARC. I would highly appreciate any help to understand what I’m doing wrong and why.

Edit: Was late yesterday. So here is a more complete compile-log:

[…] -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wmissing-prototypes -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wshorten-64-to-32 -DDEBUG=1 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -mmacosx-version-min=10.7 -gdwarf-2 -Wno-sign-conversion “-DIBOutlet=attribute((iboutlet))” “-DIBOutletCollection(ClassName)=attribute((iboutletcollection(ClassName)))” “-DIBAction=void)attribute((ibaction)” -iquote […]/Build/Intermediates/[…].build/Debug/[…].build/[…]-generated-files.hmap -I[…]/Build/Intermediates/[…].build/Debug/[…].build/[…]-own-target-headers.hmap -I[…]/Build/Intermediates/[…].build/Debug/[…].build/[…]-all-target-headers.hmap -iquote […]/Build/Intermediates/[…].build/Debug/[…].build/[…]-project-headers.hmap -I[…]/Build/Products/Debug/include -I[…]/Build/Intermediates/[…].build/Debug/[…].build/DerivedSources/x86_64 -I[…]/Build/Intermediates/[…].build/Debug/[…].build/DerivedSources -F[…]/Build/Products/Debug -fno-objc-arc […]

It seems the compiler-settings for ARC are turned on in the beginning and turned off again later in the arguments list. To be honest: I don’t know where to remove such weird settings and how it came to this. The only solution I would come up with now, would be to start the complete project over from a blank and new one and import all the class files from scratch.

If someone knows an easier way, I would appreciate very much.

PS: I do have all build-settings concerning the ARC set to YES.

  • 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-26T08:56:20+00:00Added an answer on May 26, 2026 at 8:56 am

    I took some more time today and did a new conversion from a previous commit of the project. This time everything went well. I presume this error emerged out of me trying to do the conversion in 2 separate steps. The project is split into 2 components. I wanted to convert them separately. Thats why I didn’t select all the files during the first conversion run. To my amazement the first conversion ran very painlessly and in shorter time than I expected. So I decided to convert the second component of the project too. What I ended up with, was the project state described as the problem above: conflictive build-settings.

    A good advice might be not to try to convert a project in steps, but take a couple of more time and do it at once. I must assume: the conversion-function of Xcode might not be meant for such a procedure.

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

Sidebar

Related Questions

I was just reading an update from a friend's project, mentioning the use of
I have an MVC3 with nHibernate project, and I would like to make use
I recently updated a project in my solution to use MVC 3 instead of
I have a project from Xcode 3 that I put through the conversion process
Our assignment for our java project is to make a tool for kids to
Just updated build server with rc0 and surprise no chiron. Wondering how you package
I just updated PHP 5.2.0 to 5.2.11 and now I am getting loads of
Having just updated Mono to 2.6.3 (on OS X), I noticed in the installer
I just updated an app from .NET 2.0 to .NET 4.0 and I have
We've just updated ASP.NET from Preview 3 to Preview 5 and we've run into

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.