AllJoyn 示例应用程序在 Xcode 上构建失败



我想测试 AllJoyn 聊天应用程序,但按照官方分步文档 https://allseenalliance.org/framework/documentation/develop/run-sample-apps/chat/ios-osx 其中第一步是"构建示例",说明是 https://allseenalliance.org/framework/documentation/develop/building/ios-osx一切顺利,直到步骤:生成示例

在 Xcode 中打开以下每个示例 iOS 应用程序,并通过从 Xcode 菜单中选择"项目>构建"来构建它们。

alljoyn-ios/core/alljoyn/alljoyn_objc/samples/iOS/

我在Xcode中打开了/Users/piran/Documents/alljoyn/alljoyn-ios/core/alljoyn/alljoyn_objc/samples/iOS/BasicClient/BasicClient.xcodeproj并尝试Product->Build此操作失败并显示错误ld: warning: directory not found for option '-L/build/Debug-iphonesimulator' ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/piran/Library/Developer/Xcode/DerivedData/BasicClient-hawoulujhrgmpnfbxiryzpjkiasq/Build/Products/Debug-iphonesimulator/BasicClient.app/BasicClient normal i386
    cd /Users/piran/Documents/alljoyn/alljoyn-ios/core/alljoyn/alljoyn_objc/samples/iOS/BasicClient
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/piran/Library/Developer/Xcode/DerivedData/BasicClient-hawoulujhrgmpnfbxiryzpjkiasq/Build/Products/Debug-iphonesimulator -L/build/Debug-iphonesimulator -L/Users/piran/Documents/alljoyn/alljoyn-ios/core/alljoyn/alljoyn_objc/samples/iOS/BasicClient/../../../../build/darwin/i386/iphonesimulator/Debug/dist/cpp/lib -L/Users/piran/Documents/alljoyn/alljoyn-ios/core/alljoyn/alljoyn_objc/samples/iOS/BasicClient/../../../../build/darwin/arm/iphonesimulator/Debug/dist/cpp/lib -F/Users/piran/Library/Developer/Xcode/DerivedData/BasicClient-hawoulujhrgmpnfbxiryzpjkiasq/Build/Products/Debug-iphonesimulator -filelist /Users/piran/Library/Developer/Xcode/DerivedData/BasicClient-hawoulujhrgmpnfbxiryzpjkiasq/Build/Intermediates/BasicClient.build/Debug-iphonesimulator/BasicClient.build/Objects-normal/i386/BasicClient.LinkFileList -mios-simulator-version-min=6.0 -Xlinker -objc_abi_version -Xlinker 2 -lalljoyn -lajrouter -lBundledRouter.o -lssl -lcrypto -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -framework SystemConfiguration -lstdc++.6 -framework UIKit -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/piran/Library/Developer/Xcode/DerivedData/BasicClient-hawoulujhrgmpnfbxiryzpjkiasq/Build/Intermediates/BasicClient.build/Debug-iphonesimulator/BasicClient.build/Objects-normal/i386/BasicClient_dependency_info.dat -o /Users/piran/Library/Developer/Xcode/DerivedData/BasicClient-hawoulujhrgmpnfbxiryzpjkiasq/Build/Products/Debug-iphonesimulator/BasicClient.app/BasicClient

此错误发生在每次示例项目生成尝试时。我是否遗漏了某些内容或必须执行一些其他步骤才能使其正常工作?

Xcode 7.2.1

osX 10.11.3

下面的链接提供了有关如何通过设置OPENSSL_ROOT环境变量来确保 OpenSSL 可用于 Xcode 的说明。它位于"获取OpenSSL"部分:

https://allseenalliance.org/framework/documentation/develop/building/ios-osx/build-source

最新更新