Xcode 7 beta 2上的"没有这样的模块"

Rui*_*res 14 ios swift carthage xcode7 xcode7-beta2

我看到了这个问题,但我仍然无法导入框架并在Xcode 7 beta 2(7A121l)中使用它.

所以目前我正在尝试使用结果,通过carthage.将其添加到带有二进制嵌入框架的构建阶段/链接二进制文件后,我能够成功编译,但是我收到错误说明(是的,它表示成功,然后是错误:S):

No such module 'Result'
Run Code Online (Sandbox Code Playgroud)

关于进口:

import Result

func serverRequest() -> Result<String, NSError> {
    ...
}
Run Code Online (Sandbox Code Playgroud)

构建能够运行和编译,但我无法cmd +单击Result,例如.


编辑1: 在Xcode 6.3.2上它按预期工作.

编辑2: 打开雷达:21588771

Rui*_*res 6

尼尔的回答是正确的,但是如何设定这个问题会有一个非常微妙的区别FRAMEWORK_SEARCH_PATHS.所以在添加它之后Build Phases/ Link Binary with Binaries,我的初始设置是这样的:

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)/**
Run Code Online (Sandbox Code Playgroud)

以上是错误的设置,将无法正常工作.下面的工作:

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/
Run Code Online (Sandbox Code Playgroud)