'Framework not found' in Xcode

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

    1:- Delete the framework from the Xcode project. Quit the Xcode.

    2:- Open your project in XCode and go to file under Menu and select Add files to "YourProjectName".

    3:- Select "YourFramwork.framework" in the directory where you keep it.

    4:- Click on the Copy items if needed checkbox.

    5:- Click Add.

    Make sure that you have the framework added in both Embedded Binaries and Linked Frameworks and Libraries under Target settings - General. As shown in the following images:-

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

    My framework has long name like FrameworkSDK_Light-1.0.6.framework so I renamed it to FrameworkSDK_Light.framework and it solved my problem.

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