“no such module” on Xcode 7 beta 2

半世苍凉 提交于 2019-11-29 01:33:28

Neil's answer is right, but there a very subtle difference how you set the FRAMEWORK_SEARCH_PATHS. So after adding it only to Build Phases/ Link Binary with Binaries, my initial setup was like this:

drwxr-xr-x   8 ruiperes  staff    272 29 Jun 08:35 Playground
drwxr-xr-x   5 ruiperes  staff    170 29 Jun 22:08 Playground.xcodeproj
drwxr-xr-x   4 ruiperes  staff    136 29 Jun 00:12 PlaygroundTests
drwxr-xr-x   4 ruiperes  staff    136 29 Jun 00:12 PlaygroundUITests
drwxr-xr-x   8 ruiperes  staff    272 29 Jun 08:42 Result.framework


FRAMEWORK_SEARCH_PATHS = $(SRCROOT)/**

The above is the wrong setup and won't work. The working one below:

drwxr-xr-x   4 ruiperes  staff    136 29 Jun 22:07 Frameworks
drwxr-xr-x   8 ruiperes  staff    272 29 Jun 08:35 Playground
drwxr-xr-x   5 ruiperes  staff    170 29 Jun 22:08 Playground.xcodeproj
drwxr-xr-x   4 ruiperes  staff    136 29 Jun 00:12 PlaygroundTests
drwxr-xr-x   4 ruiperes  staff    136 29 Jun 00:12 PlaygroundUITests


FRAMEWORK_SEARCH_PATHS = $(SRCROOT)/Frameworks/

You need to make sure that FRAMEWORK_SEARCH_PATHS in the xcodeproj includes the path where Result.framework is.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!