facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 908 forks source link

Build failed on new project #175

Closed alexkirsz closed 8 years ago

alexkirsz commented 8 years ago

Following the latest installation instructions on a clean react-native project, I'm getting a BUILD FAILED when I run react-native run-ios.

What I did:

react-native init fbsdktest
cd fbsdktest
npm install --save react-native-fbsdk
rnpm link

I then drag'n'dropped FBSDKCoreKit.framework into a new Frameworks group, added its folder path to Framework Search Paths, and finally edited ios/fbsdktest/Info.plist and ios/fbsdktest/AppDelegate.m as per the instructions over at Getting Started.

Here's a repo showcasing this issue.

git clone https://github.com/Morhaus/fbsdktest
cd fbsdktest
npm install
react-native run-ios

(Strangely, on this repo, it also complains about CFBundleIdentifier not existing but I don't know if that's related to react-native-fbsdk)

Note that it looks for the FacebookSDK folder at $HOME/Documents/FacebookSDK.

And here's the full output of react-native run-ios:

Found Xcode project fbsdktest.xcodeproj
Launching iPhone 6 (9.3)...
Building using "xcodebuild -project fbsdktest.xcodeproj -scheme fbsdktest -destination id=E39919BD-E3FA-4B46-A748-A9BCE0940943 -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/alexandre/dev/fbsdktest/ios/build

=== BUILD TARGET RCTFBSDK OF PROJECT RCTFBSDK WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTVibration OF PROJECT RCTVibration WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTGeolocation OF PROJECT RCTGeolocation WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTNetwork OF PROJECT RCTNetwork WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTText OF PROJECT RCTText WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTActionSheet OF PROJECT RCTActionSheet WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTLinking OF PROJECT RCTLinking WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTImage OF PROJECT RCTImage WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET React OF PROJECT React WITH CONFIGURATION Debug ===
Check dependencies

