Skip to content

Instantly share code, notes, and snippets.

View Valpertui's full-sized avatar

Valentin Pertuisot Valpertui

View GitHub Profile
@Valpertui
Valpertui / Fastfile
Created June 3, 2019 15:34
Fastfile with different schemes and configs
fastlane_require 'xcodeproj'
update_fastlane
default_platform(:ios)
platform :ios do
@xcodeproj = "ProjectName.xcodeproj"
@xcworkspace = "WorkspaceName.xcworkspace"
@target = "TargetName"
@version_number = get_version_number(xcodeproj: @xcodeproj, target: @target)
@Valpertui
Valpertui / ChatKitLoader.m
Created February 20, 2016 10:37 — forked from NSExceptional/ChatKitLoader.m
A quick and dirty example of loading classes at runtime
#import <dlfcn.h> // for dlopen()
#import "MirrorKit.h" // pod 'MirrirKit'
- (NSArray<NSString *> *)chatKitClassNames {
// Load the framework, close the handle. Now you can use any ChatKit class if you know its name.
void *handle = dlopen("/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit", RTLD_NOW);
dlclose(handle);
// Making use of the Objc runtime to get the classes