在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

 

目录
相关文章
|
2月前
|
Linux 数据安全/隐私保护 iOS开发
如何使用 Xcode 打包导出 IPA 文件并进行 iOS 应用内测,无需支付苹果开发者账号费用?
如何使用 Xcode 打包导出 IPA 文件并进行 iOS 应用内测,无需支付苹果开发者账号费用?
|
存储 XML jenkins
iOS 底层原理38:自动化打包(一)Xcode + Shell脚本
iOS 底层原理38:自动化打包(一)Xcode + Shell脚本
2426 1
iOS 底层原理38:自动化打包(一)Xcode + Shell脚本
|
8月前
|
iOS开发
iOS Xcode 意外退出 打不开工程
iOS Xcode 意外退出 打不开工程
106 0
|
6月前
|
iOS开发 芯片 MacOS
[Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture...
[Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture...
123 0
|
6月前
|
iOS开发 开发者
Xcode7.2真机调试iOS 9.3的设备
Xcode7.2真机调试iOS 9.3的设备
107 0
|
9月前
|
iOS开发
Xcode 12.3 编译提示Building for iOS Simulator, but the linked and embedded framework
Xcode 12.3 编译提示Building for iOS Simulator, but the linked and embedded framework
|
11月前
|
Linux 数据安全/隐私保护 iOS开发
如何使用 Xcode 打包导出 IPA 文件并进行 iOS 应用内测,无需支付苹果开发者账号费用?
苹果开发者账号认证需要支付 688 元,对于初学 iOS 开发的同学来说,仅仅是为了进行内测而不需要上架 App Store,这样的费用是不必要的。
|
11月前
|
Linux 数据安全/隐私保护 虚拟化
Ios上架app无需688,xcode打包导出IPA,供人内测
无需支付688苹果开发者账号,xcode打包导出ipa,提供他人进行内测 众所周知,在开发苹果应用时需要使用签名(证书)才能进行打包安装苹果IPA,作为刚接触ios开发的同学,只是学习ios app开发内测,并没有上架appstore需求
|
C语言 iOS开发
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”
84 0
|
编译器 开发工具 C语言
iOS 语言基础&初探 Xcode 工具
iOS 语言基础&初探 Xcode 工具
186 0
iOS 语言基础&初探 Xcode 工具