PhaseScriptExecution Run\ Script /Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
    cd /Users/alexandre/dev/fbsdktest/node_modules/react-native/React
    export ACTION=build
    export AD_HOC_CODE_SIGNING_ALLOWED=NO
    export ALTERNATE_GROUP=staff
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=alexandre
    export ALWAYS_SEARCH_USER_PATHS=NO
    export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
    export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY=NO
    export APPLY_RULES_IN_COPY_FILES=NO
    export ARCHS=x86_64
    export ARCHS_STANDARD="i386 x86_64"
    export ARCHS_STANDARD_32_64_BIT="i386 x86_64"
    export ARCHS_STANDARD_32_BIT=i386
    export ARCHS_STANDARD_64_BIT=x86_64
    export ARCHS_STANDARD_INCLUDING_64_BIT="i386 x86_64"
    export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64"
    export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
    export BITCODE_GENERATION_MODE=marker
    export BUILD_ACTIVE_RESOURCES_ONLY=YES
    export BUILD_COMPONENTS="headers build"
    export BUILD_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products
    export BUILD_ROOT=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products
    export BUILD_STYLE=
    export BUILD_VARIANTS=normal
    export BUILT_PRODUCTS_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator
    export CACHE_ROOT=/var/folders/2l/hyxspyss3gj1sv4yqd7q88vr0000gn/C/com.apple.DeveloperTools/7.3.1-7D1014/Xcode
    export CCHROOT=/var/folders/2l/hyxspyss3gj1sv4yqd7q88vr0000gn/C/com.apple.DeveloperTools/7.3.1-7D1014/Xcode
    export CHMOD=/bin/chmod
    export CHOWN=/usr/sbin/chown
    export CLANG_CXX_LANGUAGE_STANDARD=gnu++0x
    export CLANG_CXX_LIBRARY=libc++
    export CLANG_ENABLE_MODULES=YES
    export CLANG_ENABLE_OBJC_ARC=YES
    export CLANG_MODULES_BUILD_SESSION_FILE=/Users/alexandre/dev/fbsdktest/ios/build/ModuleCache/Session.modulevalidation
    export CLANG_STATIC_ANALYZER_MODE=deep
    export CLANG_WARN_BOOL_CONVERSION=YES
    export CLANG_WARN_CONSTANT_CONVERSION=YES
    export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
    export CLANG_WARN_EMPTY_BODY=YES
    export CLANG_WARN_ENUM_CONVERSION=YES
    export CLANG_WARN_INT_CONVERSION=YES
    export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
    export CLANG_WARN_UNREACHABLE_CODE=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
    export CLASS_FILE_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/JavaClasses
    export CLEAN_PRECOMPS=YES
    export CLONE_HEADERS=NO
    export CODESIGNING_FOLDER_PATH=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libReact.a
    export CODE_SIGNING_ALLOWED=NO
    export CODE_SIGN_CONTEXT_CLASS=XCiPhoneSimulatorCodeSignContext
    export COLOR_DIAGNOSTICS=YES
    export COMBINE_HIDPI_IMAGES=NO
    export COMMAND_MODE=legacy
    export COMPOSITE_SDK_DIRS=/var/folders/2l/hyxspyss3gj1sv4yqd7q88vr0000gn/C/com.apple.DeveloperTools/7.3.1-7D1014/Xcode/CompositeSDKs
    export COMPRESS_PNG_FILES=YES
    export CONFIGURATION=Debug
    export CONFIGURATION_BUILD_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator
    export CONFIGURATION_TEMP_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator
    export COPYING_PRESERVES_HFS_DATA=NO
    export COPY_HEADERS_RUN_UNIFDEF=NO
    export COPY_PHASE_STRIP=NO
    export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
    export CORRESPONDING_DEVICE_PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
    export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos
    export CORRESPONDING_DEVICE_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk
    export CORRESPONDING_DEVICE_SDK_NAME=iphoneos9.3
    export CP=/bin/cp
    export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
    export CURRENT_ARCH=x86_64
    export CURRENT_VARIANT=normal
    export DEAD_CODE_STRIPPING=NO
    export DEBUGGING_SYMBOLS=YES
    export DEBUG_INFORMATION_FORMAT=dwarf-with-dsym
    export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
    export DEFINES_MODULE=NO
    export DEPLOYMENT_LOCATION=NO
    export DEPLOYMENT_POSTPROCESSING=NO
    export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=mios-simulator-version-min
    export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-mios-simulator-version-min=
    export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_SUGGESTED_VALUES="6.0 6.1 7.0 7.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3"
    export DERIVED_FILES_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources
    export DERIVED_FILE_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources
    export DERIVED_SOURCES_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources
    export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE=English
    export DO_HEADER_SCANNING_IN_JAM=NO
    export DSTROOT=/tmp/React.dst
    export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME=libReact.a.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
    export DWARF_DSYM_FOLDER_PATH=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator
    export EFFECTIVE_PLATFORM_NAME=-iphonesimulator
    export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
    export ENABLE_BITCODE=NO
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES
    export ENABLE_HEADER_DEPENDENCIES=YES
    export ENABLE_ON_DEMAND_RESOURCES=NO
    export ENABLE_STRICT_OBJC_MSGSEND=YES
    export ENABLE_TESTABILITY=NO
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS"
    export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
    export EXECUTABLE_EXTENSION=a
    export EXECUTABLE_NAME=libReact.a
    export EXECUTABLE_PATH=libReact.a
    export EXECUTABLE_PREFIX=lib
    export EXECUTABLE_SUFFIX=.a
    export EXPANDED_CODE_SIGN_IDENTITY=
    export EXPANDED_CODE_SIGN_IDENTITY_NAME=
    export EXPANDED_PROVISIONING_PROFILE=
    export FILE_LIST=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects/LinkFileList
    export FIXED_FILES_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/FixedFiles
    export FRAMEWORK_FLAG_PREFIX=-framework
    export FRAMEWORK_SEARCH_PATHS="/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator "
    export FRAMEWORK_VERSION=A
    export FULL_PRODUCT_NAME=libReact.a
    export GCC3_VERSION=3.3
    export GCC_C_LANGUAGE_STANDARD=gnu99
    export GCC_DYNAMIC_NO_PIC=NO
    export GCC_OBJC_LEGACY_DISPATCH=YES
    export GCC_OPTIMIZATION_LEVEL=0
    export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++"
    export GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 RCT_DEBUG=1 RCT_DEV=1 RCT_NSASSERT=1"
    export GCC_SYMBOLS_PRIVATE_EXTERN=NO
    export GCC_TREAT_WARNINGS_AS_ERRORS=NO
    export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
    export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION=YES
    export GCC_WARN_ABOUT_MISSING_NEWLINE=YES
    export GCC_WARN_ABOUT_MISSING_PROTOTYPES=YES
    export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR
    export GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED=YES
    export GCC_WARN_SHADOW=YES
    export GCC_WARN_UNDECLARED_SELECTOR=YES
    export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE
    export GCC_WARN_UNUSED_FUNCTION=YES
    export GCC_WARN_UNUSED_VARIABLE=YES
    export GENERATE_MASTER_OBJECT_FILE=NO
    export GENERATE_PKGINFO_FILE=NO
    export GENERATE_PROFILING_CODE=NO
    export GID=20
    export GROUP=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
    export HEADERMAP_USES_VFS=NO
    export HEADER_SEARCH_PATHS="/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/include  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
    export HIDE_BITCODE_SYMBOLS=YES
    export HOME=/Users/alexandre
    export ICONV=/usr/bin/iconv
    export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
    export INFOPLIST_OUTPUT_FORMAT=binary
    export INFOPLIST_PREPROCESS=NO
    export INSTALL_DIR=/tmp/React.dst/usr/local/lib
    export INSTALL_GROUP=staff
    export INSTALL_MODE_FLAG=u+w,go-w,a+rX
    export INSTALL_OWNER=alexandre
    export INSTALL_PATH=/usr/local/lib
    export INSTALL_ROOT=/tmp/React.dst
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
    export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES=YES
    export JAVA_ARCHIVE_TYPE=JAR
    export JAVA_COMPILER=/usr/bin/javac
    export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
    export JAVA_JAR_FLAGS=cv
    export JAVA_SOURCE_SUBDIR=.
    export JAVA_USE_DEPENDENCIES=YES
    export JAVA_ZIP_FLAGS=-urg
    export JIKES_DEFAULT_FLAGS="+E +OLDCSO"
    export KEEP_PRIVATE_EXTERNS=NO
    export LD_DEPENDENCY_INFO_FILE=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/React_dependency_info.dat
    export LD_GENERATE_MAP_FILE=NO
    export LD_MAP_FILE_PATH=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React-LinkMap-normal-x86_64.txt
    export LD_NO_PIE=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
    export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LEX=lex
    export LIBRARY_FLAG_NOSPACE=YES
    export LIBRARY_FLAG_PREFIX=-l
    export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
    export LIBRARY_SEARCH_PATHS="/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator "
    export LINKER_DISPLAYS_MANGLED_NAMES=NO
    export LINK_FILE_LIST_normal_x86_64=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/React.LinkFileList
    export LINK_WITH_STANDARD_LIBRARIES=YES
    export LOCALIZABLE_CONTENT_DIR=
    export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
    export LOCAL_APPS_DIR=/Applications
    export LOCAL_DEVELOPER_DIR=/Library/Developer
    export LOCAL_LIBRARY_DIR=/Library
    export LOCROOT=
    export LOCSYMROOT=
    export MACH_O_TYPE=staticlib
    export MAC_OS_X_PRODUCT_BUILD_VERSION=15E65
    export MAC_OS_X_VERSION_ACTUAL=101104
    export MAC_OS_X_VERSION_MAJOR=101100
    export MAC_OS_X_VERSION_MINOR=1104
    export MODULE_CACHE_DIR=/Users/alexandre/dev/fbsdktest/ios/build/ModuleCache
    export MTL_ENABLE_DEBUG_INFO=YES
    export NATIVE_ARCH=i386
    export NATIVE_ARCH_32_BIT=i386
    export NATIVE_ARCH_64_BIT=x86_64
    export NATIVE_ARCH_ACTUAL=x86_64
    export NO_COMMON=YES
    export OBJC_ABI_VERSION=2
    export OBJECT_FILE_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects
    export OBJECT_FILE_DIR_normal=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal
    export OBJROOT=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates
    export ONLY_ACTIVE_ARCH=YES
    export OS=MACOS
    export OSAC=/usr/bin/osacompile
    export OTHER_LDFLAGS=-ObjC
    export PACKAGE_TYPE=com.apple.package-type.static-library
    export PASCAL_STRINGS=YES
    export PATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/Users/alexandre/.pyenv/shims:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/alexandre/.opam/system/bin:/usr/local/heroku/bin:/Users/alexandre/.nvm/versions/node/v5.6.0/bin:/usr/local/sbin:/Users/alexandre/bin:/Users/alexandre/dev/android-sdk/tools:/Users/alexandre/Downloads/emsdk_portable:/Users/alexandre/Downloads/emsdk_portable/clang/e1.30.0_64bit:/Users/alexandre/Downloads/emsdk_portable/node/0.12.2_64bit/bin:/Users/alexandre/Downloads/emsdk_portable/emscripten/1.30.0:/Users/alexandre/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin"
    export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms"
    export PFE_FILE_C_DIALECTS="c objective-c objective-c++"
    export PKGINFO_FILE_PATH=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/PkgInfo
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr
    export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
    export PLATFORM_DISPLAY_NAME="iOS Simulator"
    export PLATFORM_NAME=iphonesimulator
    export PLATFORM_PREFERRED_ARCH=x86_64
    export PLATFORM_VERSION_AVAILABILITY_H_FORMAT=90300
    export PLIST_FILE_OUTPUT_FORMAT=binary
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
    export PRECOMP_DESTINATION_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
    export PRIVATE_HEADERS_FOLDER_PATH=/usr/local/include
    export PRODUCT_MODULE_NAME=React
    export PRODUCT_NAME=React
    export PRODUCT_SETTINGS_PATH=
    export PRODUCT_TYPE=com.apple.product-type.library.static
    export PROFILING_CODE=NO
    export PROJECT=React
    export PROJECT_DERIVED_FILE_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/DerivedSources
    export PROJECT_DIR=/Users/alexandre/dev/fbsdktest/node_modules/react-native/React
    export PROJECT_FILE_PATH=/Users/alexandre/dev/fbsdktest/node_modules/react-native/React/React.xcodeproj
    export PROJECT_NAME=React
    export PROJECT_TEMP_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build
    export PROJECT_TEMP_ROOT=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates
    export PUBLIC_HEADERS_FOLDER_PATH=/usr/local/include
    export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
    export REMOVE_CVS_FROM_RESOURCES=YES
    export REMOVE_GIT_FROM_RESOURCES=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
    export REMOVE_HG_FROM_RESOURCES=YES
    export REMOVE_SVN_FROM_RESOURCES=YES
    export REZ_COLLECTOR_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/ResourceManagerResources
    export REZ_EXECUTABLE=YES
    export REZ_OBJECTS_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/ResourceManagerResources/Objects
    export REZ_SEARCH_PATHS="/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator "
    export RUN_CLANG_STATIC_ANALYZER=YES
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
    export SCRIPT_INPUT_FILE_COUNT=0
    export SCRIPT_OUTPUT_FILE_COUNT=0
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
    export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
    export SDK_DIR_iphonesimulator9_3=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
    export SDK_NAME=iphonesimulator9.3
    export SDK_NAMES=iphonesimulator9.3
    export SDK_PRODUCT_BUILD_VERSION=13E230
    export SDK_VERSION=9.3
    export SDK_VERSION_ACTUAL=90300
    export SDK_VERSION_MAJOR=90000
    export SDK_VERSION_MINOR=300
    export SED=/usr/bin/sed
    export SEPARATE_STRIP=YES
    export SEPARATE_SYMBOL_EDIT=NO
    export SET_DIR_MODE_OWNER_GROUP=YES
    export SET_FILE_MODE_OWNER_GROUP=NO
    export SHALLOW_BUNDLE=NO
    export SHARED_DERIVED_FILE_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/DerivedSources
    export SHARED_PRECOMPS_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/PrecompiledHeaders
    export SKIP_INSTALL=YES
    export SOURCE_ROOT=/Users/alexandre/dev/fbsdktest/node_modules/react-native/React
    export SRCROOT=/Users/alexandre/dev/fbsdktest/node_modules/react-native/React
    export STRINGS_FILE_OUTPUT_ENCODING=binary
    export STRIP_BITCODE_FROM_COPIED_FILES=NO
    export STRIP_INSTALLED_PRODUCT=YES
    export STRIP_STYLE=debugging
    export SUPPORTED_DEVICE_FAMILIES=1,2
    export SUPPORTED_PLATFORMS="iphonesimulator iphoneos"
    export SUPPORTS_TEXT_BASED_API=NO
    export SWIFT_PLATFORM_TARGET_PREFIX=ios
    export SYMROOT=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products
    export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
    export SYSTEM_APPS_DIR=/Applications
    export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples"
    export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library"
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools"
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Java Tools"
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools"
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes"
    export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools"
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools"
    export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR=/System/Library
    export TAPI_VERIFY_MODE=ErrorsOnly
    export TARGETED_DEVICE_FAMILY=1
    export TARGETNAME=React
    export TARGET_BUILD_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator
    export TARGET_DEVICE_MODEL=iPhone7,2
    export TARGET_DEVICE_OS_VERSION=9.3
    export TARGET_NAME=React
    export TARGET_TEMP_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build
    export TEMP_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build
    export TEMP_FILES_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build
    export TEMP_FILE_DIR=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build
    export TEMP_ROOT=/Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates
    export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
    export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
    export UID=501
    export UNSTRIPPED_PRODUCT=NO
    export USER=alexandre
    export USER_APPS_DIR=/Users/alexandre/Applications
    export USER_LIBRARY_DIR=/Users/alexandre/Library
    export USE_DYNAMIC_NO_PIC=YES
    export USE_HEADERMAP=YES
    export USE_HEADER_SYMLINKS=NO
    export VALIDATE_PRODUCT=NO
    export VALID_ARCHS="i386 x86_64"
    export VERBOSE_PBXCP=NO
    export VERSION_INFO_BUILDER=alexandre
    export VERSION_INFO_FILE=React_vers.c
    export VERSION_INFO_STRING="\"@(#)PROGRAM:React  PROJECT:React-\""
    export WARNING_CFLAGS="-Wextra -Wall"
    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
    export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
    export XCODE_PRODUCT_BUILD_VERSION=7D1014
    export XCODE_VERSION_ACTUAL=0731
    export XCODE_VERSION_MAJOR=0700
    export XCODE_VERSION_MINOR=0730
    export XPCSERVICES_FOLDER_PATH=/XPCServices
    export YACC=yacc
    export arch=x86_64
    export diagnostic_message_length=204
    export variant=normal
    /bin/sh -c /Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded!

