Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Flag to set CLANG_ENABLE_OBJC_WEAK to enable weak references in Xcode Project

Flag to set CLANG_ENABLE_OBJC_WEAK to enable weak references in Xcode Project

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 583 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SyntaXS Offline
    SyntaXS Offline
    SyntaX
    wrote on last edited by
    #1

    Hey there :D

    I was wondering if there is a specific flag configurable in my .pro file to enable weak references because every time I open the generated Xcode project, I get the following warning:
    29837b77-6311-47e8-bf62-4941c8161237-image.png

    I already tried the following flags with no success:

    QMAKE_LFLAGS += -ObjC
    
    QMAKE_OBJECTIVE_CFLAGS += \
            -fobjc-arc \             # Synthesize retain and release calls for Objective-C pointers
            # TODO: find out where to put flag for weak references
            #-fobjc-runtime-has-weak \ # The target Objective-C runtime supports ARC weak operations --> unknown command
            #-fobjc-weak \           # CLANG_ENABLE_OBJC_WEAK --> seems to have no effect --> argument unused
    
    

    My problem is, that I don't know the exact commands and where to put them, or if this is even supported?

    thanks in advance
    best regards
    SyntaX

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved