“image not found” Error while using Custom FrameWork

前端 未结 2 1124
面向向阳花
面向向阳花 2020-12-09 21:18

I created my own framework for one of my cocoa application. I added that framework to my project and called a method from that framework. When I tried to run my application

2条回答
  •  盖世英雄少女心
    2020-12-09 22:06

    I've encountered the same issue and this is how I have solved it,

    For my case, custom Framework is in Swift and My project is in Objective c

    Follow the following steps,

    1. Go the Project Navigator
    2. Select the Targets, go the General tab
    3. Find Embedded Binaries drag the custom framework. Find the flow in the below-mentioned image
    4. Check if the Framework is added to the Linked Frameworks and Libraries (ref the image)
    5. NOTE: In my case it was added to Linked Frameworks and Libraries, go a head and remove it
    6. Last step, find the flag Always embed swift embedded librariesin "Build settings" and turn it to "YES" (ref the image)

    I hope this helps.

提交回复
热议问题