Latest 2.0
License MIT

Similar to NSAssert, but with slightly improved logging and is meant to ship with apps in release.

Benefits of using this over NSAssert:

  • It is default on in all configurations since it uses AG_BLOCK_ASSERTIONS and not NS_BLOCK_ASSERTIONS.
  • Slightly improved logging.
  • Fewer macros and less mess.
  • Does not require any description string as second parameter

The assert will raise an exception.

Recommended reading about asserts

Agens | Digital craftsmanship

Latest podspec

    "name": "AGAssert",
    "version": "2.0",
    "summary": "The better alternative to NSAssert.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Hau00e5vard Fossli": "[email protected]"
    "source": {
        "git": "",
        "tag": "2.0"
    "source_files": "Source/*.{h,m}",
    "exclude_files": "Source/*Test.{h,m}",
    "requires_arc": true

Pin It on Pinterest

Share This