2021年5月3日星期一

How do I Link a Framework when the app is in the same git repository - iOS?

I build an iOS framework in my repo using CMAKE (let's call it Framework1). The built framework is in my repo and will not be checked in.

I create a new Application using XCode in a path outside my repo. Drag the built Framework1 to open XCode project, check copy if necessary and build. Everything works well.

I create a new Application within the same repo as Framework1, Drag the built Framework1 to open XCode project, check copy if necessary and build. - ld: framework not found Framework1

Steps tried: Adding the directory that the built framework is in, to the Framework Search Paths. Did not help. Additionally I noticed that it does not copy the framework like the app outside the repo did and Embed Frameoworks entry does indicate the correct folder.

Why does the App behave differently because I'm in the same repo ? How do I fix my error ?

https://stackoverflow.com/questions/67378674/how-do-i-link-a-framework-when-the-app-is-in-the-same-git-repository-ios May 04, 2021 at 12:07PM

没有评论:

发表评论