PhaseScriptExecution Run\ Script /Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-142C4F7F1B582EA6001F0B58.sh
    cd /Users/alexandre/dev/fbsdktest/node_modules/react-native/React
    /bin/sh -c /Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-142C4F7F1B582EA6001F0B58.sh

=== BUILD TARGET RCTSettings OF PROJECT RCTSettings WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTWebSocket OF PROJECT RCTWebSocket WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET fbsdktest OF PROJECT fbsdktest WITH CONFIGURATION Debug ===

Check dependencies

Ld build/Build/Products/Debug-iphonesimulator/fbsdktest.app/fbsdktest normal x86_64
    cd /Users/alexandre/dev/fbsdktest/ios
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/alexandre/.pyenv/shims:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/alexandre/.opam/system/bin:/usr/local/heroku/bin:/Users/alexandre/.nvm/versions/node/v5.6.0/bin:/usr/local/sbin:~/bin:~/dev/android-sdk/tools:/Users/alexandre/Downloads/emsdk_portable:/Users/alexandre/Downloads/emsdk_portable/clang/e1.30.0_64bit:/Users/alexandre/Downloads/emsdk_portable/node/0.12.2_64bit/bin:/Users/alexandre/Downloads/emsdk_portable/emscripten/1.30.0:/Users/alexandre/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator -F/Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator -F/Users/alexandre/Documents/FacebookSDK -filelist /Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/fbsdktest.build/Debug-iphonesimulator/fbsdktest.build/Objects-normal/x86_64/fbsdktest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lc++ -fobjc-arc -fobjc-link-runtime /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libReact.a -framework FBSDKCoreKit /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTImage.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTLinking.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTSettings.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTText.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTVibration.a /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -lRCTFBSDK -Xlinker -dependency_info -Xlinker /Users/alexandre/dev/fbsdktest/ios/build/Build/Intermediates/fbsdktest.build/Debug-iphonesimulator/fbsdktest.build/Objects-normal/x86_64/fbsdktest_dependency_info.dat -o /Users/alexandre/dev/fbsdktest/ios/build/Build/Products/Debug-iphonesimulator/fbsdktest.app/fbsdktest
ld: warning: Auto-Linking supplied '/Users/alexandre/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit', framework linker option at /Users/alexandre/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit is not a dylib
ld: warning: Auto-Linking supplied '/Users/alexandre/Documents/FacebookSDK/FBSDKShareKit.framework/FBSDKShareKit', framework linker option at /Users/alexandre/Documents/FacebookSDK/FBSDKShareKit.framework/FBSDKShareKit is not a dylib
ld: warning: Auto-Linking supplied '/Users/alexandre/Documents/FacebookSDK/Bolts.framework/Bolts', framework linker option at /Users/alexandre/Documents/FacebookSDK/Bolts.framework/Bolts is not a dylib
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FBSDKAppGroupAddDialog", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKAppGroupAddDialog.o)
  "_OBJC_CLASS_$_FBSDKAppGroupContent", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKAppGroupAddDialog.o)
  "_OBJC_CLASS_$_FBSDKAppGroupJoinDialog", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKAppGroupJoinDialog.o)
  "_OBJC_CLASS_$_FBSDKAppInviteContent", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKAppInviteDialog.o)
  "_OBJC_CLASS_$_FBSDKAppInviteDialog", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKAppInviteDialog.o)
  "_OBJC_CLASS_$_FBSDKGameRequestContent", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKGameRequestDialog.o)
  "_OBJC_CLASS_$_FBSDKGameRequestDialog", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKGameRequestDialog.o)
  "_OBJC_CLASS_$_FBSDKHashtag", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKLikeControl", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKLikeControlManager.o)
  "_OBJC_CLASS_$_FBSDKLoginButton", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKLoginButtonManager.o)
  "_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKLoginManager.o)
  "_OBJC_CLASS_$_FBSDKMessageDialog", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKMessageDialog.o)
  "_OBJC_CLASS_$_FBSDKSendButton", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKSendButtonManager.o)
  "_OBJC_CLASS_$_FBSDKShareAPI", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKShareAPI.o)
  "_OBJC_CLASS_$_FBSDKShareButton", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKShareButtonManager.o)
  "_OBJC_CLASS_$_FBSDKShareDialog", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTFBSDKShareDialog.o)
  "_OBJC_CLASS_$_FBSDKShareLinkContent", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKShareOpenGraphAction", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKShareOpenGraphContent", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKShareOpenGraphObject", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKSharePhoto", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKSharePhotoContent", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKShareVideo", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
  "_OBJC_CLASS_$_FBSDKShareVideoContent", referenced from:
      objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
    Ld build/Build/Products/Debug-iphonesimulator/fbsdktest.app/fbsdktest normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/fbsdktest.app
