Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ “;架构x86_64”的未定义符号;Xcode_C++_Xcode_Undefined Symbol_Buildbox - Fatal编程技术网

C++ “;架构x86_64”的未定义符号;Xcode

C++ “;架构x86_64”的未定义符号;Xcode,c++,xcode,undefined-symbol,buildbox,C++,Xcode,Undefined Symbol,Buildbox,这是我第一次使用Xcode V11.3.1 我试图在Xcode上编译Buildbox3项目,我得到了错误列表, 36所有错误都从以下内容开始: Undefined symbol: 这条消息呢 Undefined symbols for architecture x86_64: "PTAdInvoker::rewardedVideoDidReward(char const*, bool)", referenced from: -[AdIntegratorManager rewar

这是我第一次使用Xcode V11.3.1

我试图在Xcode上编译Buildbox3项目,我得到了错误列表, 36所有错误都从以下内容开始:

Undefined symbol:
这条消息呢

Undefined symbols for architecture x86_64:
  "PTAdInvoker::rewardedVideoDidReward(char const*, bool)", referenced from:
      -[AdIntegratorManager rewardedVideoDidReward:] in AdIntegratorManager.o
  "PTAdInvoker::interstitialFailed(char const*)", referenced from:
      -[AdIntegratorManager interstitialFailed:] in AdIntegratorManager.o
  "PTAdInvoker::interstitialLoaded(char const*)", referenced from:
      -[AdIntegratorManager interstitialLoaded:] in AdIntegratorManager.o
  "PTAdInvoker::rewardedVideoFailed(char const*)", referenced from:
      -[AdIntegratorManager rewardedVideoFailed:] in AdIntegratorManager.o
  "PTAdInvoker::bannerFailed(char const*)", referenced from:
      -[AdIntegratorManager bannerFailed:] in AdIntegratorManager.o
  "PTAdInvoker::rewardedVideoLoaded(char const*)", referenced from:
      -[AdIntegratorManager rewardedVideoLoaded:] in AdIntegratorManager.o
  "PTAdInvoker::bannerLoaded(char const*)", referenced from:
      -[AdIntegratorManager bannerLoaded:] in AdIntegratorManager.o
  "_AOBSendInterstitialAdAttemptReport", referenced from:
      -[AdIntegratorManager interstitialImpression:] in AdIntegratorManager.o
      -[AdIntegratorManager interstitialFailed:] in AdIntegratorManager.o
  "PTAdInvoker::networkFailed(char const*)", referenced from:
      -[AdIntegratorManager networkFailed:] in AdIntegratorManager.o
  "_AOBStartSessionReporting", referenced from:
      -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
  "PTModelGeneralSettings::shared()", referenced from:
      -[GameViewController shouldAutorotateToInterfaceOrientation:] in GameViewController.o
      -[GameViewController supportedInterfaceOrientations] in GameViewController.o
  "PTAdInvoker::rewardedVideoDidEnd(char const*, bool)", referenced from:
      -[AdIntegratorManager rewardedVideoDidEnd:] in AdIntegratorManager.o
  "PTPAppDelegate::~PTPAppDelegate()", referenced from:
      ___cxx_global_var_init.2 in GameViewController.o
  "cocos2d::Director::mainLoop()", referenced from:
      -[GameViewController glkView:drawInRect:] in GameViewController.o
  "PTModelController::shared()", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
  "PTModelController::loadDataForSplashScreen(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*)", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
  "cocos2d::Director::setViewport()", referenced from:
      -[GameViewController glkView:drawInRect:] in GameViewController.o
  "cocos2d::GLViewImpl::createWithEAGLView(void*)", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
  "cocos2d::FileUtils::addSearchPath(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
  "PTPAppDelegate::PTPAppDelegate()", referenced from:
      ___cxx_global_var_init.2 in GameViewController.o
  "cocos2d::Application::run()", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
  "cocos2d::Director::setOpenGLView(cocos2d::GLView*)", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
  "PTAdInvoker::interstitialClosed(char const*)", referenced from:
      -[AdIntegratorManager interstitialClosed:] in AdIntegratorManager.o
  "cocos2d::Director::startAnimation()", referenced from:
      -[AppDelegate applicationDidBecomeActive:] in AppDelegate.o
  "cocos2d::FileUtils::getInstance()", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
      cocos2d::FileUtils::sharedFileUtils() in GameViewController.o
  "cocos2d::Director::getInstance()", referenced from:
      -[AppDelegate applicationWillResignActive:] in AppDelegate.o
      -[AppDelegate applicationDidBecomeActive:] in AppDelegate.o
      -[GameViewController viewDidLoad] in GameViewController.o
      -[GameViewController glkView:drawInRect:] in GameViewController.o
      -[GameViewController touchesBegan:withEvent:] in GameViewController.o
      -[GameViewController touchesMoved:withEvent:] in GameViewController.o
      -[GameViewController touchesEnded:withEvent:] in GameViewController.o
      ...
  "cocos2d::Application::getInstance()", referenced from:
      -[AppDelegate applicationDidEnterBackground:] in AppDelegate.o
      -[AppDelegate applicationWillEnterForeground:] in AppDelegate.o
      -[GameViewController viewDidLoad] in GameViewController.o
  "PTModelController::clean()", referenced from:
      -[GameViewController viewDidLoad] in GameViewController.o
  "_AOBStopSessionReporting", referenced from:
      -[AppDelegate applicationWillTerminate:] in AppDelegate.o
  "PTBaseModelGeneralSettings::orientation() const", referenced from:
      -[GameViewController shouldAutorotateToInterfaceOrientation:] in GameViewController.o
      -[GameViewController supportedInterfaceOrientations] in GameViewController.o
  "PTAdInvoker::networkLoaded(char const*)", referenced from:
      -[AdIntegratorManager networkLoaded:] in AdIntegratorManager.o
  "cocos2d::Director::stopAnimation()", referenced from:
      -[AppDelegate applicationWillResignActive:] in AppDelegate.o
  "_AOBSendRewardedAdAttemptReport", referenced from:
      -[AdIntegratorManager rewardedVideoImpression:] in AdIntegratorManager.o
      -[AdIntegratorManager rewardedVideoFailed:] in AdIntegratorManager.o
  "_AOBSendBannerAdAttemptReport", referenced from:
      -[AdIntegratorManager bannerImpression:] in AdIntegratorManager.o
      -[AdIntegratorManager bannerFailed:] in AdIntegratorManager.o
  "PTAdInvoker::shared()", referenced from:
      -[AdIntegratorManager networkLoaded:] in AdIntegratorManager.o
      -[AdIntegratorManager networkFailed:] in AdIntegratorManager.o
      -[AdIntegratorManager bannerLoaded:] in AdIntegratorManager.o
      -[AdIntegratorManager bannerFailed:] in AdIntegratorManager.o
      -[AdIntegratorManager interstitialLoaded:] in AdIntegratorManager.o
      -[AdIntegratorManager interstitialFailed:] in AdIntegratorManager.o
      -[AdIntegratorManager interstitialClosed:] in AdIntegratorManager.o
      ...
  "_OBJC_CLASS_$_AdIntegratorInterface", referenced from:
      objc-class-ref in CustomAdIntegrator.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
经过长时间的搜索,我找到了一个使用以下方法的解决方案

*

项目>构建设置>苹果铿锵语言-C++ >更改C++ 标准库到LIbSTDC++ +(GNY C++标准库)< /P> *

它起作用了,上面所有的错误都消失了,但是。。。。 我得到了以下新错误:在这个代码上

#include <stack>            'stack' file not found
#include <thread>
#include <chrono>
等等

因此,我认为这个解决方案对我来说是无效的 或者我可以解决找不到“堆栈”文件的问题吗


谢谢你的帮助。

我知道已经很久了,但不管怎样

此解决方案>>>

项目>构建设置>苹果铿锵语言-C++ >更改C++ 标准库到LIbSTDC++ +(GNY C++标准库)< /P> 将导致注意,

一开始的问题是,这个项目中有一些库和SDK不支持Xcode模拟器(我已经询问了SDK所有者支持部门)

当我构建了我的应用程序并在真正的设备上进行测试时,一切都很好

这就是我的情况,如果您在构建项目时遇到这个问题,而不是在模拟器上运行项目时,请尝试上述解决方案或查看本文


我认为您将库包括在内是错误的。您是否遵循了这些说明@不是这个,我会查出来的,也许我错过了什么。。。谢谢你的帮助
#include <stack>            'stack' file not found
#include <thread>
#include <chrono>
 'thread' file not found