Skip to content

Instantly share code, notes, and snippets.

PS1="\w \$(~/bin/battery.sh) "
- (void)addTask:(GRTask*)task
importer:(Class<GRImporter>)Importer
resources:(NSArray*)requiredResources
completionBlock:(GRImportCompletionBlock)complete
{
NSDictionary* taskInfo = [task dictionaryRepresentation];
GRImportCompletionBlock done = [complete copy];
[self addOperationWithBlock:^{
// ask plugin to generate an import block for this task
static NSMutableDictionary* resources_ = nil;
@implementation GRResource
+ (void)initialize
{
static dispatch_once_t once;
dispatch_once(&once, ^{
resources_ = [NSMutableDictionary new];
});
NSString *tempDirectoryTemplate =
[NSTemporaryDirectory() stringByAppendingPathComponent:@"myapptempdirectory.XXXXXX"];
const char *tempDirectoryTemplateCString =
[tempDirectoryTemplate fileSystemRepresentation];
char *tempDirectoryNameCString =
(char *)malloc(strlen(tempDirectoryTemplateCString) + 1);
strcpy(tempDirectoryNameCString, tempDirectoryTemplateCString);
char *result = mkdtemp(tempDirectoryNameCString);
if (!result)
override _THEOS_STAGING_RULES_LOADED := 1
include $(THEOS_MAKE_PATH)/framework.mk
BugSense.stage.framework.variables: ;
internal-stage:: ;
main.mm:3:22: error: expected '(' for function-style cast or type construction
NSNumber* x = @(int)5;
~~~^
void
WSRelease(WSTypeRef obj)
{
WSIndex orig = obj->retainCount;
while (!OSAtomicDecrement32Barrier((int32_t*)&obj->retainCount));
if (orig == 1 && !obj->retainCount)
free(obj);
}
[~THEOS]$ bin/bootstrap.sh [master]
[~THEOS]$ l lib/ [master]
total 0
-rw-rw-r-- 1 francis staff 0 Oct 23 11:23 .keep
[~THEOS]$ l include [master]
total 12K
-rw-rw-r-- 1 francis staff 769 Oct 23 11:23 DHCommon.h
-rw-rw-r-- 1 francis staff 4.8K Oct 23 11:23 DHHookCommon.h
[~THEOS]$
[~THEOS]$ bin/bootstrap.sh substrate [master]
Bootstrapping CydiaSubstrate...
Compiling iPhoneOS CydiaSubstrate stub... default target? failed, forcing 2.0? failed, forcing 3.0? failed, forcing 3.2? failed, forcing 4.0 for 3.0? failed, forcing 4.2 for 3.0? failed, forcing 4.0? failed, forcing 4.2? failed, what?
Compiling native CydiaSubstrate stub...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/francis/Dropbox/Developer/ios/build//obj/macosx/CydiaSubstrate (No such file or directory)
make[2]: *** [after-CydiaSubstrate-all] Error 1
make[1]: *** [CydiaSubstrate.all.framework.variables] Error 2
make: *** [CydiaSubstrate] Error 2
cp: obj/macosx/CydiaSubstrate: No such file or directory
cp: libsubstrate.dylib: No such file or directory
xcrun -sdk iphoneos g++ -L/Users/francis/Developer/theos/lib -lsqlite3 -FFrameworks -framework Gremlin -lsubstrate -lobjc -framework Foundation -framework CoreFoundation -framework UIKit -framework MusicLibrary -framework CoreAudio -framework AVFoundation -framework CoreGraphics -framework CoreMedia -framework AudioToolbox -framework QuartzCore -framework CoreText -framework CoreImage -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/PrivateFrameworks -framework AppSupport -dynamiclib -install_name "/Library/ActionMenu/Plugins/Rinngo.dylib" -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" -arch armv6 -arch armv7 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_5_0 -miphoneos-version-min=5.0 -multiply_defined suppress -o "obj/Rinngo.dylib.unsigned" obj/RNGremlinClient.m.o obj/RNPlayButton.m.o obj/RNRingtoneViewController.m.o obj/RNStartupAnimationLayer.m.o obj/RNTrackBackground