'Framework not found' in Xcode

前端 未结 20 2144
不知归路
不知归路 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:07

    If you use CocoaPods try to run:

    pod deintegrate
    pod update
    
    0 讨论(0)
  • 2020-12-08 04:08

    me too was getting this error , I moved the framework file to the root project folder and added to framework again and problem is solved.

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

    When this error occurred to me was because Pods folder was in iCloud and had no local copy on my computer. Go to your project's folder in Finder and check if there is iCloud's symbol in any of the folders inside it!

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

    Try deleting Bolts.framework from linked framework and re-add it. Also, in your Framework Search Path keep path until Bolts.framework like $(PROJECT_DIR)/Bolts if it is inside Bolts folder at your project directory path.

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

    I used to encounter this same exact issue in the past with Google Admob SDK. Most recently, this happened when trying to add Validic libraries. I tried the same old good trick this time around as well and it worked in a jiffy.

    1) Remove the frameworks, if already added.

    2) Locate the framework in Finder and Drag & Drop them directly into the Project Navigator pane under your project tree.

    3) Build the project and Whooo!

    Not sure what makes the difference, but adding the frameworks by the official way of going to the section "Linked Framework & Libraries" under project settings page (TARGET) and linking from there does not work for me. Hope this helps.

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

    I found that the file.framework was referencing a file outside my project. So I dragged the file into my frameworks folder under my project and then got rid of the earlier file.framework file and it worked.

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