An error was encountered processing the command (domain=LaunchServicesError, code=0):
The operation couldn’t be completed. (LaunchServicesError error 0.)
Launching org.reactjs.native.example.fbsdktest
org.reactjs.native.example.fbsdktest: 2102
chrisp-fb commented 8 years ago

I then drag'n'dropped FBSDKCoreKit.framework into a new Frameworks group

Did you also add FBSDKLoginKit and FBSDKShareKit?

alexkirsz commented 8 years ago

That did it! Thanks. I've added a note to the README in case other people run into the same issue.

zh-wowtv commented 8 years ago

Got the same problem. My step is:

1.rnpm install react-native-fbsdk 2.Download the latest FacebookSDK 3.Extract to my ios/FacebookSDK folder

1

4.Drag necessary frameworks to my project

2016-05-23 4 44 36

5.Setup the Search Path for Frameworks

2016-05-23 4 44 50

Then build. Got the following error message:

2016-05-23 4 45 46

What could be wrong?

zh-wowtv commented 8 years ago

I know the issue now. It's because the path setting in this project is to ~/Document/FacebookSDK. Is there any elegant solution that hardcode the FacebookSDK path to ~/Document? Thanks.

alexkirsz commented 8 years ago

I've set it to $(HOME)/Documents/FacebookSDK.