0

最近我在 iOS 和 OS X 上做一些 AllJoyn 开发。当我使用如下命令行为 alljoyn_darwin.xcodeproj 运行 xcodebuild 时:

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project alljoyn_darwin.xcodeproj -scheme alljoyn_core_ios -sdk iphoneos -configuration Debug PLATFORM_NAME=iphoneos

我收到这样的错误:

export variant=normal
/opt/local/bin/scons -u OS=darwin CPU=arm BR=on BINDINGS=cpp SERVICES= WS=off VARIANT=Debug --

scons: *** No SConstruct file found.
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py", line 920, in _main
Command /opt/local/bin/scons failed with exit code 2

** BUILD FAILED **


The following build commands failed:
    ExternalBuildToolExecution alljoyn_core_ios
(1 failure)

我真的不知道为什么会这样,我按照官方网站中的所有说明进行操作——从源代码构建,我确信我设置了正确的 OPENSSL_ROOT 路径。我使用 Macport 安装了 scons 并且安装正确。我尝试从 finder 中双击 alljoyn_darwin.xcodeproj,但我得到了同样的错误。

scons: *** No SConstruct file found.
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py", line 920, in _main
Command /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/scons-2.3.4 failed with exit code 2

所以我被困在这里。但问题是我可以在 iPhone6 的 iphonesimulator 中成功运行 sdk_14.12 for iOS 中的 AllChatz 示例。openssl 版本是 1.0.2,我尝试为 alljoyn sdks 14.06 和 14.12 构建。发生了同样的错误。我不知道这是否相关。任何人都可以在这里提供帮助吗?非常感谢。

4

1 回答 1

0

问题是 scons 找不到根级 SConstruct 脚本,这可能没有多大帮助,因为您可以在错误中看到:)

当您使用“-u”时,它会告诉 scons 查找级 SConstruct 脚本的目录结构。

SCons 必须从项目目录结构中执行。查找根级 SConstruct,并确保您从项目目录结构中执行 scons。

于 2015-02-21T11:27:39.920 回答