Latest 0.2.0
Homepage https://github.com/paulz/swizzleCfunction
License MIT
Platforms ios 7.0, requires ARC
Dependencies fishhook
Authors

CI Status
Version
License
Platform

Usage

[PZSwizzle function:@"kill" with:@"doNotKill" whileExecuting:^{
    [CrashReporter simulateCrashBySignal:9];
}];

To run the example project tests, clone the repo, and run pod install from the Example directory first.

Installation

swizzleCfunction is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'swizzleCfunction'

Author

Paul Zabelin, https://github.com/paulz

License

swizzleCfunction is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "swizzleCfunction",
    "version": "0.2.0",
    "summary": "Swizzle a C function with your own while executing a block",
    "description": "Substitute C function with your own implementation temporarily.nUseful for testing code that calls C Language functions. This allows to provide fake implementations that take effect only while running a block of code under test. Uses on https://cocoapods.org/pods/fishhook - a very simple library that enables dynamically rebinding symbols in Mach-O binaries running on iOS in the simulator and on device.",
    "homepage": "https://github.com/paulz/swizzleCfunction",
    "license": "MIT",
    "authors": {
        "Paul Zabelin": "https://github.com/paulz"
    },
    "source": {
        "git": "https://github.com/paulz/swizzleCfunction.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://twitter.com/iospaulz",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/*.h",
    "dependencies": {
        "fishhook": [
            "~> 0.2"
        ]
    }
}

Pin It on Pinterest

Share This