在XCode中运用CPPUnit

简介: Use CPPUnit with XCode   1. Download cppunti from sourceforge   2. Compile and install       .

Use CPPUnit with XCode

  1. Download cppunti from sourceforge

  2. Compile and install

      ./configure

      make install

  3. Create new C++ Tool project and add source files in cppunit/examples/simple except SimplePlugIn.cpp

  4. Add the library libcppunit.dylib (/usr/local/lib) in the project also

  5. Check the project properties, and remove below definition in Preprocessor key:

     _GLIBCXX_DEBUG=1 _GLIBCXX_DEBUG_PEDANTIC=1

 

CPPUnit won't support universal binary well. So the testing project is only for native architecture of build machine. 

 

What are these two macro definitions?

   _GLIBCXX_DEBUG to enable stl debugging

  _GLIBCXX_DEBUG_PEDANTIC, Which will force your app to use the __gnu_debug_def namespace for any stl containers

 

目录
相关文章
|
jenkins Unix 持续交付
个人记录jenkins编译ios过程 xcode是9.4.1
个人记录jenkins编译ios过程 xcode是9.4.1
598 2
|
Linux 数据安全/隐私保护 iOS开发
如何使用 Xcode 打包导出 IPA 文件并进行 iOS 应用内测,无需支付苹果开发者账号费用?
如何使用 Xcode 打包导出 IPA 文件并进行 iOS 应用内测,无需支付苹果开发者账号费用?
|
iOS开发 MacOS Perl
解决Xcode运行IOS报错:redefinition of module ‘Firebase‘和could not build module ‘CoreFoundation‘
解决Xcode运行IOS报错:redefinition of module ‘Firebase‘和could not build module ‘CoreFoundation‘
1222 4
|
iOS开发 开发者
解决xcode doesn‘t support iphone’s ios 14.6 (18f72)
解决xcode doesn‘t support iphone’s ios 14.6 (18f72)
1251 3
|
iOS开发
iOS Xcode 意外退出 打不开工程
iOS Xcode 意外退出 打不开工程
636 0
|
iOS开发
mac不通过Xcode直接打开IOS模拟器
mac不通过Xcode直接打开IOS模拟器
1506 24
|
iOS开发
技术好文:xcode动态图,ios实现动态图,iosgif,暂停和继续播放
技术好文:xcode动态图,ios实现动态图,iosgif,暂停和继续播放
559 24
|
存储 定位技术 iOS开发
XCode8升级到Xcode9(操作系统为iOS11)后原来的工程中遇到的问题
XCode8升级到Xcode9(操作系统为iOS11)后原来的工程中遇到的问题
514 23
|
缓存 iOS开发
如何在Xcode删除某个版本的IOS模拟器
如何在Xcode删除某个版本的IOS模拟器
2502 1
|
Linux 数据安全/隐私保护 iOS开发
Xcode8.1如何支持iOS8.0以下版本
Xcode8.1如何支持iOS8.0以下版本
296 0