1

我想测试 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 菜单中选择 Project > Build 来构建它们。

alljoyn-ios/核心/alljoyn/alljoyn_objc/samples/iOS/

我在 Xcode 中打开 /Users/piran/Documents/alljoyn/alljoyn-ios/core/alljoyn/alljoyn_objc/samples/iOS/BasicClient/BasicClient.xcodeproj 并尝试 Product- >Build this failed with errorld: 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

操作系统 10.11.3

4

1 回答 1

1

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

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

于 2016-02-08T13:26:45.807 回答