'Framework not found' in Xcode

前端 未结 20 2147
不知归路
不知归路 2020-12-08 03:54

I know this has been asked a couple of times. I followed instructions from these ones:

Adding frameworks to project in Xcode 5 and having *relative* paths added

相关标签:
20条回答
  • 2020-12-08 04:28

    None of the above worked for me until I found that I had a blank "Any Architecture | Any SDK" line underneath Framework Search Paths / Debug under Build Settings.

    Deleted the line and it works!

    0 讨论(0)
  • 2020-12-08 04:28

    Please after adding both framework also open each Bolts and Parse framework and add Parse and Bolts to the project then problem will be solve

    0 讨论(0)
  • 2020-12-08 04:29

    I just had the same situation (was having a hard time to address the OP's build error after adding a 3rd party framework) and it seems like a bug in Xcode (mine is 8.3.2 (8E2002)).

    The problem was that a folder name in path to the framework contained spaces. In this case, Xcode incorrectly escaped them with backslashes like this in Build Settings -> Framework Search Paths:

    $(PROJECT_DIR)/Folder\ with\ spaces/Lib
    

    To fix this, just manually edit the entry to remove those backslashes and enclose the whole string in quotes like this:

    "$(PROJECT_DIR)/Folder with spaces/Lib"
    
    0 讨论(0)
  • 2020-12-08 04:29
    1. Delete the framework link from the Xcode project setting.
    2. Move the framework to the Project Folder.
    3. Re-add the framework in the Xcode project setting.
    4. clean the project and re-compile it.
    0 讨论(0)
  • 2020-12-08 04:31

    Here is the solution :

    Turn the "$(PROJECT_DIR)" attribute(might be non-recursive by default) into recursive option in Select Project Click on Targets Click - Build Settings Search for 'Framework Search Path' - Double click the input.

    Scratched from https://stackoverflow.com/a/31298214/4493512

    0 讨论(0)
  • 2020-12-08 04:31

    I realised that I hadn't run/built my framework with the Generic Device, which strangely lead to these issues. I just put the framework back in and it worked.

    0 讨论(0)
提交回复
热议问题