c++ - Lots of: 'Apple Mach-O Linker Errors' -


i have made iphone app in xcode uses dropbox api. have got 23 errors named apple mach-o linker errors. have linked binary dropbox library as: systemconfiguration, quartzcore, security, cfnetwork, coregraphics, uikit , foundation. not using of frameworks dropbox told me must import of them, , using rest.

what should do?

here 1 of errors:

ld /users/zach/library/developer/xcode/deriveddata/snapdrop-fwhwffwawcnkfwbxvokogcjaaahb/build/products/debug-iphoneos/snapdrop.app/snapdrop normal armv7     cd /users/zach/desktop/snapdrop     setenv iphoneos_deployment_target 7.0     setenv path "/applications/xcode5-dp3.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin:/applications/xcode5-dp3.app/contents/developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"     /applications/xcode5-dp3.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /applications/xcode5-dp3.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos7.0.sdk -l/users/zach/library/developer/xcode/deriveddata/snapdrop-fwhwffwawcnkfwbxvokogcjaaahb/build/products/debug-iphoneos -f/users/zach/library/developer/xcode/deriveddata/snapdrop-fwhwffwawcnkfwbxvokogcjaaahb/build/products/debug-iphoneos -f/users/zach/desktop/snapdrop -f/users/zach/desktop/snapdrop/../../downloads/dropbox-ios-sync-sdk-1-1.1.0 -filelist /users/zach/library/developer/xcode/deriveddata/snapdrop-fwhwffwawcnkfwbxvokogcjaaahb/build/intermediates/snapdrop.build/debug-iphoneos/snapdrop.build/objects-normal/armv7/snapdrop.linkfilelist -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework dropbox -framework quartzcore -framework systemconfiguration -framework security -framework cfnetwork -framework coregraphics -framework uikit -framework foundation -xlinker -dependency_info -xlinker /users/zach/library/developer/xcode/deriveddata/snapdrop-fwhwffwawcnkfwbxvokogcjaaahb/build/intermediates/snapdrop.build/debug-iphoneos/snapdrop.build/objects-normal/armv7/snapdrop_dependency_info.dat -o /users/zach/library/developer/xcode/deriveddata/snapdrop-fwhwffwawcnkfwbxvokogcjaaahb/build/products/debug-iphoneos/snapdrop.app/snapdrop  undefined symbols architecture armv7:   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*)", referenced from:       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       dbx_url_encode(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in dropbox(util.o)       dbx_build_url_with_params(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(util.o)   "operator new(unsigned long)", referenced from:       std::__1::__function::__func<httprequester::httprequester(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*), void*)::'lambda'(), std::__1::allocator<httprequester::httprequester(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*), void*)::'lambda'()>, void ()>::__clone() const in dropbox(env.o)   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::reserve(unsigned long)", referenced from:       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       dbx_url_encode(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in dropbox(util.o)       dbx_build_url_with_params(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(util.o)   "std::__1::chrono::system_clock::now()", referenced from:       std::__1::cv_status std::__1::condition_variable::wait_for<long long, std::__1::ratio<1ll, 1000ll> >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::duration<long long, std::__1::ratio<1ll, 1000ll> > const&) in dropbox(sync.o)       std::__1::cv_status std::__1::condition_variable::wait_for<long, std::__1::ratio<3600ll, 1ll> >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::duration<long, std::__1::ratio<3600ll, 1ll> > const&) in dropbox(api.o)   "std::__1::chrono::steady_clock::now()", referenced from:       std::__1::cv_status std::__1::condition_variable::wait_for<long long, std::__1::ratio<1ll, 1000ll> >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::duration<long long, std::__1::ratio<1ll, 1000ll> > const&) in dropbox(sync.o)       std::__1::cv_status std::__1::condition_variable::wait_for<long, std::__1::ratio<3600ll, 1ll> >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::duration<long, std::__1::ratio<3600ll, 1ll> > const&) in dropbox(api.o)   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(char const*)", referenced from:       dbx_access_info::is_valid(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) const in dropbox(sync.o)       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       dbx_build_url_with_params(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(util.o)   "std::__1::__throw_system_error(int, char const*)", referenced from:       std::__1::unique_lock<std::__1::mutex>::unlock() in dropbox(transfer.o)       std::__1::unique_lock<std::__1::mutex>::lock() in dropbox(transfer.o)   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*, unsigned long)", referenced from:       dbx_build_url_with_params(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(util.o)   "std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)", referenced from:       lifecyclemanager::shutdown() in dropbox(init.o)       dbx_env::log_upload_thread() in dropbox(env.o)   "std::nothrow", referenced from:       _dropbox_env_init in dropbox(init.o)       _dropbox_account_init in dropbox(init.o)       httprequester::create(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*)) in dropbox(env.o)       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       threadlocal<dbx_error_buf>::get() in dropbox(util.o)   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()", referenced from:       dbx_env::~dbx_env() in dropbox(init.o)       build_authed_url(dbx_account const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(api.o)       dbx_request_json(dbx_account*, httprequester&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, char const*, int, std::initializer_list<int> const&, std::__1::unique_ptr<json_t, json_deleter>&) in dropbox(api.o)       _dropbox_api_unlink in dropbox(api.o)       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       dbx_upload_log_file(dbx_env const*, httprequester&, char const*, long long, long long, char const*, long long) in dropbox(api.o)       dbx_build_url_with_params(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(util.o)       ...   "std::__1::condition_variable::notify_all()", referenced from:       lifecyclemanager::kick_cvars() in dropbox(init.o)       lifecyclemanager::threadregistration::~threadregistration() in dropbox(transfer.o)       lifecyclemanager::threadregistration::threadregistration(lifecyclemanager&) in dropbox(transfer.o)       dbx_env::dump_log_buffer() const in dropbox(env.o)       dbx_env::log_upload_thread() in dropbox(env.o)   "std::__1::condition_variable::~condition_variable()", referenced from:       _dropbox_account_init in dropbox(init.o)       _dropbox_account_destroy in dropbox(init.o)       dbx_env::~dbx_env() in dropbox(init.o)       __global__i_a in dropbox(env.o)   "std::__1::mutex::unlock()", referenced from:       _dropbox_set_online in dropbox(init.o)       _dropbox_lib_setup in dropbox(init.o)       _dropbox_env_shutdown in dropbox(init.o)       _dropbox_account_init in dropbox(init.o)       _dropbox_account_shutdown in dropbox(init.o)       void lifecyclemanager::all_lock_helper<void, dropbox_set_online::$_0>(vq_node<std::__1::mutex&>*, dropbox_set_online::$_0) in dropbox(init.o)       lifecyclemanager::shutdown() in dropbox(init.o)       ...   "operator new(unsigned long, std::nothrow_t const&)", referenced from:       _dropbox_env_init in dropbox(init.o)       _dropbox_account_init in dropbox(init.o)       httprequester::create(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*)) in dropbox(env.o)       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       threadlocal<dbx_error_buf>::get() in dropbox(util.o)   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::push_back(char)", referenced from:       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       dbx_url_encode(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in dropbox(util.o)       dbx_build_url_with_params(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(util.o)   "std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1ll, 1000000000ll> > >)", referenced from:       std::__1::cv_status std::__1::condition_variable::wait_for<long long, std::__1::ratio<1ll, 1000ll> >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::duration<long long, std::__1::ratio<1ll, 1000ll> > const&) in dropbox(sync.o)       std::__1::cv_status std::__1::condition_variable::wait_for<long, std::__1::ratio<3600ll, 1ll> >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::duration<long, std::__1::ratio<3600ll, 1ll> > const&) in dropbox(api.o)   "std::__1::mutex::~mutex()", referenced from:       _dropbox_account_init in dropbox(init.o)       _dropbox_account_destroy in dropbox(init.o)       dbx_env::~dbx_env() in dropbox(init.o)       __global__i_a in dropbox(init.o)       __global__i_a in dropbox(env.o)   "operator delete(void*)", referenced from:       _dropbox_env_destroy in dropbox(init.o)       _dropbox_account_init in dropbox(init.o)       _dropbox_account_destroy in dropbox(init.o)       dbx_env::log_upload_thread() in dropbox(env.o)       std::__1::__function::__func<httprequester::httprequester(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*), void*)::'lambda'(), std::__1::allocator<httprequester::httprequester(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*), void*)::'lambda'()>, void ()>::~__func() in dropbox(env.o)       std::__1::__function::__func<httprequester::httprequester(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*), void*)::'lambda'(), std::__1::allocator<httprequester::httprequester(dbx_env*, lifecyclemanager&, std::__1::mutex*, void*, void (*)(void*), void*)::'lambda'()>, void ()>::destroy_deallocate() in dropbox(env.o)       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       ...   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long)", referenced from:       dbx_env::dbx_env(dbx_http const*, dbx_env_config const*) in dropbox(init.o)       build_authed_url(dbx_account const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(api.o)       _dropbox_api_unlink in dropbox(api.o)       dbx_api_account_info(dbx_account*, std::__1::unique_ptr<dbx_account_info, dbx_account_info_deleter>*, std::__1::unique_ptr<dbx_access_info, std::__1::default_delete<dbx_access_info> >*, httprequester&, int) in dropbox(api.o)       dbx_upload_log_file(dbx_env const*, httprequester&, char const*, long long, long long, char const*, long long) in dropbox(api.o)   "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:       build_authed_url(dbx_account const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in dropbox(api.o)       dbx_upload_log_file(dbx_env const*, httprequester&, char const*, long long, long long, char const*, long long) in dropbox(api.o)   "std::__1::mutex::lock()", referenced from:       _dropbox_set_online in dropbox(init.o)       _dropbox_lib_setup in dropbox(init.o)       _dropbox_env_shutdown in dropbox(init.o)       _dropbox_account_init in dropbox(init.o)       _dropbox_account_shutdown in dropbox(init.o)       void lifecyclemanager::all_lock_helper<void, dropbox_set_online::$_0>(vq_node<std::__1::mutex&>*, dropbox_set_online::$_0) in dropbox(init.o)       lifecyclemanager::shutdown() in dropbox(init.o)       ... ld: symbol(s) not found architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation) 

you didn't mention adding libc++.dylib. per https://www.dropbox.com/developers/sync/sdks/ios:

ensure have cfnetwork.framework, security.framework, systemconfiguration.framework, quartzcore.framework, , libc++.dylib added project. this, select project file in file explorer, select target, , select build phases sub-tab. under link binary libraries, press + button, select cfnetwork.framework, , press add. repeat security.framework, systemconfiguration.framework, quartzcore.framework, , libc++.dylib.

please let me know if there setup instructions somewhere don't mention libc++.dylib.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -