我想测试AllJoyn聊天应用,但是遵循官方的逐步文档https://allseenalliance.org/framework/documentation/develop/run-sample-apps/chat/ios-osx,其中第一步是"构建样本"和说明是https://allseenalliance.org/framework/documentation/develop/building/ios-osx 一切顺利,直到步骤: 构建示例
在Xcode中打开以下每个示例iOS应用程序,并通过选择Project>来构建它们。从Xcode菜单构建。
alljoyn-IOS /型芯/ alljoyn / alljoyn_objc /样品/式IO /
我在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
答案 0 :(得分:1)
下面的链接提供了有关如何通过设置OPENSSL_ROOT环境变量确保Xcode可以使用OpenSSL的说明。它是在'获取OpenSSL'部分:
https://allseenalliance.org/framework/documentation/develop/building/ios-osx/build-source