Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running example #28

Open
mikelovesrobots opened this issue Dec 15, 2016 · 2 comments
Open

Problems running example #28

mikelovesrobots opened this issue Dec 15, 2016 · 2 comments

Comments

@mikelovesrobots
Copy link

Steps I took:

  • git clone [email protected]:lrettig/react-native-stripe.git
  • cd react-native-stripe/example
  • npm install
  • react-native start
  • open ios/example.xcodeproj/
  • hit run (command-r)

What I expected to happen:

I expected the example project to build and run

What actually happened:

Linker errors

Ld /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/example.app/example normal x86_64
    cd /Users/mike/src/react-native-stripe/example/ios
    export IPHONEOS_DEPLOYMENT_TARGET=8.4
    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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk -L/Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator -F/Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator -F/Users/mike/src/react-native-stripe/example/ios/../.. -filelist /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Objects-normal/x86_64/example.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.4 -Xlinker -object_path_lto -Xlinker /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Objects-normal/x86_64/example_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/Stripe/libStripe.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libStripeNative.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libReact.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTImage.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTLinking.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTSettings.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTText.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTVibration.a /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -Xlinker -dependency_info -Xlinker /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Intermediates/example.build/Debug-iphonesimulator/example.build/Objects-normal/x86_64/example_dependency_info.dat -o /Users/mike/Library/Developer/Xcode/DerivedData/example-fcfdjpkzreqzkvdrpzadzhtztwds/Build/Products/Debug-iphonesimulator/example.app/example

Undefined symbols for architecture x86_64:
  "std::__1::__next_prime(unsigned long)", referenced from:
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::rehash(unsigned long) in libReact.a(RCTJSCExecutor.o)
  "std::__1::mutex::lock()", referenced from:
      -[RCTModuleData setUpInstanceAndBridge] in libReact.a(RCTModuleData.o)
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
      -[RCTNetworking handlerForRequest:] in libRCTNetwork.a(RCTNetworking.o)
      -[RCTHTTPRequestHandler sendRequest:withDelegate:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler cancelRequest:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:dataTask:didReceiveResponse:completionHandler:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      ...
  "std::__1::mutex::unlock()", referenced from:
      -[RCTModuleData setUpInstanceAndBridge] in libReact.a(RCTModuleData.o)
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
      -[RCTNetworking handlerForRequest:] in libRCTNetwork.a(RCTNetworking.o)
      -[RCTHTTPRequestHandler sendRequest:withDelegate:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler cancelRequest:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      -[RCTHTTPRequestHandler URLSession:dataTask:didReceiveResponse:completionHandler:] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
      ...
  "std::__1::mutex::~mutex()", referenced from:
      -[RCTModuleData .cxx_destruct] in libReact.a(RCTModuleData.o)
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
      -[RCTNetworking .cxx_destruct] in libRCTNetwork.a(RCTNetworking.o)
      -[RCTHTTPRequestHandler .cxx_destruct] in libRCTNetwork.a(RCTHTTPRequestHandler.o)
  "std::terminate()", referenced from:
      ___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
  "operator delete[](void*)", referenced from:
      -[RCTJSCExecutor dealloc] in libReact.a(RCTJSCExecutor.o)
      executeRandomAccessModule(RCTJSCExecutor*, unsigned int, unsigned long, unsigned long) in libReact.a(RCTJSCExecutor.o)
      readRAMBundle(std::__1::unique_ptr<__sFILE, int (*)(__sFILE*)>, RandomAccessBundleData&) in libReact.a(RCTJSCExecutor.o)
      RandomAccessBundleData::~RandomAccessBundleData() in libReact.a(RCTJSCExecutor.o)
  "operator delete(void*)", referenced from:
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::~__hash_table() in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__deallocate(std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>*) in libReact.a(RCTJSCExecutor.o)
      ____ZL37installBasicSynchronousHooksOnContextP9JSContext_block_invoke_5 in libReact.a(RCTJSCExecutor.o)
      std::__1::unique_ptr<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>, std::__1::__hash_node_destructor<std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*> > > > std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__construct_node_hash<std::__1::pair<unsigned long const, unsigned long> const&>(unsigned long, std::__1::pair<unsigned long const, unsigned long> const&&&) in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__rehash(unsigned long) in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::erase(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>*>) in libReact.a(RCTJSCExecutor.o)
      RCTSetUpCustomLibraryPointers() in libReact.a(RCTJSCWrapper.o)
      ...
  "operator new[](unsigned long)", referenced from:
      executeRandomAccessModule(RCTJSCExecutor*, unsigned int, unsigned long, unsigned long) in libReact.a(RCTJSCExecutor.o)
      readRAMBundle(std::__1::unique_ptr<__sFILE, int (*)(__sFILE*)>, RandomAccessBundleData&) in libReact.a(RCTJSCExecutor.o)
  "operator new(unsigned long)", referenced from:
      std::__1::unique_ptr<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*>, std::__1::__hash_node_destructor<std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, unsigned long>, void*> > > > std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__construct_node_hash<std::__1::pair<unsigned long const, unsigned long> const&>(unsigned long, std::__1::pair<unsigned long const, unsigned long> const&&&) in libReact.a(RCTJSCExecutor.o)
      std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, unsigned long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, unsigned long> > >::__rehash(unsigned long) in libReact.a(RCTJSCExecutor.o)
      RCTSetUpCustomLibraryPointers() in libReact.a(RCTJSCWrapper.o)
      RCTSetUpSystemLibraryPointers() in libReact.a(RCTJSCWrapper.o)
  "___cxa_begin_catch", referenced from:
      ___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
  "___cxa_demangle", referenced from:
      ____RCTLogNativeInternal_block_invoke in libReact.a(RCTLog.o)
  "___cxa_guard_acquire", referenced from:
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
  "___cxa_guard_release", referenced from:
      cachedSystemFont(double, double) in libReact.a(RCTFont.o)
  "___gxx_personality_v0", referenced from:
      -[RCTJavaScriptContext initWithJSContext:onThread:] in libReact.a(RCTJSCExecutor.o)
      -[RCTJavaScriptContext init] in libReact.a(RCTJSCExecutor.o)
      -[RCTJavaScriptContext invalidate] in libReact.a(RCTJSCExecutor.o)
      +[RCTJSCExecutor runRunLoopThread] in libReact.a(RCTJSCExecutor.o)
      -[RCTJSCExecutor setBridge:] in libReact.a(RCTJSCExecutor.o)
      -[RCTJSCExecutor init] in libReact.a(RCTJSCExecutor.o)
      -[RCTJSCExecutor initWithUseCustomJSCLibrary:] in libReact.a(RCTJSCExecutor.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This was in the latest xcode (8.1). Building default example scheme for iPhone 7 Plus.

Another co-worker tried it as well, and had duplicate results.

@sunnymopada
Copy link

@mikelovesrobots Did you get solution?

@mikelovesrobots
Copy link
Author

I think the library worked great but the example project didn't. It was a half year ago so I don't really remember. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants