Mykola Tkachenko February 2016

AllJoyn sample app Build failed on Xcode

I want to test AllJoyn chat app but following official step-by-step documentation https://allseenalliance.org/framework/documentation/develop/run-sample-apps/chat/ios-osx where first step is "Build a sample" and instructions are https://allseenalliance.org/framework/documentation/develop/building/ios-osx All goes fine until step: Build the samples

Open each of the following sample iOS applications in Xcode and build them by selecting Project > Build from the Xcode menu.

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

I opened /Users/piran/Documents/alljoyn/alljoyn-ios/core/alljoyn/alljoyn_objc/samples/iOS/BasicClient/BasicClient.xcodeproj in Xcode and trying Product->Build this fails with error 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/pira        

Answers


John Sampson February 2016

The link below gives instructions instructions on how to make sure OpenSSL is available to Xcode by setting the OPENSSL_ROOT environment variable. It is in the 'Obtaining OpenSSL' section:

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

Post Status

Asked in February 2016
Viewed 1,916 times
Voted 10
Answered 1 times

Search




Leave an answer