Failed to render instance of IB Designables

前端 未结 15 682
情深已故
情深已故 2020-12-07 12:09

I have an Objective-C and Swift mixed dynamic framework. And the mixed framework was linked with two pure Objective-C dynamic frameworks.

When I tried to mark any cl

15条回答
  •  借酒劲吻你
    2020-12-07 12:44

    Interesting.

    First, WeZZard's answer got me going in the right direction but wasn't exactly my solution.

    In my iOS project, something had overridden the Runpath Search Paths field in my target. It looked like this:

    LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
    

    I tried his solution of adding the $(CONFIGURATION_BUILD_DIR) but it didn't work for me. Since it wasn't working, out of habit I just deleted the configuration entry (going back to project defaults). When I did, it reset to this:

    LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
    

    which if I dig into my xcconfig files, appears to come from the Cocoapods.

    It seems same as Alex that the @loader_path is key, but it's a slightly different path on iOS than it is Mac OS X.

提交回复
热议问题